x86: crownbay: Enable DM RTC support
authorBin Meng <bmeng.cn@gmail.com>
Tue, 23 Jun 2015 04:18:43 +0000 (12:18 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Jul 2015 00:03:16 +0000 (18:03 -0600)
Add a RTC node in the device tree to enable DM RTC support.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/crownbay.dts
arch/x86/dts/rtc.dtsi [new file with mode: 0644]
configs/crownbay_defconfig

index 1ec90cd..87ed0f4 100644 (file)
@@ -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 (file)
index 0000000..93dacd7
--- /dev/null
@@ -0,0 +1,6 @@
+/ {
+       rtc {
+               compatible = "motorola,mc146818";
+               reg = <0x70 2>;
+       };
+};
index 93f9216..6c38504 100644 (file)
@@ -18,3 +18,4 @@ CONFIG_CPU=y
 CONFIG_SPI_FLASH=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
+CONFIG_DM_RTC=y