Commit f893d74f authored by John Clements's avatar John Clements Committed by Alex Deucher

drm/amdgpu: updated ta ucode header

added definition for ta_firmware_header_v2_0
Reviewed-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarJohn Clements <john.clements@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 90937420
...@@ -124,6 +124,29 @@ struct ta_firmware_header_v1_0 { ...@@ -124,6 +124,29 @@ struct ta_firmware_header_v1_0 {
uint32_t ta_dtm_size_bytes; uint32_t ta_dtm_size_bytes;
}; };
enum ta_fw_type {
TA_FW_TYPE_UNKOWN,
TA_FW_TYPE_PSP_ASD,
TA_FW_TYPE_PSP_XGMI,
TA_FW_TYPE_PSP_RAS,
TA_FW_TYPE_PSP_HDCP,
TA_FW_TYPE_PSP_DTM,
};
struct ta_fw_bin_desc {
uint32_t fw_type;
uint32_t fw_version;
uint32_t offset_bytes;
uint32_t size_bytes;
};
/* version_major=2, version_minor=0 */
struct ta_firmware_header_v2_0 {
struct common_firmware_header header;
uint32_t ta_fw_bin_count;
struct ta_fw_bin_desc ta_fw_bin[];
};
/* version_major=1, version_minor=0 */ /* version_major=1, version_minor=0 */
struct gfx_firmware_header_v1_0 { struct gfx_firmware_header_v1_0 {
struct common_firmware_header header; struct common_firmware_header header;
...@@ -276,6 +299,7 @@ union amdgpu_firmware_header { ...@@ -276,6 +299,7 @@ union amdgpu_firmware_header {
struct psp_firmware_header_v1_1 psp_v1_1; struct psp_firmware_header_v1_1 psp_v1_1;
struct psp_firmware_header_v1_3 psp_v1_3; struct psp_firmware_header_v1_3 psp_v1_3;
struct ta_firmware_header_v1_0 ta; struct ta_firmware_header_v1_0 ta;
struct ta_firmware_header_v2_0 ta_v2_0;
struct gfx_firmware_header_v1_0 gfx; struct gfx_firmware_header_v1_0 gfx;
struct rlc_firmware_header_v1_0 rlc; struct rlc_firmware_header_v1_0 rlc;
struct rlc_firmware_header_v2_0 rlc_v2_0; struct rlc_firmware_header_v2_0 rlc_v2_0;
...@@ -288,6 +312,8 @@ union amdgpu_firmware_header { ...@@ -288,6 +312,8 @@ union amdgpu_firmware_header {
uint8_t raw[0x100]; uint8_t raw[0x100];
}; };
#define UCODE_MAX_TA_PACKAGING ((sizeof(union amdgpu_firmware_header) - sizeof(struct common_firmware_header) - 4) / sizeof(struct ta_fw_bin_desc))
/* /*
* fw loading support * fw loading support
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment