diff options
author | Wolfgang Denk <wd@denx.de> | 2010-11-13 00:19:55 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-11-13 00:19:55 +0100 |
commit | 227b72515546fca535dbd3274f6d875d97f494fe (patch) | |
tree | 3713c814a7453024eceb097c67532072950e2f2e /arch/arm | |
parent | 34998cac2e6231e04d9c31357dc68047635a44ea (diff) | |
parent | 0fc43a417c4ba5ab63dad6736a18f3bf7008f35f (diff) | |
download | u-boot-imx-227b72515546fca535dbd3274f6d875d97f494fe.zip u-boot-imx-227b72515546fca535dbd3274f6d875d97f494fe.tar.gz u-boot-imx-227b72515546fca535dbd3274f6d875d97f494fe.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-ti
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/sdrc.c | 7 | ||||
-rw-r--r-- | arch/arm/lib/cache.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap3/sdrc.c b/arch/arm/cpu/armv7/omap3/sdrc.c index c75aa1d..a4979ce 100644 --- a/arch/arm/cpu/armv7/omap3/sdrc.c +++ b/arch/arm/cpu/armv7/omap3/sdrc.c @@ -149,6 +149,13 @@ void do_sdrc_init(u32 cs, u32 early) &sdrc_actim_base1->ctrla); writel(readl(&sdrc_actim_base0->ctrlb), &sdrc_actim_base1->ctrlb); + + writel(CMD_NOP, &sdrc_base->cs[cs].manual); + writel(CMD_PRECHARGE, &sdrc_base->cs[cs].manual); + writel(CMD_AUTOREFRESH, &sdrc_base->cs[cs].manual); + writel(CMD_AUTOREFRESH, &sdrc_base->cs[cs].manual); + writel(readl(&sdrc_base->cs[CS0].mr), + &sdrc_base->cs[CS1].mr); } /* diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 5715168..30686fe 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -38,7 +38,7 @@ void flush_cache (unsigned long dummy1, unsigned long dummy2) /* disable write buffer as well (page 2-22) */ asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0)); #endif -#ifdef CONFIG_ARMV7 +#ifdef CONFIG_OMAP34XX void v7_flush_cache_all(void); v7_flush_cache_all(); |