mirror of
https://xff.cz/git/u-boot/
synced 2025-11-03 03:46:02 +01:00
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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user