1
0
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:
Ivan Gorinov
2018-03-26 18:06:54 -07:00
committed by Bin Meng
parent 0851f344d7
commit 5d73292cf8
2 changed files with 40 additions and 2 deletions

View File

@@ -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 {