summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/psp/psp_def.h5
-rw-r--r--src/soc/amd/common/block/psp/psp_smi.c1
-rw-r--r--src/soc/amd/common/block/psp/psp_smi_flash.h5
3 files changed, 6 insertions, 5 deletions
diff --git a/src/soc/amd/common/block/psp/psp_def.h b/src/soc/amd/common/block/psp/psp_def.h
index e723c84772..d1f57ac19c 100644
--- a/src/soc/amd/common/block/psp/psp_def.h
+++ b/src/soc/amd/common/block/psp/psp_def.h
@@ -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__ */
diff --git a/src/soc/amd/common/block/psp/psp_smi.c b/src/soc/amd/common/block/psp/psp_smi.c
index be7d4cb8bb..ccd03793c9 100644
--- a/src/soc/amd/common/block/psp/psp_smi.c
+++ b/src/soc/amd/common/block/psp/psp_smi.c
@@ -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
diff --git a/src/soc/amd/common/block/psp/psp_smi_flash.h b/src/soc/amd/common/block/psp/psp_smi_flash.h
index 6f3eb97af0..c9c6a1c9ce 100644
--- a/src/soc/amd/common/block/psp/psp_smi_flash.h
+++ b/src/soc/amd/common/block/psp/psp_smi_flash.h
@@ -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);