soc/amd/common/psp: move PSP SMI SPI access function prototypes
Now that we have the local psp_smi_flash.h header, move the psp_smi_spi_* function prototypes there. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I12cbbabf6a960836fe0c5dc1424c08550cb66a7a Reviewed-on: https://review.coreboot.org/c/coreboot/+/84068 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
parent
2710492d22
commit
975b061e34
3 changed files with 6 additions and 5 deletions
|
|
@ -153,9 +153,4 @@ enum cb_err soc_read_c2p38(uint32_t *msg_38_value);
|
|||
|
||||
void enable_psp_smi(void);
|
||||
|
||||
enum mbox_p2c_status psp_smi_spi_get_info(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_read(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_write(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_erase(struct mbox_default_buffer *buffer);
|
||||
|
||||
#endif /* __AMD_PSP_DEF_H__ */
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <device/mmio.h>
|
||||
#include <types.h>
|
||||
#include "psp_def.h"
|
||||
#include "psp_smi_flash.h"
|
||||
|
||||
/* PSP to x86 commands */
|
||||
#define MBOX_PSP_CMD_SPI_INFO 0x83
|
||||
|
|
|
|||
|
|
@ -61,3 +61,8 @@ void get_psp_spi_read_write(struct mbox_psp_cmd_spi_read_write *cmd_buf,
|
|||
uint64_t *num_bytes, uint8_t **data);
|
||||
void get_psp_spi_erase(struct mbox_psp_cmd_spi_erase *cmd_buf, uint64_t *target_nv_id,
|
||||
uint64_t *lba, uint64_t *num_blocks);
|
||||
|
||||
enum mbox_p2c_status psp_smi_spi_get_info(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_read(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_write(struct mbox_default_buffer *buffer);
|
||||
enum mbox_p2c_status psp_smi_spi_erase(struct mbox_default_buffer *buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue