diff options
author | Alban Bedel <alban.bedel@avionic-design.de> | 2012-11-12 11:27:40 +0100 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2012-11-12 11:27:40 +0100 |
commit | 84cee34db4d34b9059f4ef66f7d1805e438cc7f3 (patch) | |
tree | 4cf204db8574f31a65a143aec0446d1e26f44ce3 /arch/arm/mach-lpc32xx/clock.c | |
parent | 91deef8069e7ffafac4467200e1d37af1b2d7c56 (diff) | |
download | blackbird-obmc-linux-84cee34db4d34b9059f4ef66f7d1805e438cc7f3.tar.gz blackbird-obmc-linux-84cee34db4d34b9059f4ef66f7d1805e438cc7f3.zip |
ARM: LPC32xx: Add the motor PWM clock
Diffstat (limited to 'arch/arm/mach-lpc32xx/clock.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/clock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index f48c2e961b84..dd5d6f532e8c 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-lpc32xx/clock.c @@ -585,6 +585,13 @@ static struct clk clk_timer3 = { .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_TIMER3_EN, .get_rate = local_return_parent_rate, }; +static struct clk clk_mpwm = { + .parent = &clk_pclk, + .enable = local_onoff_enable, + .enable_reg = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1, + .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_MPWM_EN, + .get_rate = local_return_parent_rate, +}; static struct clk clk_wdt = { .parent = &clk_pclk, .enable = local_onoff_enable, @@ -1202,6 +1209,7 @@ static struct clk_lookup lookups[] = { CLKDEV_INIT("pl08xdmac", NULL, &clk_dma), CLKDEV_INIT("4003c000.watchdog", NULL, &clk_wdt), CLKDEV_INIT("4005c000.pwm", NULL, &clk_pwm), + CLKDEV_INIT("400e8000.mpwm", NULL, &clk_mpwm), CLKDEV_INIT(NULL, "uart3_ck", &clk_uart3), CLKDEV_INIT(NULL, "uart4_ck", &clk_uart4), CLKDEV_INIT(NULL, "uart5_ck", &clk_uart5), |