x86: Fill in the dram info using the e820 map on coreboot/x86
authorGabe Black <gabeblack@chromium.org>
Tue, 23 Oct 2012 18:04:35 +0000 (18:04 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:39 +0000 (14:30 -0800)
commit9a7da182fa936d28658daadef83e0b8f7104487b
tree4383375abfca6504504af9832bf8928bcec64973
parent3cdc18a8de1b67af0ef7357f9c07bc77a935045c
x86: Fill in the dram info using the e820 map on coreboot/x86

This way when that dram "banks" are displayed, there's some useful information
there. The number of "banks" we claim to have needs to be adjusted so that it
covers the number of RAM e820 regions we expect to have/care about.

This needs to be done after "RAM" initialization even though we always run
from RAM. The bd pointer in the global data structure doesn't automatically
point to anything, and it isn't set up until "RAM" is available since, I
assume, it would take too much space in the very constrained pre-RAM
environment.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/sdram.c