提交 81880975 编写于 作者: I Igor Grinberg 提交者: Eric Miao

[ARM] pxa/cm-x300: update the memory fixup.

CM-X300 bootloader passes DRAM configuration information in ATAGS,
however, the first memory bank is reported at actual physical address 0x8000000.
Use the configuration information supplied by the bootloader and
cope with the necessity to have PHYS_ADDR=0xa0000000.
Signed-off-by: NIgor Grinberg <grinberg@compulab.co.il>
Signed-off-by: NMike Rapoport <mike@compulab.co.il>
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 d176d64b
...@@ -767,13 +767,13 @@ static void __init cm_x300_init(void) ...@@ -767,13 +767,13 @@ static void __init cm_x300_init(void)
static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags,
char **cmdline, struct meminfo *mi) char **cmdline, struct meminfo *mi)
{ {
mi->nr_banks = 2; /* Make sure that mi->bank[0].start = PHYS_ADDR */
mi->bank[0].start = 0xa0000000; for (; tags->hdr.size; tags = tag_next(tags))
mi->bank[0].node = 0; if (tags->hdr.tag == ATAG_MEM &&
mi->bank[0].size = (64*1024*1024); tags->u.mem.start == 0x80000000) {
mi->bank[1].start = 0xc0000000; tags->u.mem.start = 0xa0000000;
mi->bank[1].node = 0; break;
mi->bank[1].size = (64*1024*1024); }
} }
MACHINE_START(CM_X300, "CM-X300 module") MACHINE_START(CM_X300, "CM-X300 module")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册