6410支持256M内存的修改记录

1、更改C:\WINCE600\PLATFORM\SMDK6410\SRC\INC\MemParam_mDDR.inc

   

; 31th register in P1MEMCFG shoud be set as '0' to support one cke control

DMC1_MEM_CFG        EQU    ((1<<30)+(0<<21)+(0<<18)+(2<<15)+(0<<14)+(0<<13)+(0<<7)+(0<<6)+(3<<3)+(2<<0))    ; colum A0~A9

2、

 DMC1_CHIP0_CFG        EQU    ((1<<16)+(0x50<<8)+(0xF0<<0))    ; BRC (Linear Address Mapping)

3、更改 C:\WINCE600\PLATFORM\SMDK6410\SRC\INC\oemaddrtab_cfg.inc

g_oalAddressTable

    ; mDDR 128 MB

        ;DCD     0x80000000, 0x50000000,  64     ; 64 MB DRAM

        [ SMDK6410_X5D

        DCD     0x80000000, 0x60000000,   64     ; 64 MB DRAM

        |

        DCD     0x80000000, 0x50000000,  256    ; 256 MB DRAM

        ]

4、在C:\WINCE600\PLATFORM\SMDK6410\SRC\OAL\OALLIB\init.c中添加

BOOL

OEMGetExtensionDRAM(

    LPDWORD lpMemStart,

    LPDWORD lpMemLen

    )

{

    *lpMemStart = 0x88000000;

    *lpMemLen   = 0x08000000;

      

    return TRUE;   

  

}

转自:http://blog.21ic.com/user1/801/archives/2010/66583.html

原文地址:https://www.cnblogs.com/xfdarm/p/1674011.html