]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP2: fix apollon gpmc initialization
authorKyungmin Park <kyungmin.park@samsung.com>
Wed, 1 Nov 2006 18:43:19 +0000 (20:43 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 1 Nov 2006 18:43:19 +0000 (20:43 +0200)
After update gpmc patch, apollon can't boot since gpmc init. In Apollon,
the CS0 uses 0x0000 0000.
If we don't modify boot_rom_space, we have to update all bootloaders. But
as you know it's difficult.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c

index 73989d451e4f8fdc2745466a8364941644b3e6fc..bbaab2925a548b81cc3d35b6dfc4fdb111d10143 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/spinlock.h>
 
 #include <asm/io.h>
+#include <asm/mach-types.h>
 #include <asm/arch/gpmc.h>
 
 #undef DEBUG
@@ -353,6 +354,9 @@ void __init gpmc_mem_init(void)
         * even if we didn't boot from ROM.
         */
        boot_rom_space = BOOT_ROM_SPACE;
+       /* In apollon the CS0 is mapped as 0x0000 0000 */
+       if (machine_is_omap_apollon())
+               boot_rom_space = 0;
        gpmc_mem_root.start = GPMC_MEM_START + boot_rom_space;
        gpmc_mem_root.end = GPMC_MEM_END;