diff options
author | Anthony Koo <Anthony.Koo@amd.com> | 2020-06-05 17:09:11 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-01 01:59:25 -0400 |
commit | 492dd8a8e147e0ba61b30083b530ca1750c44108 (patch) | |
tree | 40b53931a21a0ae594e1318f47f33db333d482e4 | |
parent | 4074bc3fca9ff4f1b78b8dc71f1f19bc27d1536e (diff) |
drm/amd/display: [FW Promotion] Release 1.0.18
[Header Changes]
- Update scratch information for boot status
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h index 2b399b836aa6..96e1379c4cf8 100644 --- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h @@ -36,10 +36,10 @@ /* Firmware versioning. */ #ifdef DMUB_EXPOSE_VERSION -#define DMUB_FW_VERSION_GIT_HASH 0x6d5deb31c +#define DMUB_FW_VERSION_GIT_HASH 0x67e8928df #define DMUB_FW_VERSION_MAJOR 1 #define DMUB_FW_VERSION_MINOR 0 -#define DMUB_FW_VERSION_REVISION 17 +#define DMUB_FW_VERSION_REVISION 18 #define DMUB_FW_VERSION_UCODE ((DMUB_FW_VERSION_MAJOR << 24) | (DMUB_FW_VERSION_MINOR << 16) | DMUB_FW_VERSION_REVISION) #endif @@ -146,10 +146,8 @@ union dmub_fw_meta { * DMCUB scratch registers can be used to determine firmware status. * Current scratch register usage is as follows: * - * SCRATCH0: Legacy status register - * SCRATCH1: Firmware version - * SCRATCH2: Firmware status bits defined by dmub_fw_status_bit - * SCRATCH3: Reserved firmware status bits + * SCRATCH0: FW Boot Status register + * SCRATCH15: FW Boot Options register */ /** @@ -160,6 +158,41 @@ enum dmub_fw_status_bit { DMUB_FW_STATUS_BIT_COMMAND_TABLE_READY = (1 << 1), }; + +/* Register bit definition for SCRATCH0 */ +union dmub_fw_boot_status { + struct { + uint32_t dal_fw : 1; + uint32_t mailbox_rdy : 1; + uint32_t optimized_init_done : 1; + uint32_t reserved : 29; + } bits; + uint32_t all; +}; + +enum dmub_fw_boot_status_bit { + DMUB_FW_BOOT_STATUS_BIT_DAL_FIRMWARE = (1 << 0), + DMUB_FW_BOOT_STATUS_BIT_MAILBOX_READY = (1 << 1), + DMUB_FW_BOOT_STATUS_BIT_OPTIMIZED_INIT_DONE = (1 << 2), +}; + +/* Register bit definition for SCRATCH15 */ +union dmub_fw_boot_options { + struct { + uint32_t pemu_env : 1; + uint32_t fpga_env : 1; + uint32_t optimized_init : 1; + uint32_t reserved : 29; + } bits; + uint32_t all; +}; + +enum dmub_fw_boot_options_bit { + DMUB_FW_BOOT_OPTION_BIT_PEMU_ENV = (1 << 0), + DMUB_FW_BOOT_OPTION_BIT_FPGA_ENV = (1 << 1), + DMUB_FW_BOOT_OPTION_BIT_OPTIMIZED_INIT_DONE = (1 << 2), +}; + //============================================================================== //</DMUB_STATUS>================================================================ //============================================================================== |