]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rtc: Update Kconfig dependencies
authorTom Rini <trini@konsulko.com>
Fri, 20 Mar 2026 20:53:34 +0000 (14:53 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 3 Apr 2026 18:06:27 +0000 (12:06 -0600)
Update the dependencies for RTC drivers which did not express a
requirement on DM_RTC, or in some cases on DM_RTC being disabled. In a
few cases, when DM_RTC is disabled we also require DM_I2C to also be
disabled or for POWER_LEGACY to be enabled.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/rtc/Kconfig

index 648948cc735e119f891786932282f69b58ca905a..65d9bf533cb16e2a300903d0228b004bbe7bf96f 100644 (file)
@@ -84,7 +84,7 @@ config RTC_DS1337_NOOSC
 
 config RTC_DS1374
        bool "Enable DS1374 driver"
-       depends on !DM_RTC
+       depends on !DM_RTC && !DM_I2C
        help
          Support for Dallas Semiconductor (now Maxim) DS1374 and compatible
          Real Time Clock devices.
@@ -166,12 +166,14 @@ config RTC_PCF85063
 
 config RTC_PCF8563
        bool "Philips PCF8563"
+       depends on DM_RTC
        help
          If you say yes here you get support for the Philips PCF8563 RTC
          and compatible chips.
 
 config RTC_PT7C4338
        bool "Enable Pericom Technology PT7C4338 RTC driver"
+       depends on DM_RTC
 
 config RTC_RV3028
        bool "Enable RV3028 driver"
@@ -235,13 +237,14 @@ config RTC_MV
 
 config RTC_S35392A
        bool "Enable S35392A driver"
+       depends on DM_RTC
        select BITREVERSE
        help
          Enable s35392a driver which provides rtc get and set function.
 
 config RTC_MC13XXX
        bool "Enable MC13XXX RTC driver"
-       depends on !DM_RTC
+       depends on !DM_RTC && POWER_LEGACY
 
 config RTC_MC146818
        bool "Enable MC146818 driver"
@@ -253,6 +256,7 @@ config RTC_MC146818
 
 config MCFRTC
        bool "Use common CF RTC driver"
+       depends on DM_RTC
        depends on M68K
 
 config SYS_MCFRTC_BASE
@@ -262,9 +266,11 @@ config SYS_MCFRTC_BASE
 config RTC_MXS
        bool "Enable i.MXS RTC driver"
        depends on ARCH_MX23 || ARCH_MX28
+       depends on !DM_RTC
 
 config RTC_M41T62
        bool "Enable M41T62 driver"
+       depends on DM_RTC
        help
          Enable driver for ST's M41T62 compatible RTC devices (like RV-4162).
          It is a serial (I2C) real-time clock (RTC) with alarm.
@@ -305,6 +311,7 @@ config RTC_ABX80X
 config RTC_DAVINCI
        bool "Enable TI OMAP RTC driver"
        depends on ARCH_DAVINCI || ARCH_OMAP2PLUS
+       depends on DM_RTC
        help
          Say "yes" here to support the on chip real time clock
          present on TI OMAP1, AM33xx, DA8xx/OMAP-L13x, AM43xx and DRA7xx.