]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix SRAM sizes for 730 and 1510
authorTony Lindgren <tony@atomide.com>
Mon, 5 Sep 2005 07:57:11 +0000 (10:57 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 5 Sep 2005 07:57:11 +0000 (10:57 +0300)
The sizes were missing the K multiplier. Based on patch by Nicolas
Schichan.

arch/arm/plat-omap/sram.c

index e7e07b4c9613e096d827b365bc3417c474ce4e70..7719a4062e3ae075d78b151fc56c255abc112809 100644 (file)
@@ -42,16 +42,16 @@ void __init omap_detect_sram(void)
        omap_sram_base = OMAP1_SRAM_BASE;
 
        if (cpu_is_omap730())
-               omap_sram_size = 0xc8;
+               omap_sram_size = 0x32000;
        else if (cpu_is_omap1510())
-               omap_sram_size = 0x200;
+               omap_sram_size = 0x80000;
        else if (cpu_is_omap1610() || cpu_is_omap1621() || cpu_is_omap1710())
                omap_sram_size = 0x4000;
        else if (cpu_is_omap1611())
                omap_sram_size = 0x3e800;
        else {
                printk(KERN_ERR "Could not detect SRAM size\n");
-               omap_sram_size = 0xc8;
+               omap_sram_size = 0x4000;
        }
 
        printk(KERN_INFO "SRAM size: 0x%lx\n", omap_sram_size);