diff options
author | Robby Cai <robby.cai@nxp.com> | 2016-06-23 14:44:19 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:06:24 +0800 |
commit | ffc1f0d1b19d4adfc1f5276e5d25a1f065c41606 (patch) | |
tree | ea055e29ac78df710ae3b991d87ab98d1689f06f /arch/arm/cpu/armv7 | |
parent | 126d2e1ac5b53fc32dbd0000b2a22c11bfbcd19c (diff) | |
download | u-boot-imx-ffc1f0d1b19d4adfc1f5276e5d25a1f065c41606.zip u-boot-imx-ffc1f0d1b19d4adfc1f5276e5d25a1f065c41606.tar.gz u-boot-imx-ffc1f0d1b19d4adfc1f5276e5d25a1f065c41606.tar.bz2 |
MLK-12929 imx6ull: support splash screen for epdc
add splash screen feature for epdc.
it's tested on imx6ull arm2 board.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit bcdbe240bb2a97d38ba30dd244a51ece87662b06)
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/clock.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index 0f1c71f..4bce9f3 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -1607,6 +1607,35 @@ void enable_eim_clk(unsigned char enable) } #endif +#if defined(CONFIG_MXC_EPDC) && defined(CONFIG_MX6ULL) +void enable_epdc_clock(void) +{ + u32 reg = 0; + + /* disable the clock gate first */ + clrbits_le32(&imx_ccm->CCGR3, MXC_CCM_CCGR3_EPDC_CLK_ENABLE_MASK); + + /* PLL3_PFD2 */ + reg = readl(&imx_ccm->chsccdr); + reg &= ~MXC_CCM_CHSCCDR_EPDC_PRE_CLK_SEL_MASK; + reg |= 5 << MXC_CCM_CHSCCDR_EPDC_PRE_CLK_SEL_OFFSET; + writel(reg, &imx_ccm->chsccdr); + + reg = readl(&imx_ccm->chsccdr); + reg &= ~MXC_CCM_CHSCCDR_EPDC_PODF_MASK; + reg |= 7 << MXC_CCM_CHSCCDR_EPDC_PODF_OFFSET; + writel(reg, &imx_ccm->chsccdr); + + reg = readl(&imx_ccm->chsccdr); + reg &= ~MXC_CCM_CHSCCDR_EPDC_CLK_SEL_MASK; + reg |= 0 <<MXC_CCM_CHSCCDR_EPDC_CLK_SEL_OFFSET; + writel(reg, &imx_ccm->chsccdr); + + /* enable the clock gate */ + setbits_le32(&imx_ccm->CCGR3, MXC_CCM_CCGR3_EPDC_CLK_ENABLE_MASK); +} +#endif + /***************************************************/ U_BOOT_CMD( |