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: Remove legacy DS1338 support
Date: Fri, 20 Mar 2026 14:53:31 -0600	[thread overview]
Message-ID: <20260320205331.3788710-1-trini@konsulko.com> (raw)

The DS1338 RTC chip is supported in DM mode by the DS1307 driver, and at
this point all users have been using this functionality. It was a
function of Kconfig configuration that implied otherwise. Remove the
unused legacy symbols.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 configs/eb_cpu5282_defconfig          | 2 +-
 configs/eb_cpu5282_internal_defconfig | 2 +-
 drivers/rtc/Kconfig                   | 6 ------
 drivers/rtc/Makefile                  | 1 -
 4 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/configs/eb_cpu5282_defconfig b/configs/eb_cpu5282_defconfig
index e7a78b656a06..64e0267af91d 100644
--- a/configs/eb_cpu5282_defconfig
+++ b/configs/eb_cpu5282_defconfig
@@ -44,6 +44,6 @@ CONFIG_SYS_MAX_FLASH_SECT=128
 CONFIG_MCFFEC=y
 CONFIG_MII=y
 CONFIG_DM_RTC=y
-CONFIG_RTC_DS1338=y
+CONFIG_RTC_DS1307=y
 CONFIG_MCFUART=y
 CONFIG_WDT=y
diff --git a/configs/eb_cpu5282_internal_defconfig b/configs/eb_cpu5282_internal_defconfig
index 137b346e5699..cf25d24bf9d6 100644
--- a/configs/eb_cpu5282_internal_defconfig
+++ b/configs/eb_cpu5282_internal_defconfig
@@ -42,6 +42,6 @@ CONFIG_SYS_MAX_FLASH_SECT=128
 CONFIG_MCFFEC=y
 CONFIG_MII=y
 CONFIG_DM_RTC=y
-CONFIG_RTC_DS1338=y
+CONFIG_RTC_DS1307=y
 CONFIG_MCFUART=y
 CONFIG_WDT=y
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index ef1663f3450e..cb0a672668ea 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -81,12 +81,6 @@ config RTC_DS1337_NOOSC
 	bool "Enable support for no oscillator output in DS1337 driver"
 	depends on RTC_DS1337
 
-config RTC_DS1338
-	bool "Enable DS1338 driver"
-	help
-	  Support for Dallas Semiconductor (now Maxim) DS1338 and compatible
-	  Real Time Clock devices.
-
 config RTC_DS1374
 	bool "Enable DS1374 driver"
 	depends on !DM_RTC
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 9df373d51484..782f5a3bc3da 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -9,7 +9,6 @@ obj-$(CONFIG_$(PHASE_)DM_RTC) += rtc-uclass.o
 obj-$(CONFIG_RTC_ARMADA38X) += armada38x.o
 obj-$(CONFIG_RTC_DAVINCI) += davinci.o
 obj-$(CONFIG_RTC_DS1307) += ds1307.o
-obj-$(CONFIG_RTC_DS1338) += ds1307.o
 obj-$(CONFIG_RTC_DS1337) += ds1337.o
 obj-$(CONFIG_RTC_DS1374) += ds1374.o
 obj-$(CONFIG_RTC_DS1672) += ds1672.o
-- 
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: Remove legacy DS1338 support 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=20260320205331.3788710-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