]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mx7d: clock support for RDC
authorPeng Fan <peng.fan@nxp.com>
Thu, 28 Jan 2016 08:55:03 +0000 (16:55 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 Feb 2016 10:46:26 +0000 (11:46 +0100)
If CONFIG_IMX_RDC is enabled, enable clock for RDC and SEMAPHORE.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv7/mx7/clock.c

index 77db6e8306f8c6a31fb837034bad2fa7c72a32c6..4d68ad2615e1876eeb027307626737a95a6ae2f0 100644 (file)
@@ -1067,6 +1067,12 @@ void clock_init(void)
 #ifdef CONFIG_NAND_MXS
        clock_enable(CCGR_RAWNAND, 1);
 #endif
+
+       if (IS_ENABLED(CONFIG_IMX_RDC)) {
+               clock_enable(CCGR_RDC, 1);
+               clock_enable(CCGR_SEMA1, 1);
+               clock_enable(CCGR_SEMA2, 1);
+       }
 }
 
 #ifdef CONFIG_SECURE_BOOT