aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-10-15 12:40:51 +0200
committerStefano Babic <sbabic@denx.de>2019-11-03 17:04:16 +0100
commitf6a4df3846fd4e578e860c36b07d588c2b7a6c87 (patch)
tree95ec37a8dcbf64bccd196d81b7bf1daa2dcaf6c8
parent5c47bf7195767d45049fd2482bc75fccbbfe7055 (diff)
downloadu-boot-f6a4df3846fd4e578e860c36b07d588c2b7a6c87.zip
u-boot-f6a4df3846fd4e578e860c36b07d588c2b7a6c87.tar.gz
u-boot-f6a4df3846fd4e578e860c36b07d588c2b7a6c87.tar.bz2
imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board
The TPC70 is equipped with DS1307 RTC device. Add code to enable support for it. Signed-off-by: Lukasz Majewski <lukma@denx.de>
-rw-r--r--arch/arm/dts/imx6q-kp.dts5
-rw-r--r--configs/kp_imx6q_tpc_defconfig2
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/dts/imx6q-kp.dts b/arch/arm/dts/imx6q-kp.dts
index 12d6db6..48ade9e 100644
--- a/arch/arm/dts/imx6q-kp.dts
+++ b/arch/arm/dts/imx6q-kp.dts
@@ -76,6 +76,11 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";
+
+ ds1307: rtc@32 {
+ compatible = "dallas,ds1307";
+ reg = <0x32>;
+ };
};
&i2c2 {
diff --git a/configs/kp_imx6q_tpc_defconfig b/configs/kp_imx6q_tpc_defconfig
index 3d93c20..2484e91 100644
--- a/configs/kp_imx6q_tpc_defconfig
+++ b/configs/kp_imx6q_tpc_defconfig
@@ -62,6 +62,8 @@ CONFIG_SPL_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_SPL_DM_REGULATOR_FIXED=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
# CONFIG_REQUIRE_SERIAL_CONSOLE is not set
CONFIG_MXC_UART=y
CONFIG_SYSRESET=y