Commit 3d5bbbc4 authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

x86: Set CONFIG_NR_DRAM_BANKS to 8 and move it to x86-common.h



Some x86 boards set CONFIG_NR_DRAM_BANKS to 1, which causes incorrect
DRAM size printed when booting from coreboot, like this:

	CPU: x86, vendor Intel, device 663h
	DRAM:  636 KiB
	Using default environment

Change it to 8 which should be enough for both coreboot and bare
cases, and move it to x86-common.h.
Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 99a309f3
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_ARCH_MISC_INIT #define CONFIG_ARCH_MISC_INIT
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_X86_SERIAL #define CONFIG_X86_SERIAL
#define CONFIG_SMSC_LPC47M #define CONFIG_SMSC_LPC47M
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_SYS_MONITOR_LEN (1 << 20)
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_X86_SERIAL #define CONFIG_X86_SERIAL
/* ns16550 UART is memory-mapped in Quark SoC */ /* ns16550 UART is memory-mapped in Quark SoC */
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_SYS_MONITOR_LEN (1 << 20)
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_X86_SERIAL #define CONFIG_X86_SERIAL
#define CONFIG_SMSC_LPC47M #define CONFIG_SMSC_LPC47M
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_SYS_MONITOR_LEN (1 << 20)
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_X86_SERIAL #define CONFIG_X86_SERIAL
#define CONFIG_PCI_MEM_BUS 0xc0000000 #define CONFIG_PCI_MEM_BUS 0xc0000000
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_NR_DRAM_BANKS 8
#define CONFIG_X86_MRC_ADDR 0xfffa0000 #define CONFIG_X86_MRC_ADDR 0xfffa0000
#define CONFIG_CACHE_MRC_SIZE_KB 512 #define CONFIG_CACHE_MRC_SIZE_KB 512
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define CONFIG_DISPLAY_BOARDINFO_LATE #define CONFIG_DISPLAY_BOARDINFO_LATE
#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_CPUINFO
#define CONFIG_LAST_STAGE_INIT #define CONFIG_LAST_STAGE_INIT
#define CONFIG_NR_DRAM_BANKS 8
#define CONFIG_LMB #define CONFIG_LMB
#define CONFIG_OF_LIBFDT #define CONFIG_OF_LIBFDT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment