diff mbox

[U-Boot,RESPIN,v2,03/15] x86: crownbay: Enable DM RTC support

Message ID BLU437-SMTP730B2FBD06CC06BBCA1479BFA00@phx.gbl
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng June 23, 2015, 4:18 a.m. UTC
Add a RTC node in the device tree to enable DM RTC support.

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

---

Changes in v2:
- New patch to enable DM RTC support for Crown Bay

 arch/x86/dts/crownbay.dts  | 1 +
 arch/x86/dts/rtc.dtsi      | 6 ++++++
 configs/crownbay_defconfig | 1 +
 3 files changed, 8 insertions(+)
 create mode 100644 arch/x86/dts/rtc.dtsi

Comments

Simon Glass June 24, 2015, 1:45 a.m. UTC | #1
On 22 June 2015 at 22:18, Bin Meng <bmeng.cn@gmail.com> wrote:
> Add a RTC node in the device tree to enable DM RTC support.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>
> ---
>
> Changes in v2:
> - New patch to enable DM RTC support for Crown Bay
>
>  arch/x86/dts/crownbay.dts  | 1 +
>  arch/x86/dts/rtc.dtsi      | 6 ++++++
>  configs/crownbay_defconfig | 1 +
>  3 files changed, 8 insertions(+)
>  create mode 100644 arch/x86/dts/rtc.dtsi

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass June 24, 2015, 2:45 a.m. UTC | #2
On 23 June 2015 at 19:45, Simon Glass <sjg@chromium.org> wrote:
> On 22 June 2015 at 22:18, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Add a RTC node in the device tree to enable DM RTC support.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>>
>> ---
>>
>> Changes in v2:
>> - New patch to enable DM RTC support for Crown Bay
>>
>>  arch/x86/dts/crownbay.dts  | 1 +
>>  arch/x86/dts/rtc.dtsi      | 6 ++++++
>>  configs/crownbay_defconfig | 1 +
>>  3 files changed, 8 insertions(+)
>>  create mode 100644 arch/x86/dts/rtc.dtsi
>
> Acked-by: Simon Glass <sjg@chromium.org>

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

Patch

diff --git a/arch/x86/dts/crownbay.dts b/arch/x86/dts/crownbay.dts
index 1ec90cd..87ed0f4 100644
--- a/arch/x86/dts/crownbay.dts
+++ b/arch/x86/dts/crownbay.dts
@@ -10,6 +10,7 @@ 
 
 /include/ "skeleton.dtsi"
 /include/ "serial.dtsi"
+/include/ "rtc.dtsi"
 
 / {
 	model = "Intel Crown Bay";
diff --git a/arch/x86/dts/rtc.dtsi b/arch/x86/dts/rtc.dtsi
new file mode 100644
index 0000000..93dacd7
--- /dev/null
+++ b/arch/x86/dts/rtc.dtsi
@@ -0,0 +1,6 @@ 
+/ {
+	rtc {
+		compatible = "motorola,mc146818";
+		reg = <0x70 2>;
+	};
+};
diff --git a/configs/crownbay_defconfig b/configs/crownbay_defconfig
index d21177d..abf5e3c 100644
--- a/configs/crownbay_defconfig
+++ b/configs/crownbay_defconfig
@@ -9,3 +9,4 @@  CONFIG_CMD_CPU=y
 CONFIG_CMD_NET=y
 CONFIG_OF_CONTROL=y
 CONFIG_CPU=y
+CONFIG_DM_RTC=y