mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-07 21:51:49 +02:00
board: sl28: support 8 GiB memory
The board supports up to 8 GiB memory. The memory is soldered on the board but the configuration is equivalent to a dual chip select, dual rank DIMM module. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
parent
7fd5ca1501
commit
1029249b00
@ -73,6 +73,13 @@ int fsl_initdram(void)
|
|||||||
case GPPORCR1_MEM_4GB_CS0_1:
|
case GPPORCR1_MEM_4GB_CS0_1:
|
||||||
dram_size = 0x100000000ULL;
|
dram_size = 0x100000000ULL;
|
||||||
break;
|
break;
|
||||||
|
case GPPORCR1_MEM_8GB_CS0_1:
|
||||||
|
dram_size = 0x200000000ULL;
|
||||||
|
ddr_cfg_regs.cs[0].bnds = 0x000000ff;
|
||||||
|
ddr_cfg_regs.cs[0].config = 0x80044403;
|
||||||
|
ddr_cfg_regs.cs[1].bnds = 0x010001ff;
|
||||||
|
ddr_cfg_regs.cs[1].config = 0x80044403;
|
||||||
|
break;
|
||||||
case GPPORCR1_MEM_512MB_CS0:
|
case GPPORCR1_MEM_512MB_CS0:
|
||||||
dram_size = 0x20000000;
|
dram_size = 0x20000000;
|
||||||
fallthrough; /* for now */
|
fallthrough; /* for now */
|
||||||
@ -82,7 +89,6 @@ int fsl_initdram(void)
|
|||||||
case GPPORCR1_MEM_4GB_CS0_2:
|
case GPPORCR1_MEM_4GB_CS0_2:
|
||||||
dram_size = 0x100000000ULL;
|
dram_size = 0x100000000ULL;
|
||||||
fallthrough; /* for now */
|
fallthrough; /* for now */
|
||||||
case GPPORCR1_MEM_8GB_CS0_1:
|
|
||||||
case GPPORCR1_MEM_8GB_CS0_1_2_3:
|
case GPPORCR1_MEM_8GB_CS0_1_2_3:
|
||||||
dram_size = 0x200000000ULL;
|
dram_size = 0x200000000ULL;
|
||||||
fallthrough; /* for now */
|
fallthrough; /* for now */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user