diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-01-28 16:55:03 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-02-21 11:46:26 +0100 |
commit | 677656bdb51afcde5c1293d28a794d189c914bd7 (patch) | |
tree | ca5f142364a45fa0b5d5ebda469342c463910340 /arch/arm/cpu | |
parent | af0135928eea060422c61519f3bd5eec27fd0e56 (diff) | |
download | u-boot-imx-677656bdb51afcde5c1293d28a794d189c914bd7.zip u-boot-imx-677656bdb51afcde5c1293d28a794d189c914bd7.tar.gz u-boot-imx-677656bdb51afcde5c1293d28a794d189c914bd7.tar.bz2 |
imx: mx7d: clock support for RDC
If CONFIG_IMX_RDC is enabled, enable clock for RDC and SEMAPHORE.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/mx7/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx7/clock.c b/arch/arm/cpu/armv7/mx7/clock.c index 77db6e8..4d68ad2 100644 --- a/arch/arm/cpu/armv7/mx7/clock.c +++ b/arch/arm/cpu/armv7/mx7/clock.c @@ -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 |