diff options
author | Tero Kristo <tero.kristo@nokia.com> | 2009-06-23 12:30:23 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-06-23 12:30:23 +0200 |
commit | 5b0acc59d1bc5c310dfd6976555664f9dcf4dacd (patch) | |
tree | 7d60e2c995f294fc50b9b4689d1cd69651843e5d /arch/arm/plat-omap/sram.c | |
parent | OMAP2/3: Add omap_type() for determining GP/EMU/HS (diff) | |
download | linux-5b0acc59d1bc5c310dfd6976555664f9dcf4dacd.tar.xz linux-5b0acc59d1bc5c310dfd6976555664f9dcf4dacd.zip |
OMAP3: SRAM size fix for HS/EMU devices
SRAM size fix for HS/EMU devices
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/sram.c')
-rw-r--r-- | arch/arm/plat-omap/sram.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 65006df3f1b7..4ea73804d21e 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -133,7 +133,12 @@ void __init omap_detect_sram(void) if (cpu_is_omap34xx()) { omap_sram_base = OMAP3_SRAM_PUB_VA; omap_sram_start = OMAP3_SRAM_PUB_PA; - omap_sram_size = 0x8000; /* 32K */ + if ((omap_type() == OMAP2_DEVICE_TYPE_EMU) || + (omap_type() == OMAP2_DEVICE_TYPE_SEC)) { + omap_sram_size = 0x7000; /* 28K */ + } else { + omap_sram_size = 0x8000; /* 32K */ + } } else { omap_sram_base = OMAP2_SRAM_PUB_VA; omap_sram_start = OMAP2_SRAM_PUB_PA; |