diff mbox

[U-Boot,v3,10/28] x86: dts: Add a device tree file for EFI

Message ID 1438713246-1887-11-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Aug. 4, 2015, 6:33 p.m. UTC
This contains just enough to bring up the serial UART.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2:
- Remove extraneous '+' in comment
- Use "efi,app" instead of "efi,payload" for the compatible string

 arch/x86/dts/Makefile |  1 +
 arch/x86/dts/efi.dts  | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 arch/x86/dts/efi.dts

Comments

Bin Meng Aug. 5, 2015, 7:41 a.m. UTC | #1
On Wed, Aug 5, 2015 at 2:33 AM, Simon Glass <sjg@chromium.org> wrote:
> This contains just enough to bring up the serial UART.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Remove extraneous '+' in comment
> - Use "efi,app" instead of "efi,payload" for the compatible string
>
>  arch/x86/dts/Makefile |  1 +
>  arch/x86/dts/efi.dts  | 22 ++++++++++++++++++++++
>  2 files changed, 23 insertions(+)
>  create mode 100644 arch/x86/dts/efi.dts
>
> diff --git a/arch/x86/dts/Makefile b/arch/x86/dts/Makefile
> index 44e2829..71595c7 100644
> --- a/arch/x86/dts/Makefile
> +++ b/arch/x86/dts/Makefile
> @@ -2,6 +2,7 @@ dtb-y += bayleybay.dtb \
>         chromebook_link.dtb \
>         chromebox_panther.dtb \
>         crownbay.dtb \
> +       efi.dtb \
>         galileo.dtb \
>         minnowmax.dtb \
>         qemu-x86_i440fx.dtb \
> diff --git a/arch/x86/dts/efi.dts b/arch/x86/dts/efi.dts
> new file mode 100644
> index 0000000..1f50428
> --- /dev/null
> +++ b/arch/x86/dts/efi.dts
> @@ -0,0 +1,22 @@
> +/*
> + * Copyright (c) 2015 Google, Inc
> + *
> + * SPDX-License-Identifier:    GPL-2.0+
> + */
> +
> +/dts-v1/;
> +
> +/include/ "skeleton.dtsi"
> +
> +/ {
> +       model = "EFI";
> +       compatible = "efi,app";
> +
> +       chosen {
> +               stdout-path = &serial;
> +       };
> +
> +       serial: serial {
> +               compatible = "efi,uart";
> +       };
> +};
> --

Tested on Intel Crown Bay and QEMU
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Simon Glass Aug. 5, 2015, 6:02 p.m. UTC | #2
On 5 August 2015 at 01:41, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Wed, Aug 5, 2015 at 2:33 AM, Simon Glass <sjg@chromium.org> wrote:
>> This contains just enough to bring up the serial UART.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>
>> Changes in v3: None
>> Changes in v2:
>> - Remove extraneous '+' in comment
>> - Use "efi,app" instead of "efi,payload" for the compatible string
>>
>>  arch/x86/dts/Makefile |  1 +
>>  arch/x86/dts/efi.dts  | 22 ++++++++++++++++++++++
>>  2 files changed, 23 insertions(+)
>>  create mode 100644 arch/x86/dts/efi.dts
>>
>> diff --git a/arch/x86/dts/Makefile b/arch/x86/dts/Makefile
>> index 44e2829..71595c7 100644
>> --- a/arch/x86/dts/Makefile
>> +++ b/arch/x86/dts/Makefile
>> @@ -2,6 +2,7 @@ dtb-y += bayleybay.dtb \
>>         chromebook_link.dtb \
>>         chromebox_panther.dtb \
>>         crownbay.dtb \
>> +       efi.dtb \
>>         galileo.dtb \
>>         minnowmax.dtb \
>>         qemu-x86_i440fx.dtb \
>> diff --git a/arch/x86/dts/efi.dts b/arch/x86/dts/efi.dts
>> new file mode 100644
>> index 0000000..1f50428
>> --- /dev/null
>> +++ b/arch/x86/dts/efi.dts
>> @@ -0,0 +1,22 @@
>> +/*
>> + * Copyright (c) 2015 Google, Inc
>> + *
>> + * SPDX-License-Identifier:    GPL-2.0+
>> + */
>> +
>> +/dts-v1/;
>> +
>> +/include/ "skeleton.dtsi"
>> +
>> +/ {
>> +       model = "EFI";
>> +       compatible = "efi,app";
>> +
>> +       chosen {
>> +               stdout-path = &serial;
>> +       };
>> +
>> +       serial: serial {
>> +               compatible = "efi,uart";
>> +       };
>> +};
>> --
>
> Tested on Intel Crown Bay and QEMU
> Tested-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot-x86.
diff mbox

Patch

diff --git a/arch/x86/dts/Makefile b/arch/x86/dts/Makefile
index 44e2829..71595c7 100644
--- a/arch/x86/dts/Makefile
+++ b/arch/x86/dts/Makefile
@@ -2,6 +2,7 @@  dtb-y += bayleybay.dtb \
 	chromebook_link.dtb \
 	chromebox_panther.dtb \
 	crownbay.dtb \
+	efi.dtb \
 	galileo.dtb \
 	minnowmax.dtb \
 	qemu-x86_i440fx.dtb \
diff --git a/arch/x86/dts/efi.dts b/arch/x86/dts/efi.dts
new file mode 100644
index 0000000..1f50428
--- /dev/null
+++ b/arch/x86/dts/efi.dts
@@ -0,0 +1,22 @@ 
+/*
+ * Copyright (c) 2015 Google, Inc
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/dts-v1/;
+
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "EFI";
+	compatible = "efi,app";
+
+	chosen {
+		stdout-path = &serial;
+	};
+
+	serial: serial {
+		compatible = "efi,uart";
+	};
+};