Move this code into a generic location so that it can be used by other x86
boards which want to boot from coreboot. Also ensure that this is called
if booting from coreboot.

Signed-off-by: Simon Glass <[email protected]>
---

 arch/x86/cpu/coreboot/sdram.c      | 27 +-------------------
 arch/x86/include/asm/e820.h        | 16 +++++++++++-
 arch/x86/lib/coreboot/Makefile     |  1 +
 arch/x86/lib/coreboot/cb_support.c | 41 ++++++++++++++++++++++++++++++
 arch/x86/lib/zimage.c              | 12 +++++++--
 5 files changed, 68 insertions(+), 29 deletions(-)
 create mode 100644 arch/x86/lib/coreboot/cb_support.c

Applied to u-boot-dm/next, thanks!

Reply via email to