summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-13 00:29:08 -0700
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:06 -0700
commit89b870814c03777c3a8d3f2e3ed761479a9f1456 (patch)
tree6ef586763011b3ee46780e537a9202263d0aec10 /arch/x86
parent330728d711d12f7f416b34d1598942e8c19a2724 (diff)
downloadtalos-obmc-uboot-89b870814c03777c3a8d3f2e3ed761479a9f1456.tar.gz
talos-obmc-uboot-89b870814c03777c3a8d3f2e3ed761479a9f1456.zip
x86: coreboot: Increase memrange entry number to 32
Increase lib_sysinfo memrange entry number to 32 to sync with coreboot. This allows a complete E820 table to be reported to the kernel, as on some platforms (eg: Bayley Bay) having only 16 entires does not cover all the memory ranges. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/arch-coreboot/sysinfo.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/include/asm/arch-coreboot/sysinfo.h b/arch/x86/include/asm/arch-coreboot/sysinfo.h
index 832c50aa63..2d5724503c 100644
--- a/arch/x86/include/asm/arch-coreboot/sysinfo.h
+++ b/arch/x86/include/asm/arch-coreboot/sysinfo.h
@@ -9,15 +9,12 @@
#ifndef _COREBOOT_SYSINFO_H
#define _COREBOOT_SYSINFO_H
-#include <common.h>
-#include <linux/compiler.h>
-#include <libfdt.h>
#include <asm/arch/tables.h>
-/* Allow a maximum of 16 memory range definitions. */
-#define SYSINFO_MAX_MEM_RANGES 16
+/* Maximum number of memory range definitions */
+#define SYSINFO_MAX_MEM_RANGES 32
/* Allow a maximum of 8 GPIOs */
-#define SYSINFO_MAX_GPIOS 8
+#define SYSINFO_MAX_GPIOS 8
struct sysinfo_t {
int n_memranges;
OpenPOWER on IntegriCloud