]> git.sur5r.net Git - u-boot/commitdiff
Fix GPMC CS2 memory setup at apollon
authorKyungmin Park <kmpark@infradead.org>
Mon, 18 Feb 2008 05:35:43 +0000 (14:35 +0900)
committerWolfgang Denk <wd@denx.de>
Fri, 22 Feb 2008 11:13:55 +0000 (12:13 +0100)
It disables the current map first

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
board/apollon/mem.c

index c0edca56e19f618a901454de5745346000eef49a..0211c6ad2ef7bb92effa3b52549a1e7c036adde7 100644 (file)
@@ -198,6 +198,8 @@ void gpmc_init(void)
        sdelay(2000);
 
        /* setup cs2 */
+       __raw_writel(0x0, GPMC_CONFIG7_2);      /* disable current map */
+       sdelay(1000);
        __raw_writel(APOLLON_24XX_GPMC_CONFIG1_0 | mux | mtype | mwidth,
                     GPMC_CONFIG1_2);
        /* It's same as cs 0 */