drivers: rtc: allow configuring the RTC initialization priority
Add Kconfig to allow configuring the RTC device driver initialization priority. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
70677fe392
commit
29d112c0ff
2 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,12 @@ menuconfig RTC
|
|||
|
||||
if RTC
|
||||
|
||||
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
|
||||
|
|
|
@ -521,6 +521,6 @@ int rtc_emul_init(const struct device *dev)
|
|||
RTC_EMUL_DEVICE_DATA(id) \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(id, rtc_emul_init, NULL, &rtc_emul_data_##id, NULL, POST_KERNEL, \
|
||||
99, &rtc_emul_driver_api);
|
||||
CONFIG_RTC_INIT_PRIORITY, &rtc_emul_driver_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(RTC_EMUL_DEVICE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue