mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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:

committed by
Stefano Babic

parent
9e41b54a2e
commit
886678fcf7
@ -29,6 +29,7 @@
|
|||||||
#include <input.h>
|
#include <input.h>
|
||||||
#include <pwm.h>
|
#include <pwm.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include "../common/ge_common.h"
|
||||||
#include "../common/vpd_reader.h"
|
#include "../common/vpd_reader.h"
|
||||||
#include "../../../drivers/net/e1000.h"
|
#include "../../../drivers/net/e1000.h"
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
@ -805,6 +806,8 @@ int board_late_init(void)
|
|||||||
/* board specific pmic init */
|
/* board specific pmic init */
|
||||||
pmic_init();
|
pmic_init();
|
||||||
|
|
||||||
|
check_time();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ CONFIG_CMD_BOOTZ=y
|
|||||||
# CONFIG_CMD_FPGA is not set
|
# CONFIG_CMD_FPGA is not set
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_I2C=y
|
CONFIG_CMD_I2C=y
|
||||||
|
CONFIG_RTC_RX8010SJ=y
|
||||||
CONFIG_CMD_MMC=y
|
CONFIG_CMD_MMC=y
|
||||||
CONFIG_CMD_SF=y
|
CONFIG_CMD_SF=y
|
||||||
# CONFIG_CMD_NFS is not set
|
# CONFIG_CMD_NFS is not set
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
"setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
|
"setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
|
||||||
"ro rootwait cma=128M " \
|
"ro rootwait cma=128M " \
|
||||||
"bootcause=${bootcause} " \
|
"bootcause=${bootcause} " \
|
||||||
"${quiet} console=${console} " \
|
"${quiet} console=${console} ${rtc_status} " \
|
||||||
BX50V3_BOOTARGS_EXTRA "\0" \
|
BX50V3_BOOTARGS_EXTRA "\0" \
|
||||||
"doquiet=" \
|
"doquiet=" \
|
||||||
"if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
|
"if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
|
||||||
@ -241,6 +241,10 @@
|
|||||||
#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
|
#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
|
||||||
#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(1, 5)
|
#define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(1, 5)
|
||||||
|
|
||||||
|
#define CONFIG_RTC_RX8010SJ
|
||||||
|
#define CONFIG_SYS_RTC_BUS_NUM 2
|
||||||
|
#define CONFIG_SYS_I2C_RTC_ADDR 0x32
|
||||||
|
|
||||||
/* I2C Configs */
|
/* I2C Configs */
|
||||||
#define CONFIG_SYS_I2C
|
#define CONFIG_SYS_I2C
|
||||||
#define CONFIG_SYS_I2C_MXC
|
#define CONFIG_SYS_I2C_MXC
|
||||||
|
Reference in New Issue
Block a user