diff options
author | Mansoor Ahamed <mansoor.ahamed@ti.com> | 2012-11-06 13:06:32 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-10 08:54:02 -0700 |
commit | 04c375782989166e7960206ad7e46904d8772f7d (patch) | |
tree | 7ec2738bfd4178a2b08173186c78fdcf4e994b9b /arch/arm/cpu/armv7/am33xx/clock.c | |
parent | 98b5c269433f178bf2596441ee04f8004e528ed4 (diff) | |
download | u-boot-imx-04c375782989166e7960206ad7e46904d8772f7d.zip u-boot-imx-04c375782989166e7960206ad7e46904d8772f7d.tar.gz u-boot-imx-04c375782989166e7960206ad7e46904d8772f7d.tar.bz2 |
am33xx: add ELM support
AM33XX has Error Location Module (ELM) that can be used in conjuction
with GPMC controller to implement BCH codes fully in hardware.
This code is mostly taken from arago tree.
Signed-off-by: Mansoor Ahamed <mansoor.ahamed@ti.com>
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx/clock.c')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/clock.c b/arch/arm/cpu/armv7/am33xx/clock.c index 6eb7d9f..2b7c910 100644 --- a/arch/arm/cpu/armv7/am33xx/clock.c +++ b/arch/arm/cpu/armv7/am33xx/clock.c @@ -155,6 +155,11 @@ static void enable_per_clocks(void) while (readl(&cmper->gpmcclkctrl) != PRCM_MOD_EN) ; + /* ELM */ + writel(PRCM_MOD_EN, &cmper->elmclkctrl); + while (readl(&cmper->elmclkctrl) != PRCM_MOD_EN) + ; + /* MMC0*/ writel(PRCM_MOD_EN, &cmper->mmc0clkctrl); while (readl(&cmper->mmc0clkctrl) != PRCM_MOD_EN) |