From 886678fcf715d7007d1c6e6358eb0ea952c666d4 Mon Sep 17 00:00:00 2001 From: Nandor Han Date: Wed, 10 Jan 2018 20:31:38 +0100 Subject: board,ge,bx50v3 - rtc time validation Validate the time at startup: - in case rtc error add to kernel command line RTC_ERROR - clamp date to 1-Jan-2036 Signed-off-by: Nandor Han Signed-off-by: Martyn Welch Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/ge/bx50v3/bx50v3.c') diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index e35afa0317..c7a29185bf 100644 --- a/board/ge/bx50v3/bx50v3.c +++ b/board/ge/bx50v3/bx50v3.c @@ -29,6 +29,7 @@ #include #include #include +#include "../common/ge_common.h" #include "../common/vpd_reader.h" #include "../../../drivers/net/e1000.h" DECLARE_GLOBAL_DATA_PTR; @@ -805,6 +806,8 @@ int board_late_init(void) /* board specific pmic init */ pmic_init(); + check_time(); + return 0; } -- cgit