From b4f75d1ef82194637f14e7a872dddaba6686f41a Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 20 Aug 2020 17:34:04 +0800 Subject: [PATCH] bsp:ls2k:make rtc driver to adapter Kconfig rtc driver can not configured through Kconfig --- bsp/ls2kdev/drivers/drv_rtc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsp/ls2kdev/drivers/drv_rtc.c b/bsp/ls2kdev/drivers/drv_rtc.c index 3a873cc6fc..ee125122e3 100644 --- a/bsp/ls2kdev/drivers/drv_rtc.c +++ b/bsp/ls2kdev/drivers/drv_rtc.c @@ -17,6 +17,8 @@ #include #include "ls2k1000.h" +#ifdef RT_USING_RTC + struct loongson_rtc { rt_uint32_t sys_toytrim; rt_uint32_t sys_toywrite0; @@ -176,3 +178,5 @@ int rt_hw_rtc_init(void) } INIT_DEVICE_EXPORT(rt_hw_rtc_init); + +#endif /*RT_USING_RTC*/