public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] rtc: Update Kconfig dependencies
Date: Fri, 20 Mar 2026 14:53:34 -0600	[thread overview]
Message-ID: <20260320205334.3788743-1-trini@konsulko.com> (raw)

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 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 648948cc735e..65d9bf533cb1 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -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.
-- 
2.43.0


             reply	other threads:[~2026-03-20 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-20 20:53 Tom Rini [this message]
2026-04-03 19:47 ` [PATCH] rtc: Update Kconfig dependencies Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260320205334.3788743-1-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox