From 819874e03254c61323c6748f1fc4bf1698d2ae30 Mon Sep 17 00:00:00 2001 From: "Philip, Avinash" <avinashphilip@ti.com> Date: Tue, 22 May 2012 11:34:58 +0530 Subject: [PATCH 17/51] Control module : EHRPWM clk enabling Signed-off-by: Philip, Avinash <avinashphilip@ti.com> --- arch/arm/mach-omap2/devices.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) @ arch/arm/mach-omap2/devices.c:407 @ static void omap_init_mcspi(void) static inline void omap_init_mcspi(void) {} #endif +#include "cm33xx.h" + +int __init am33xx_register_ehrpwm(void) +{ + void __iomem *iobase; + unsigned short regword; + + iobase = AM33XX_CM_REGADDR(0, 0x10664); + regword = readw(iobase); + regword |= 0x7; + writew(regword, iobase); + return 0; +} + /** * omap_init_rng - bind the RNG hwmod to the RNG omap_device * @ arch/arm/mach-omap2/devices.c:555 @ static int __init omap2_init_devices(void) omap_init_sti(); omap_init_vout(); + am33xx_register_ehrpwm(); return 0; } omap_arch_initcall(omap2_init_devices); -- 1.7.10.4