Commit 5b0acc59d1bc5c310dfd6976555664f9dcf4dacd

Authored by Tero Kristo
Committed by Tony Lindgren
1 parent 8e25ad964a

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>

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

arch/arm/plat-omap/sram.c
... ... @@ -133,7 +133,12 @@
133 133 if (cpu_is_omap34xx()) {
134 134 omap_sram_base = OMAP3_SRAM_PUB_VA;
135 135 omap_sram_start = OMAP3_SRAM_PUB_PA;
136   - omap_sram_size = 0x8000; /* 32K */
  136 + if ((omap_type() == OMAP2_DEVICE_TYPE_EMU) ||
  137 + (omap_type() == OMAP2_DEVICE_TYPE_SEC)) {
  138 + omap_sram_size = 0x7000; /* 28K */
  139 + } else {
  140 + omap_sram_size = 0x8000; /* 32K */
  141 + }
137 142 } else {
138 143 omap_sram_base = OMAP2_SRAM_PUB_VA;
139 144 omap_sram_start = OMAP2_SRAM_PUB_PA;