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 <nandor.han@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
Nandor Han
2018-01-10 20:31:38 +01:00
committed by Stefano Babic
parent 9e41b54a2e
commit 886678fcf7
3 changed files with 9 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <input.h>
#include <pwm.h>
#include <stdlib.h>
#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;
}