Added RTC driver that supports Motorola MC146818B Enabled RTC set/get time and alarm, alarm callback and update callback. Counter and RTC uses same hardware in case of Motorola MC146818, so they can't be used at a time. Updated stand-alone mc146818 counter dts instances to support rtc and counter with same compatible string of "motorola,mc146818" on ia32, atom, apollo_lake, elhart_lake and raptor_lake platforms. Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
43 lines
971 B
Plaintext
43 lines
971 B
Plaintext
# Copyright (c) 2022 Bjarki Arge Andreasen
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig RTC
|
|
bool "Real-Time Clock (RTC) drivers"
|
|
help
|
|
Enable RTC driver configuration.
|
|
|
|
if RTC
|
|
|
|
module = RTC
|
|
module-str = rtc
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config RTC_INIT_PRIORITY
|
|
int "RTC init priority"
|
|
default KERNEL_INIT_PRIORITY_DEVICE
|
|
help
|
|
RTC device driver initialization priority.
|
|
|
|
config RTC_ALARM
|
|
bool "RTC driver alarm support"
|
|
help
|
|
This is an option which enables driver support for RTC alarms.
|
|
|
|
config RTC_UPDATE
|
|
bool "RTC driver update event callback support"
|
|
help
|
|
This is an option which enables driver support for the RTC
|
|
update event callback.
|
|
|
|
config RTC_CALIBRATION
|
|
bool "RTC driver clock calibration support"
|
|
help
|
|
This is an option which enables driver support for RTC clock
|
|
calibration.
|
|
|
|
source "drivers/rtc/Kconfig.emul"
|
|
source "drivers/rtc/Kconfig.pcf8523"
|
|
source "drivers/rtc/Kconfig.mc146818"
|
|
|
|
endif # RTC
|