From 1aaac6d6dfcaea2576e164f5e5ddd62c75716066 Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 29 Dec 2006 16:48:51 -0800 Subject: [PATCH] --- yaml --- r: 45123 b: refs/heads/master c: 7f24516240c78760d0b19e6160dcab893ef81918 h: refs/heads/master i: 45121: 1e1857aac4946b2a99c7296b0766cd3af1dc847a 45119: 4568485caa4800b80df391661da289dc6fad23ea v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap2/gpmc.c | 21 ++++++++------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index 22fb306a391c..138d65b53f10 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: de4fa99266b2e1f6771644b9b50f33fe8f82d728 +refs/heads/master: 7f24516240c78760d0b19e6160dcab893ef81918 diff --git a/trunk/arch/arm/mach-omap2/gpmc.c b/trunk/arch/arm/mach-omap2/gpmc.c index f4f04d87df32..d8f57824423f 100644 --- a/trunk/arch/arm/mach-omap2/gpmc.c +++ b/trunk/arch/arm/mach-omap2/gpmc.c @@ -17,6 +17,7 @@ #include #include +#include #include #undef DEBUG @@ -338,19 +339,13 @@ void __init gpmc_mem_init(void) int cs; unsigned long boot_rom_space = 0; - if (cpu_is_omap242x()) { - u32 l; - l = omap_readl(OMAP242X_CONTROL_STATUS); - /* In case of internal boot the 1st MB is redirected to the - * boot ROM memory space. - */ - if (l & (1 << 3)) - boot_rom_space = BOOT_ROM_SPACE; - } else - /* We assume internal boot if the mode can't be - * determined. - */ - boot_rom_space = BOOT_ROM_SPACE; + /* never allocate the first page, to facilitate bug detection; + * 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;