David Hendricks ([email protected]) just uploaded a new patch set to 
gerrit, which you can find at http://review.coreboot.org/2378

-gerrit

commit a49b67e2063130e3286aab52607785fd237375e5
Author: David Hendricks <[email protected]>
Date:   Tue Feb 12 15:30:17 2013 -0800

    armv7: use start and size parameters in mmu_setup()
    
    mmu_setup() was originally written in U-Boot to utilize board-specific
    global data. Since we're trying to avoid that, we added start and size
    parameters so that board-specific info can be passed in via mainboard
    code. Let's start using it that way.
    
    Change-Id: I7d7de0e42bd918c9f9f0c177acaf56c110bf8353
    Signed-off-by: David Hendricks <[email protected]>
---
 src/arch/armv7/lib/cache-cp15.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/armv7/lib/cache-cp15.c b/src/arch/armv7/lib/cache-cp15.c
index f51ee48..cfbdb94 100644
--- a/src/arch/armv7/lib/cache-cp15.c
+++ b/src/arch/armv7/lib/cache-cp15.c
@@ -114,7 +114,7 @@ static inline void dram_bank_mmu_setup(unsigned long start, 
unsigned long size)
 }
 
 /* to activate the MMU we need to set up virtual memory: use 1M areas */
-inline void mmu_setup(unsigned long start, unsigned long size)
+inline void mmu_setup(unsigned long start, unsigned long size_mb)
 {
        int i;
        u32 reg;
@@ -125,7 +125,7 @@ inline void mmu_setup(unsigned long start, unsigned long 
size)
        for (i = 0; i < 4096; i++)
                set_section_dcache(i, DCACHE_OFF);
 
-       dram_bank_mmu_setup(CONFIG_SYS_SDRAM_BASE, CONFIG_DRAM_SIZE_MB << 20);
+       dram_bank_mmu_setup(start, size_mb << 20);
 
        /* Copy the page table address to cp15 */
        asm volatile("mcr p15, 0, %0, c2, c0, 0"

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to