driver: peci: Add supported peci response codes
Add supported peci response codes 0x80 (Out of resources timeout) and 0x81 (Resources required to service the command are in low power state). Signed-off-by: Diwakar C <diwakar.c@intel.com>
This commit is contained in:
parent
f5409dec01
commit
ddfb1316ee
2 changed files with 6 additions and 4 deletions
|
@ -65,9 +65,11 @@ enum peci_command_code {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** PECI read/write supported responses */
|
/** PECI read/write supported responses */
|
||||||
#define PECI_RW_PKG_CFG_RSP_PASS (0x40U)
|
#define PECI_CC_RSP_SUCCESS (0x40U)
|
||||||
#define PECI_RW_PKG_CFG_RSP_TIMEOUT (0x80U)
|
#define PECI_CC_RSP_TIMEOUT (0x80U)
|
||||||
#define PECI_RW_PKG_CFG_RSP_ILLEGAL (0x90U)
|
#define PECI_CC_OUT_OF_RESOURCES_TIMEOUT (0x81U)
|
||||||
|
#define PECI_CC_RESOURCES_LOWPWR_TIMEOUT (0x82U)
|
||||||
|
#define PECI_CC_ILLEGAL_REQUEST (0x90U)
|
||||||
|
|
||||||
/** Ping command format. */
|
/** Ping command format. */
|
||||||
#define PECI_PING_WR_LEN (0U)
|
#define PECI_PING_WR_LEN (0U)
|
||||||
|
|
|
@ -90,7 +90,7 @@ int peci_get_tjmax(uint8_t *tjmax)
|
||||||
k_sleep(K_MSEC(1));
|
k_sleep(K_MSEC(1));
|
||||||
printk("\npeci_resp %x\n", peci_resp);
|
printk("\npeci_resp %x\n", peci_resp);
|
||||||
retries--;
|
retries--;
|
||||||
} while ((peci_resp != PECI_RW_PKG_CFG_RSP_PASS) && (retries > 0));
|
} while ((peci_resp != PECI_CC_RSP_SUCCESS) && (retries > 0));
|
||||||
|
|
||||||
*tjmax = packet.rx_buffer.buf[3];
|
*tjmax = packet.rx_buffer.buf[3];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue