bsp:ls2k:make rtc driver to adapter Kconfig

rtc driver can not configured through Kconfig
This commit is contained in:
michael 2020-08-20 17:34:04 +08:00
parent 3ce53f9c79
commit b4f75d1ef8
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include <rtthread.h> #include <rtthread.h>
#include "ls2k1000.h" #include "ls2k1000.h"
#ifdef RT_USING_RTC
struct loongson_rtc { struct loongson_rtc {
rt_uint32_t sys_toytrim; rt_uint32_t sys_toytrim;
rt_uint32_t sys_toywrite0; rt_uint32_t sys_toywrite0;
@ -176,3 +178,5 @@ int rt_hw_rtc_init(void)
} }
INIT_DEVICE_EXPORT(rt_hw_rtc_init); INIT_DEVICE_EXPORT(rt_hw_rtc_init);
#endif /*RT_USING_RTC*/