void check_recovery_mode(void) { if (atc260x_pstore_get_noerr(ATC260X_PSTORE_TAG_REBOOT_RECOVERY) != 0) { printf("PMU recovery flag founded!\n"); atc260x_pstore_set(ATC260X_PSTORE_TAG_REBOOT_RECOVERY, 0); setup_recovery_env(); } if (check_recovery_cmd_file() == 0) { printf("Recovery command file founded!\n"); setup_recovery_env(); } if (check_update_file() == 0) { printf("Update.zip file founded!\n"); setup_recovery_env(); } }
int atc260x_ex_pstore_set(uint tag, u32 value) { ATC260X_ASSERT_VALID_DEV(s_current_atc260x); return atc260x_pstore_set(s_current_atc260x, tag, value); }