blob: c8cd6e3d424fdaeea32621ce9a9f5c6651748caa [file] [log] [blame]
Dinesh Gehlot91da19c2023-05-07 13:47:49 +00001/* 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. */
9void cmos_read_fw_partition_info(struct cse_specific_info *info);
10
11/* Helper function to write CSE fpt information to cmos memory. */
12void cmos_write_fw_partition_info(const struct cse_specific_info *info);
13
Krishna Prasad Bhat98fb5ff2023-07-18 21:49:17 +053014/* Helper function to update the `psr_backup_status` in CMOS memory */
15void 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 */
22int8_t get_psr_backup_status(void);
23
Dinesh Gehlot91da19c2023-05-07 13:47:49 +000024#endif /* SOC_INTEL_COMMON_BLOCK_CSE_LITE_CMOS_H */