summaryrefslogtreecommitdiff
path: root/drivers/rtc/Kconfig
AgeCommit message (Collapse)Author
9 daysrtc: Update Kconfig dependenciesTom Rini
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 <[email protected]>
9 daysrtc: ds1337: Remove various legacy code and update dependenciesTom Rini
At this point there are no users of this driver which do not enable DM_RTC, so remove the legacy code and express the depdendency in Kconfig. We can further remove code related to RTC chips / options that are neither available in Kconfig nor set by any platforms. Signed-off-by: Tom Rini <[email protected]>
9 daysrtc: Remove legacy DS1338 supportTom Rini
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 <[email protected]>
2025-11-28drivers: rtc: add RV3032 supportMichael Walle
Add support for the Microcrystal RV3032 RTC. Signed-off-by: Michael Walle <[email protected]>
2025-11-28drivers: rtc: add PCF85063 supportMichael Walle
Add support for the Microcrystal RV8263 and compatible RTCs. The driver's name was taken from linux. It should work with any NXP PCF85063 compatible RTCs. It was tested with a RV8263. Signed-off-by: Michael Walle <[email protected]>
2025-11-28drivers: rtc: convert tristate to boolMichael Walle
As u-boot doesn't have any loadable modules, tristate doesn't make sense. Convert it to bool. Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2025-08-14rtc: Tighten some rtc driver dependenciesTom Rini
The Marvell RTC rtc driver cannot build without access to some platform specific header files. Express that requirements in Kconfig as well. Signed-off-by: Tom Rini <[email protected]>
2025-06-25rtc: add ds1672 driverTim Harvey
Add support for Dallas/Maxim ds1672 32bit counter RTC. Signed-off-by: Tim Harvey <[email protected]>
2025-01-14rtc: zynqmp: allow on Versal architecturesVincent Fazio
Allow the ZyncMP RTC driver to be enabled on Versal architectures. Also, require DM_RTC since the driver uses the RTC driver model. Signed-off-by: Vincent Fazio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
2024-12-06rtc: CONFIGS_RTC_PL031 must depend on CONFIGS_DM_RTCHeinrich Schuchardt
Building qemu_arm64_defconfig with CONFIGS_DM_RTC=n and CONFIGS_RTC_PL031=y leads to a build failure. Adjust the vexpress64 configuration to avoid circular dependency. Signed-off-by: Heinrich Schuchardt <[email protected]>
2024-01-17rtc: driver for Goldfish RTCHeinrich Schuchardt
The Goldfish RTC is a virtual device which may be supplied by QEMU. It is enabled by default on QEMU's RISC-V virt machine. Signed-off-by: Heinrich Schuchardt <[email protected]>
2023-03-30drivers: rtc: add max313xx series rtc driverChris Packham
Adding support for Analog Devices MAX313XX series RTCs. This is ported from the Linux driver and adapted for use in u-boot. Notable differences are - handling of tm_year and tm_mon differ - clock source support is omitted - hwmon support for the MAX31328 and MAX31343 is omitted - rtc_ops->reset is added Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-03-02sandbox: Tidy up RTC optionsSimon Glass
At present we enable the sandbox RTC driver for all builds. Add a separate Kconfig option to control this, so that it can be disabled in TPL, where it is not needed. Signed-off-by: Simon Glass <[email protected]>
2023-01-02rtc: add ht1380 driverSergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds , minutes, hours, day of the week, date, month and year information. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2022-12-05Convert CONFIG_RTC_DS1337 et al to KconfigTom Rini
This converts the following to Kconfig: CONFIG_RTC_DS1337 CONFIG_RTC_DS1337_NOOSC CONFIG_RTC_DS1338 CONFIG_RTC_DS1374 CONFIG_RTC_DS3231 CONFIG_RTC_MC13XXX CONFIG_RTC_MXS CONFIG_RTC_PT7C4338 Signed-off-by: Tom Rini <[email protected]>
2022-05-02vpl: Add Kconfig options for VPLSimon Glass
Add VPL versions of commonly used Kconfig options. Signed-off-by: Simon Glass <[email protected]>
2022-04-01Convert CONFIG_MCFRTC et al to KconfigTom Rini
This converts the following to Kconfig: CONFIG_MCFRTC CONFIG_SYS_MCFRTC_BASE While at it, remove '#undef RTC_DEBUG' from these config files. Signed-off-by: Tom Rini <[email protected]>
2021-10-03rtc: rx8025: drop non-DM supportMathew McBride
A search of the tree showed there is only one user of this driver (soon to be two) - board/socrates The second user will be the Traverse Ten64 board. Both these boards have DM_RTC. Signed-off-by: Mathew McBride <[email protected]>
2021-08-06rtc: zynqmp: Add support for ZynqMP RTCMichal Simek
The whole driver logic is taken from Linux kernel but only set/get/reset functions are implemented. When device is power off RTC is power out of battery. Signed-off-by: Michal Simek <[email protected]>
2021-06-09rtc: davinci: enable compilation for omap architecturesDario Binacchi
The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and DRA7XX SOCs. So, let's enable compilation for these architectures too. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Lokesh Vutla <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-04-12rtc: add support for rv3028 rtcHeiko Schocher
Add support for rtc3028 rtc from microcrystal. based on linux dirver: commit a38fd8748464: ("Linux 5.12-rc2") Signed-off-by: Heiko Schocher <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2021-04-08rtc: add armada38x driverMarek Behún
Add RTC driver for Armada 38x, based on Linux' driver. For now implement only `marvell,armada-380-rtc` compatible. Signed-off-by: Marek Behún <[email protected]> Reviewed-by: Stefan Roese <[email protected]> Cc: Pali Rohár <[email protected]> Cc: Baruch Siach <[email protected]> Cc: Chris Packham <[email protected]> Cc: Simon Glass <[email protected]> Acked-by: Pali Rohár <[email protected]>
2021-01-27rtc: add rtc-abx80x, a driver for the Abracon AB x80x i2c rtcYing-Chun Liu (PaulLiu)
This is a basic driver for the ultra-low-power Abracon AB x80x series of RTC chips. It supports in particular, the supersets AB0805 and AB1805. It allows reading and writing the time, and enables the supercapacitor or battery charger. Signed-off-by: Ying-Chun Liu (PaulLiu) <[email protected]>
2020-10-30rtc: initialize emulated RTC from environment variableHeinrich Schuchardt
Up to now the emulated RTC is initialized using the U-Boot build time. With this patch the environment variable 'rtc_emul_epoch' can be used to provide a better initial time. The variable is a decimal string with the number of seconds since 1970-01-01. Here is an example where the RTC had not been probed yet: => setenv rtc_emul_epoch 1610109000 => date Date: 2021-01-08 (Friday) Time: 12:30:00 If the variable does not exist, the U-Boot build time is used as fallback. The environment variable may be set when shutting down the operating system if the U-Boot environment is exposed to the OS (cf. ENV_IS_IN_FAT and ENV_IS_IN_EXT4). Suggested-by: Pablo Sebastián Greco <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-10-27rtc: provide an emulated RTCHeinrich Schuchardt
On a board without hardware clock this software real time clock can be used. The build time is used to initialize the RTC. So you will have to adjust the time either manually using the 'date' command or use the 'sntp' to update the RTC with the time from a network time server. See CONFIG_CMD_SNTP and CONFIG_BOOTP_NTPSERVER. The RTC time is advanced according to CPU ticks. Signed-off-by: Heinrich Schuchardt <[email protected]>
2020-10-22rtc: move pcf8563 to KconfigHeiko Schocher
add Kconfig option for pcf8563 driver and run tools/moveconfig.py Signed-off-by: Heiko Schocher <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2020-01-10rtc: add support for DS3232 deviceHan Nandor
DS3232 is an i2c RTC with 236 bytes of battery-backed SRAM. Add an RTC driver for DS3232 device, which provides time and date support. Also read and write functions are provided, which can be used to access the SRAM memory. Signed-off-by: Nandor Han <[email protected]>
2019-12-06rtc: move date.c from drivers/rtc/ to lib/AKASHI Takahiro
In the next commit, rtc_mktime(), for compatibility with linux, will be implemented using rtc_mktime(), which is no longer drivers/rtc specific. So move this file under lib/. Signed-off-by: AKASHI Takahiro <[email protected]>
2019-08-22rtc: ds3232/ds3231: Add support to generate 32KHz output for driver moduleChuanhua Han
Add an implementation of the rtc_enable_32khz_output() that uses the driver model i2c APIs. Also put code related to rtc_enable_32khz_output under CONFIG_RTC_ENABLE_32KHZ_OUTPUT. Signed-off-by: Chuanhua Han <[email protected]> Reviewed-by: Prabhakar Kushwaha <[email protected]>
2019-07-29rtc: move RTC_RX8025 to KconfigHeiko Schocher
move RTC_RX8025 to Kconfig and fixup board configs. Signed-off-by: Heiko Schocher <[email protected]>
2019-07-22rtc: Add rtc driver for stm32mp1Patrick Delaunay
Add support of STM32MP1 rtc driver. Enable it for basic and trusted configurations. Signed-off-by: Benjamin Gaignard <[email protected]>
2019-07-13rtc: add Microcrystal RV-8803 driverMichael Walle
Signed-off-by: Michael Walle <[email protected]>
2018-12-03Kconfig: Migrate CONFIG_RTC_M41T62 define to KconfigLukasz Majewski
This patch moves the RTC M41T62 config define to Kconfig. Signed-off-by: Lukasz Majewski <[email protected]> Reviewed-by: Stefan Roese <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2018-11-30rtc: rv3029: add to KconfigPhilipp Tomsich
The MicroCrystal RV3029 driver didn't have a Kconfig entry and was not used anywhere. Add it to Kconfig to make it selectable. Signed-off-by: Philipp Tomsich <[email protected]> Tested-by: Klaus Goger <[email protected]>
2018-10-09rtc: Allow use of RTC in SPL and TPLSimon Glass
Add Kconfig options so that the RTC can be used in SPL and TPL. This is helpful for accessing the contents of CMOS RAM, for example. Signed-off-by: Simon Glass <[email protected]>
2018-10-09Kconfig: Convert CONFIG_RTC_MC146818 to KconfigSimon Glass
Move this option to Kconfig and tidy up the two boards which use it. Signed-off-by: Simon Glass <[email protected]>
2018-07-19ARM: qemu-arm: enable RTCHeinrich Schuchardt
QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. The patch sets the base address in the board include file according to the definition in hw/arm/virt.c of the QEMU source. It defines the Kconfig option for the existing driver, and enables the RTC driver in qemu_arm64_defconfig and qemu_arm_defconfig as well as the date command. We need an RTC to provide the GetTime() runtime service in the UEFI subsystem. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Tuomas Tynkkynen <[email protected]> Tested-by: Tuomas Tynkkynen <[email protected]> Signed-off-by: AKASHI Takahiro <[email protected]>
2018-06-05drivers/rtc: convert mvrtc to DMChris Packham
Add DM support for the Marvell RTC driver. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
2018-04-06rtc: rewrite isl1208 to support DMKlaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger <[email protected]> Reviewed-by: Philipp Tomsich <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2018-02-04rtc: adding RX8010SJ rtc driverNandor Han
Add a new driver for RX8010SJ rtc chip. The driver implements both formats of U-Boot driver model. Signed-off-by: Nandor Han <[email protected]> Signed-off-by: Martyn Welch <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2017-11-20rtc: add support for s35392aNandor Han
Add support for S35392A RTC. The driver supports both U-Boot driver models. Signed-off-by: Nandor Han <[email protected]> Signed-off-by: Martyn Welch <[email protected]> Cc: Heiko Schocher <[email protected]>
2017-05-08rtc: Add DM support to ds1307Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2017-01-14rtc: pcf2127: Update Kconfig and code styleMeng Yi
Unfortunately version 2 of this patch was applied which was missing some changes. Fix this. Signed-off-by: Meng Yi <[email protected]> Acked-by: Simon Glass <[email protected]> Signed-off-by: Simon Glass <[email protected]>
2016-12-02rtc: Add RTC chip pcf2127 supportMeng Yi
This driver compatible with pcf2127 and pcf2129 Signed-off-by: Meng Yi <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2015-08-12drivers: hierarchize drivers Kconfig menuMasahiro Yamada
The menuconfig for drivers are getting more and more cluttered and unreadable because too many entries are displayed in a single flat menu. Use hierarchic menu for each category. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Simon Glass <[email protected]> [trini: Update to apply again in a few places, drop USB hunk] Signed-off-by: Tom Rini <[email protected]>
2015-05-05dm: rtc: Add a uclass for real-time clocksSimon Glass
Add a uclass for real-time clocks which support getting the current time, setting it and resetting the chip to a known-working state. Some RTCs have additional registers which can be used to store settings, so also provide an interface to these. Signed-off-by: Simon Glass <[email protected]>
2014-09-24kconfig: add blank Kconfig filesMasahiro Yamada
This would be useful to start moving various config options. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Simon Glass <[email protected]> Tested-by: Simon Glass <[email protected]>