Skip to content

Commit

Permalink
drivers: rtc: sam0: Add realtime clock driver
Browse files Browse the repository at this point in the history
Add Atmel sam0 rtc calendar driver.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve committed Nov 23, 2024
1 parent 9ccfaae commit 1f05d35
Show file tree
Hide file tree
Showing 9 changed files with 664 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ zephyr_library_sources_ifdef(CONFIG_RTC_SHELL rtc_shell.c)
zephyr_library_sources_ifdef(CONFIG_RTC_FAKE rtc_fake.c)
zephyr_library_sources_ifdef(CONFIG_RTC_SMARTBOND rtc_smartbond.c)
zephyr_library_sources_ifdef(CONFIG_RTC_ATMEL_SAM rtc_sam.c)
zephyr_library_sources_ifdef(CONFIG_RTC_ATMEL_SAM0 rtc_sam0.c)
zephyr_library_sources_ifdef(CONFIG_RTC_RPI_PICO rtc_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_RTC_RV3028 rtc_rv3028.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NUMAKER rtc_numaker.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ source "drivers/rtc/Kconfig.pcf8563"
source "drivers/rtc/Kconfig.rpi_pico"
source "drivers/rtc/Kconfig.rv3028"
source "drivers/rtc/Kconfig.sam"
source "drivers/rtc/Kconfig.sam0"
source "drivers/rtc/Kconfig.smartbond"
source "drivers/rtc/Kconfig.stm32"
source "drivers/rtc/Kconfig.numaker"
Expand Down
10 changes: 10 additions & 0 deletions drivers/rtc/Kconfig.sam0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 Gerson Fernando Budke <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config RTC_ATMEL_SAM0
bool "Atmel SAM RTC driver"
default y
depends on DT_HAS_ATMEL_SAM0_RTC_ENABLED \
&& !$(dt_nodelabel_bool_prop,rtc,systimer)
help
Atmel Real-Time Clock (RTC) driver used on SAM0 SoC series.
Loading

0 comments on commit 1f05d35

Please sign in to comment.