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 c0edca5..0211c6a 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 */