1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef SOC_INTEL_COMMON_BLOCK_CSE_LITE_CMOS_H 4 #define SOC_INTEL_COMMON_BLOCK_CSE_LITE_CMOS_H 5 6 #include <intelblocks/cse.h> 7 8 /* Helper function to read CSE fpt information from cmos memory. */ 9 void cmos_read_fw_partition_info(struct cse_specific_info *info); 10 11 /* Helper function to write CSE fpt information to cmos memory. */ 12 void cmos_write_fw_partition_info(const struct cse_specific_info *info); 13 14 /* Helper function to update the `psr_backup_status` in CMOS memory */ 15 void update_psr_backup_status(int8_t status); 16 17 /* 18 * Helper function to retrieve the current `psr_backup_status` in CMOS memory 19 * Returns current status on success, the status can be PSR_BACKUP_DONE or PSR_BACKUP_PENDING. 20 * Returns -1 in case of signature mismatch or checksum failure. 21 */ 22 int8_t get_psr_backup_status(void); 23 24 #endif /* SOC_INTEL_COMMON_BLOCK_CSE_LITE_CMOS_H */ 25