mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo
The 1GB DRAM configuration on mx6 solo uses 2 chip selects, but the code tests 1GB DRAM configuration as if it is all present on one chip select, and thus cannot see the full range of available memory. Refactor the check to detect 1GB DRAM correctly. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Stefano Babic <sbabic@denx.de> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
This commit is contained in:
parent
b65cbab194
commit
0b23780ff0
1 changed files with 4 additions and 3 deletions
|
@ -235,10 +235,11 @@ static int cm_fx6_spl_dram_init(void)
|
|||
|
||||
spl_mx6s_dram_init(DDR_32BIT_1GB, false);
|
||||
bank1_size = get_ram_size((long int *)PHYS_SDRAM_1, 0x80000000);
|
||||
if (bank1_size == 0x40000000)
|
||||
bank2_size = get_ram_size((long int *)PHYS_SDRAM_2, 0x80000000);
|
||||
if (bank1_size == 0x20000000) {
|
||||
if (bank2_size == 0x20000000)
|
||||
return 0;
|
||||
|
||||
if (bank1_size == 0x20000000) {
|
||||
spl_mx6s_dram_init(DDR_32BIT_512MB, true);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue