summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-05-22 01:45:30 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-05-23 15:27:41 +0800
commit0ac8d5e552c5642d97ce71658ecebb273d259221 (patch)
tree71b9eb9bb9aa6d3befe4fcc4aaf4f54a42a11af8
parentbab4b96166037016010238a19c8ab7175386cbc4 (diff)
downloadtalos-obmc-uboot-0ac8d5e552c5642d97ce71658ecebb273d259221.tar.gz
talos-obmc-uboot-0ac8d5e552c5642d97ce71658ecebb273d259221.zip
x86: galileo: Enable CPU driver
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>
-rw-r--r--arch/x86/dts/galileo.dts12
-rw-r--r--configs/galileo_defconfig2
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/dts/galileo.dts b/arch/x86/dts/galileo.dts
index f784c50675..da3cbff5cb 100644
--- a/arch/x86/dts/galileo.dts
+++ b/arch/x86/dts/galileo.dts
@@ -29,6 +29,18 @@
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>;
};
diff --git a/configs/galileo_defconfig b/configs/galileo_defconfig
index 17b14589cc..21432e69c1 100644
--- a/configs/galileo_defconfig
+++ b/configs/galileo_defconfig
@@ -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
OpenPOWER on IntegriCloud