Created
March 27, 2018 02:57
-
-
Save lbdroid/4b4dc3930137ae2c2e4fe72996e1f08c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi | |
index 59c7f62..1a2c088 100644 | |
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi | |
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi | |
@@ -423,12 +423,17 @@ | |
interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; | |
#address-cells = <1>; | |
#size-cells = <0>; | |
- clock-frequency = <400000>; | |
+ clock-frequency = <100000>; | |
clocks = <&crg_ctrl HI3660_CLK_GATE_I2C0>; | |
resets = <&iomcu_rst 0x20 3>; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>; | |
- status = "disabled"; | |
+ status = "ok"; | |
+ | |
+ rtc@68 { | |
+ compatible = "dallas,ds1307"; | |
+ reg = <0x68>; /* I2C address */ | |
+ }; | |
}; | |
i2c1: i2c@ffd72000 { | |
diff --git a/arch/arm64/configs/hikey960_defconfig b/arch/arm64/configs/hikey960_defconfig | |
index e0e6afe..ada9d38 100644 | |
--- a/arch/arm64/configs/hikey960_defconfig | |
+++ b/arch/arm64/configs/hikey960_defconfig | |
@@ -451,6 +451,10 @@ CONFIG_RTC_CLASS=y | |
CONFIG_RTC_DRV_EFI=y | |
CONFIG_RTC_DRV_PL031=y | |
CONFIG_RTC_DRV_XGENE=y | |
+CONFIG_RTC_DRV_DS1307=y | |
+CONFIG_RTC_DRV_DS1307_CENTURY=y | |
+CONFIG_RTC_HCTOSYS_DEVICE="rtc1" | |
+CONFIG_RTC_SYSTOHC_DEVICE="rtc1" | |
CONFIG_DMADEVICES=y | |
CONFIG_HISI_ASP_DMA=y | |
CONFIG_VIRTIO_BALLOON=y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment