]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: link: Set up device tree for SPL
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:04:24 +0000 (07:04 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 7 Feb 2017 05:10:59 +0000 (13:10 +0800)
Add the correct pre-relocation tag so that the required device tree nodes
are present in the SPL device tree.

On x86 it doesn't make a lot of sense to have a separate SPL device tree.
Since everything is in the same ROM we might as well just use the main
device tree in both SPL and U-Boot proper. But we haven't implemented that,
so this is a good first step.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/dts/chromebook_link.dts
configs/chromebook_link_defconfig

index b93234046e0c60bc20c76ed8d99eba68d420c530..fab919a3589dda4dfe8fa6b318ef259773aa41a4 100644 (file)
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
+               u-boot,dm-pre-reloc;
 
                cpu@0 {
                        device_type = "cpu";
                        compatible = "intel,core-gen3";
                        reg = <0>;
                        intel,apic-id = <0>;
+                       u-boot,dm-pre-reloc;
                };
 
                cpu@1 {
@@ -39,6 +41,7 @@
                        compatible = "intel,core-gen3";
                        reg = <1>;
                        intel,apic-id = <1>;
+                       u-boot,dm-pre-reloc;
                };
 
                cpu@2 {
@@ -46,6 +49,7 @@
                        compatible = "intel,core-gen3";
                        reg = <2>;
                        intel,apic-id = <2>;
+                       u-boot,dm-pre-reloc;
                };
 
                cpu@3 {
@@ -53,6 +57,7 @@
                        compatible = "intel,core-gen3";
                        reg = <3>;
                        intel,apic-id = <3>;
+                       u-boot,dm-pre-reloc;
                };
 
        };
 
                northbridge@0,0 {
                        reg = <0x00000000 0 0 0 0>;
+                       u-boot,dm-pre-reloc;
                        compatible = "intel,bd82x6x-northbridge";
                        board-id-gpios = <&gpio_b 9 0>, <&gpio_b 10 0>,
                                        <&gpio_b 11 0>, <&gpio_a 10 0>;
-                       u-boot,dm-pre-reloc;
                        spd {
+                               u-boot,dm-pre-reloc;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                elpida_4Gb_1600_x16 {
+                                       u-boot,dm-pre-reloc;
                                        reg = <0>;
                                        data = [92 10 0b 03 04 19 02 02
                                                03 52 01 08 0a 00 fe 00
                                                00 00 00 00 00 00 00 00];
                                };
                                samsung_4Gb_1600_1.35v_x16 {
+                                       u-boot,dm-pre-reloc;
                                        reg = <1>;
                                        data = [92 11 0b 03 04 19 02 02
                                                03 11 01 08 0a 00 fe 00
                                #address-cells = <1>;
                                #size-cells = <0>;
                                compatible = "intel,ich9-spi";
+                               u-boot,dm-pre-reloc;
                                spi-flash@0 {
                                        #size-cells = <1>;
                                        #address-cells = <1>;
+                                       u-boot,dm-pre-reloc;
                                        reg = <0>;
                                        compatible = "winbond,w25q64",
                                                        "spi-flash";
                                        rw-mrc-cache {
                                                label = "rw-mrc-cache";
                                                reg = <0x003e0000 0x00010000>;
+                                               u-boot,dm-pre-reloc;
                                        };
                                };
                        };
        };
 
        microcode {
+               u-boot,dm-pre-reloc;
                update@0 {
+                       u-boot,dm-pre-reloc;
 #include "microcode/m12306a9_0000001b.dtsi"
                };
        };
index 1a79ab8dfe39955dcf45988100ae611f2ffdacfb..86852add89a216a411390fc1ec78cd1ccf041c80 100644 (file)
@@ -1,5 +1,5 @@
 CONFIG_X86=y
-CONFIG_SYS_MALLOC_F_LEN=0x1800
+CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_VENDOR_GOOGLE=y
 CONFIG_DEFAULT_DEVICE_TREE="chromebook_link"
 CONFIG_TARGET_CHROMEBOOK_LINK=y
@@ -61,8 +61,8 @@ CONFIG_TPM_TIS_LPC=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_STORAGE=y
-CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_VIDEO_VESA=y
 CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
 CONFIG_FRAMEBUFFER_VESA_MODE_11A=y