summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/speed-pxa27x.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2012-02-16 19:23:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-02-17 10:18:30 +0100
commitbf841a598e0ce6550c477875fe8567bc507d8d23 (patch)
tree641cd4d6a9f58af1cc2d6723f979ddb0a67731f3 /arch/arm/mach-pxa/speed-pxa27x.c
parent6fa3e3119ff2864dac131933a1abfe201a264a0a (diff)
downloadbarebox-bf841a598e0ce6550c477875fe8567bc507d8d23.tar.gz
barebox-bf841a598e0ce6550c477875fe8567bc507d8d23.tar.xz
drivers/pwm: add PXA pulse width modulator controller
Add PXA embedded pulse width modulator support. The PWM can generate signals from 49.6kHz to 1.625MHz. The driver is for pxa2xx family. The pxa3xx was not handled yet. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-pxa/speed-pxa27x.c')
-rw-r--r--arch/arm/mach-pxa/speed-pxa27x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/speed-pxa27x.c b/arch/arm/mach-pxa/speed-pxa27x.c
index 534eb1dcc7..1de034c677 100644
--- a/arch/arm/mach-pxa/speed-pxa27x.c
+++ b/arch/arm/mach-pxa/speed-pxa27x.c
@@ -47,3 +47,8 @@ unsigned long pxa_get_lcdclk(void)
{
return pxa_get_lcdclk_10khz() * 10000;
}
+
+unsigned long pxa_get_pwmclk(void)
+{
+ return BASE_CLK;
+}