Suggestion: Does the CONFIG_RTC_DS1307 and CONFIG_DM_RTC options conflict?
sunying at nj.iscas.ac.cn
sunying at nj.iscas.ac.cn
Thu Jun 29 11:54:54 CEST 2023
hi,
we recently noticed that RTC_DS1307 is dependent on DM_RTC in drivers/rtc/Kconfig,
but the code implementation of drivers/rtc/ds1307.c: conflicts between the two.
"#ifdef CONFIG_RTC_DS1307" is in the condition "#ifndef CONFIG_DM_RTC" .
These two options are used to enable different RTC drivers.
If both options are enabled, there is a situation where two RTC drivers
exist at the same time, which can lead to conflicts and errors.
Therefore, only one of these two options should be enabled, not both.
Do you think it is necessary to fix the dependency in drivers/rtc/Kconfig?
Best regards,
Yanjie Ren
Ying Sun
More information about the U-Boot
mailing list