[Armadeus-commitlog] SF.net SVN: armadeus: [568] trunk/target/linux/modules/pwm/core.c
Brought to you by:
sszy
|
From: <ar...@us...> - 2007-02-04 21:56:27
|
Revision: 568
http://armadeus.svn.sourceforge.net/armadeus/?rev=568&view=rev
Author: artemys
Date: 2007-02-04 13:56:25 -0800 (Sun, 04 Feb 2007)
Log Message:
-----------
[LINUX] Pffff.... I hope this one is the last init problem in PWM driver ! ;-)
Modified Paths:
--------------
trunk/target/linux/modules/pwm/core.c
Modified: trunk/target/linux/modules/pwm/core.c
===================================================================
--- trunk/target/linux/modules/pwm/core.c 2007-02-04 21:18:10 UTC (rev 567)
+++ trunk/target/linux/modules/pwm/core.c 2007-02-04 21:56:25 UTC (rev 568)
@@ -72,7 +72,7 @@
#define PWM_TEST
#define DRIVER_NAME "imx-pwm"
-#define DRIVER_VERSION "0.3"
+#define DRIVER_VERSION "0.4"
#define DEV_IRQ_NAME DRIVER_NAME
#define DEV_IRQ_ID DRIVER_NAME
@@ -424,7 +424,9 @@
// Software reset
PWMC |= PWMC_SWR;
- udelay(1);
+ udelay(10);
+ // Activate & de-activate PWM (seems to be necessary after a reset)
+ PWMC |= PWMC_EN; PWMC &= ~PWMC_EN;
// Enable interrupt
//PWMC |= PWMC_IRQEN;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|