From: Taimur Hassan <[email protected]>

Updated DMUB interface
- Add DMUB_CMD__DC_BLS_DCN_INIT command to run the fixed DCN
  hardware init sequence

Acked-by: Tom Chung <[email protected]>
Signed-off-by: Taimur Hassan <[email protected]>
Signed-off-by: Ray Wu <[email protected]>
---
 .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h   | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

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 5dbedf09baa9..1df67376cca8 100644
--- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
+++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
@@ -1192,6 +1192,10 @@ enum dmub_dc_bls_command_type {
         * Placeholder for block-level initialization of the DCHVM
         */
        DMUB_CMD__DC_BLS_DCHVM_INIT = 0,
+       /**
+        * Runs the fixed DCN hardware init sequence.
+        */
+       DMUB_CMD__DC_BLS_DCN_INIT = 1,
 };
 
 /**
@@ -7694,6 +7698,17 @@ struct dmub_rb_cmd_boot_time_crc_init {
        struct dmub_cmd_boot_time_crc_init_data data;
 };
 
+/**
+ * Definition of a DMUB_CMD__DC_BLS_DCN_INIT command.
+ *
+ * Runs a fixed DCN hardware init sequence after the pre-OS to post-OS
+ * transition. Carries no payload; anything driver-configurable is
+ * programmed by the driver after this command completes.
+ */
+struct dmub_rb_cmd_dc_bls_dcn_init {
+       struct dmub_cmd_header header; /**< Command header */
+};
+
 /**
  * union dmub_rb_cmd - DMUB inbox command.
  */
@@ -8098,6 +8113,11 @@ union dmub_rb_cmd {
         */
        struct dmub_rb_cmd_boot_time_crc_init boot_time_crc_init;
 
+       /**
+        * Definition of a DMUB_CMD__DC_BLS_DCN_INIT command.
+        */
+       struct dmub_rb_cmd_dc_bls_dcn_init dc_bls_dcn_init;
+
        /**
         * Definition of a DMUB_CMD__PANEL_POLARITY_ENABLE command.
         */
-- 
2.43.0

Reply via email to