diff mbox

[U-Boot,02/11] x86: coreboot: Increase memrange entry number to 32

Message ID 1439450957-23197-3-git-send-email-bmeng.cn@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng Aug. 13, 2015, 7:29 a.m. UTC
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>
---

 arch/x86/include/asm/arch-coreboot/sysinfo.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

Comments

Simon Glass Aug. 16, 2015, 9:27 p.m. UTC | #1
On 13 August 2015 at 01:29, Bin Meng <bmeng.cn@gmail.com> wrote:
> 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>
> ---
>
>  arch/x86/include/asm/arch-coreboot/sysinfo.h | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass Aug. 17, 2015, 10:15 p.m. UTC | #2
On 16 August 2015 at 15:27, Simon Glass <sjg@chromium.org> wrote:
> On 13 August 2015 at 01:29, Bin Meng <bmeng.cn@gmail.com> wrote:
>> 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>
>> ---
>>
>>  arch/x86/include/asm/arch-coreboot/sysinfo.h | 9 +++------
>>  1 file changed, 3 insertions(+), 6 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-x86, thanks!
diff mbox

Patch

diff --git a/arch/x86/include/asm/arch-coreboot/sysinfo.h b/arch/x86/include/asm/arch-coreboot/sysinfo.h
index 832c50a..2d57245 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;