summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorIvan Gorinov <ivan.gorinov@intel.com>2018-03-26 18:06:54 -0700
committerBin Meng <bmeng.cn@gmail.com>2018-03-30 16:06:58 +0800
commit5d73292cf84db1e8f7d99dd27100ef2e8ac15c4e (patch)
tree70a0aae2f73daa524ce0d04e453f433cbaa67eed /arch/x86/include
parent0851f344d7b3ef73e2520d4b6f5ad1e3bca8dc44 (diff)
downloadu-boot-5d73292cf84db1e8f7d99dd27100ef2e8ac15c4e.tar.gz
u-boot-5d73292cf84db1e8f7d99dd27100ef2e8ac15c4e.tar.xz
u-boot-5d73292cf84db1e8f7d99dd27100ef2e8ac15c4e.zip
x86: zImage: Pass working device tree data to the kernel
On x86 platforms, U-Boot does not pass Device Tree data to the kernel. This prevents the kernel from using FDT loaded by U-Boot. Read the working FDT address from the "fdtaddr" environment variable and add a copy of the FDT data to the kernel setup_data list. Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: add #include <linux/libfdt.h> to zimage.c to fix build error] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/bootparam.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/include/asm/bootparam.h b/arch/x86/include/asm/bootparam.h
index 90768a99ce..6aba614361 100644
--- a/arch/x86/include/asm/bootparam.h
+++ b/arch/x86/include/asm/bootparam.h
@@ -10,8 +10,11 @@
#include <asm/video/edid.h>
/* setup data types */
-#define SETUP_NONE 0
-#define SETUP_E820_EXT 1
+enum {
+ SETUP_NONE = 0,
+ SETUP_E820_EXT,
+ SETUP_DTB,
+};
/* extensible setup data list node */
struct setup_data {