diff mbox

[U-Boot,06/15] x86: galileo: Enable CPU driver

Message ID 1463906739-934-7-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit 0ac8d5e552c5642d97ce71658ecebb273d259221
Delegated to: Bin Meng
Headers show

Commit Message

Bin Meng May 22, 2016, 8:45 a.m. UTC
Add a cpu node in the device tree and enable CPU driver.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 arch/x86/dts/galileo.dts  | 12 ++++++++++++
 configs/galileo_defconfig |  2 ++
 2 files changed, 14 insertions(+)

Comments

Simon Glass May 23, 2016, 12:19 a.m. UTC | #1
On 22 May 2016 at 02:45, Bin Meng <bmeng.cn@gmail.com> wrote:
> Add a cpu node in the device tree and enable CPU driver.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  arch/x86/dts/galileo.dts  | 12 ++++++++++++
>  configs/galileo_defconfig |  2 ++
>  2 files changed, 14 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Bin Meng May 23, 2016, 8:19 a.m. UTC | #2
On Mon, May 23, 2016 at 8:19 AM, Simon Glass <sjg@chromium.org> wrote:
> On 22 May 2016 at 02:45, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Add a cpu node in the device tree and enable CPU driver.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>
>>  arch/x86/dts/galileo.dts  | 12 ++++++++++++
>>  configs/galileo_defconfig |  2 ++
>>  2 files changed, 14 insertions(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

applied to u-boot-x86, thanks!
diff mbox

Patch

diff --git a/arch/x86/dts/galileo.dts b/arch/x86/dts/galileo.dts
index f784c50..da3cbff 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 17b1458..21432e6 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