Skip to content

drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B #56334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions boards/x86/ehl_crb/ehl_crb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
};

aliases {
rtc = &rtc;
};
};
1 change: 1 addition & 0 deletions boards/x86/ehl_crb/ehl_crb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ram: 2048
supported:
- gpio
- smbus
- rtc
testing:
ignore_tags:
- net
Expand Down
1 change: 1 addition & 0 deletions boards/x86/qemu_x86/qemu_x86.dts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
uart-1 = &uart1;
eeprom-0 = &eeprom0;
eeprom-1 = &eeprom1;
rtc = &rtc;
};

chosen {
Expand Down
1 change: 1 addition & 0 deletions boards/x86/rpl_crb/rpl_crb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

aliases {
watchdog0 = &tco_wdt;
rtc = &rtc;
};
};
1 change: 1 addition & 0 deletions boards/x86/rpl_crb/rpl_crb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ram: 2048
supported:
- smbus
- watchdog
- rtc
testing:
ignore_tags:
- net
Expand Down
2 changes: 1 addition & 1 deletion drivers/counter/Kconfig.cmos
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

config COUNTER_CMOS
bool "Counter driver for x86 CMOS/RTC clock"
default y
default y if !RTC
depends on DT_HAS_MOTOROLA_MC146818_ENABLED
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ zephyr_library()
zephyr_library_sources_ifdef(CONFIG_USERSPACE rtc_handlers.c)
zephyr_library_sources_ifdef(CONFIG_RTC_EMUL rtc_emul.c)
zephyr_library_sources_ifdef(CONFIG_RTC_PCF8523 rtc_pcf8523.c)
zephyr_library_sources_ifdef(CONFIG_RTC_MOTOROLA_MC146818 rtc_mc146818.c)
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ config RTC_CALIBRATION

source "drivers/rtc/Kconfig.emul"
source "drivers/rtc/Kconfig.pcf8523"
source "drivers/rtc/Kconfig.mc146818"

endif # RTC
9 changes: 9 additions & 0 deletions drivers/rtc/Kconfig.mc146818
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Intel SoC RTC configuration options

# Copyright (c) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

config RTC_MOTOROLA_MC146818
bool "RTC driver for x86 CMOS/RTC clock"
default y if !COUNTER
depends on DT_HAS_MOTOROLA_MC146818_ENABLED
Loading