From e416e1f5e99eb270ecc8fdf1c89e01d3c07f48f4 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Mon, 5 Jul 2021 23:03:40 +0800 Subject: [PATCH] Revert "sunxi: disable RTC on h3/h5" This reverts commit 7686e88d0724e508c55c014b33083c6e724fe6f3. --- target/linux/sunxi/cortexa53/config-5.4 | 2 ++ target/linux/sunxi/cortexa7/config-5.4 | 2 ++ target/linux/sunxi/modules.mk | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/sunxi/cortexa53/config-5.4 b/target/linux/sunxi/cortexa53/config-5.4 index 97c4baf64e..0b3de52e90 100644 --- a/target/linux/sunxi/cortexa53/config-5.4 +++ b/target/linux/sunxi/cortexa53/config-5.4 @@ -164,6 +164,8 @@ CONFIG_QUEUED_RWLOCKS=y CONFIG_QUEUED_SPINLOCKS=y CONFIG_RAS=y CONFIG_RODATA_FULL_DEFAULT_ENABLED=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_SUN6I=y # CONFIG_SENSORS_DRIVETEMP is not set # CONFIG_SND_SUN50I_CODEC_ANALOG is not set CONFIG_SOUND_OSS_CORE_PRECLAIM=y diff --git a/target/linux/sunxi/cortexa7/config-5.4 b/target/linux/sunxi/cortexa7/config-5.4 index 2fce19b0f1..2e6537edf3 100644 --- a/target/linux/sunxi/cortexa7/config-5.4 +++ b/target/linux/sunxi/cortexa7/config-5.4 @@ -13,4 +13,6 @@ CONFIG_MDIO_BUS_MUX=y # CONFIG_PINCTRL_SUN50I_H5 is not set # CONFIG_PINCTRL_SUN50I_H6 is not set # CONFIG_PINCTRL_SUN50I_H6_R is not set +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_SUN6I=y CONFIG_UNWINDER_ARM=y diff --git a/target/linux/sunxi/modules.mk b/target/linux/sunxi/modules.mk index 1dc1ed2da6..409d985746 100644 --- a/target/linux/sunxi/modules.mk +++ b/target/linux/sunxi/modules.mk @@ -4,7 +4,7 @@ define KernelPackage/rtc-sunxi SUBMENU:=$(OTHER_MENU) - TITLE:=Allwinner A10/A20 built-in RTC support + TITLE:=AllWinner A10/A20 built-in RTC support DEPENDS:=@TARGET_sunxi $(call AddDepends/rtc) KCONFIG:= \ @@ -15,7 +15,7 @@ define KernelPackage/rtc-sunxi endef define KernelPackage/rtc-sunxi/description - Support for the AllWinner sunXi SoC's onboard RTC + Support for the AllWinner A10/A20 SoC's onboard RTC endef $(eval $(call KernelPackage,rtc-sunxi))