mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
board: developerbox: use identity mapping for >4GB
Identity-map the second and later memory banks which are located >4GB. Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
d100d3e18e
commit
41b535ce78
@ -160,11 +160,11 @@ int dram_init(void)
|
|||||||
ri = DDR_REGION_INDEX(i);
|
ri = DDR_REGION_INDEX(i);
|
||||||
mem_map[ri].phys = ent[i].base;
|
mem_map[ri].phys = ent[i].base;
|
||||||
mem_map[ri].size = ent[i].size;
|
mem_map[ri].size = ent[i].size;
|
||||||
|
mem_map[ri].virt = mem_map[ri].phys;
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mr = &mem_map[DDR_REGION_INDEX(0)];
|
mr = &mem_map[DDR_REGION_INDEX(0)];
|
||||||
mem_map[ri].virt = mr->virt + mr->size;
|
|
||||||
mem_map[ri].attrs = mr->attrs;
|
mem_map[ri].attrs = mr->attrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user