Skip to content
Snippets Groups Projects
Commit 8cffb50a authored by AKASHI Takahiro's avatar AKASHI Takahiro Committed by Tom Rini
Browse files

rtc: compile date.c if DM_RTC


rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least
PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if
we don't want or need this command.

Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 323a73ad
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
#include <errno.h> #include <errno.h>
#include <rtc.h> #include <rtc.h>
#if defined(CONFIG_CMD_DATE) || defined(CONFIG_TIMESTAMP) #if defined(CONFIG_CMD_DATE) || defined(CONFIG_DM_RTC) || \
defined(CONFIG_TIMESTAMP)
#define FEBRUARY 2 #define FEBRUARY 2
#define STARTOFTIME 1970 #define STARTOFTIME 1970
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment