PD#174867
Problem:
vrtc time update for stick mem.
Solution:
vrtc time update for stick mem.
Verify:
g12a txl.
Change-Id: I65074422569370b253882a4e66fb771da10ccdbf
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
sys_poweroff = <0x84000008>;
};
+ rtc {
+ compatible = "amlogic, aml_vrtc";
+ alarm_reg_addr = <0xc81000a8>;
+ timer_e_addr = <0xc1109988>;
+ init_date = "2018/01/01";
+ status = "okay";
+ };
+
soc {
compatible = "simple-bus";
#address-cells = <1>;
sys_poweroff = <0x84000008>;
};
+ rtc {
+ compatible = "amlogic, aml_vrtc";
+ alarm_reg_addr = <0xc81000a8>;
+ timer_e_addr = <0xc1109988>;
+ init_date = "2018/01/01";
+ status = "okay";
+ };
+
soc {
compatible = "simple-bus";
#address-cells = <2>;
if (!ret) {
pr_debug("init_date: %s\n", str);
if (!scpi_get_vrtc(&vrtc_val)) {
- vrtc_init_date = vrtc_val;
- pr_debug("get vrtc: %us\n", vrtc_init_date);
+ if (!vrtc_val)
+ parse_init_date(str);
+ else {
+ vrtc_init_date = vrtc_val;
+ pr_debug("get vrtc: %us\n", vrtc_init_date);
+ }
} else
parse_init_date(str);
}