]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: galileo: Enable CPU driver
authorBin Meng <bmeng.cn@gmail.com>
Sun, 22 May 2016 08:45:30 +0000 (01:45 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 23 May 2016 07:27:41 +0000 (15:27 +0800)
Add a cpu node in the device tree and enable CPU driver.

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

index f784c50675c6c5c70445836c4f808ecf70ce69b7..da3cbff5cb319255a439dd3eb97a700d292e39e9 100644 (file)
                stdout-path = &pciuart0;
        };
 
+       cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               cpu@0 {
+                       device_type = "cpu";
+                       compatible = "cpu-x86";
+                       reg = <0>;
+                       intel,apic-id = <0>;
+               };
+       };
+
        tsc-timer {
                clock-frequency = <400000000>;
        };
index 17b14589cc4cfc10680f142bd4ec67e04e7dcf7c..21432e69c1c146d89121358130fc20f47ed26fb6 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_FIT=y
 CONFIG_BOOTSTAGE=y
 CONFIG_BOOTSTAGE_REPORT=y
 CONFIG_HUSH_PARSER=y
+CONFIG_CMD_CPU=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
@@ -30,6 +31,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_CPU=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y