OSDN Git Service

drm/i915: Properly define the DP redriver VBT bits
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Jul 2022 20:20:35 +0000 (23:20 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 5 Sep 2022 12:15:09 +0000 (15:15 +0300)
Split the DP redriver bytes into bitfields.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220715202044.11153-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_vbt_defs.h

index 951a8ca..5b05cb0 100644 (file)
@@ -393,8 +393,14 @@ struct child_device_config {
                u8  device_id[10]; /* ascii string */
                struct {
                        u8 i2c_speed;
-                       u8 dp_onboard_redriver;                 /* 158+ */
-                       u8 dp_ondock_redriver;                  /* 158+ */
+                       u8 dp_onboard_redriver_preemph:3;       /* 158+ */
+                       u8 dp_onboard_redriver_vswing:3;        /* 158+ */
+                       u8 dp_onboard_redriver_present:1;       /* 158+ */
+                       u8 reserved0:1;
+                       u8 dp_ondock_redriver_preemph:3;        /* 158+ */
+                       u8 dp_ondock_redriver_vswing:3;         /* 158+ */
+                       u8 dp_ondock_redriver_present:1;        /* 158+ */
+                       u8 reserved1:1;
                        u8 hdmi_level_shifter_value:5;          /* 158+ */
                        u8 hdmi_max_data_rate:3;                /* 204+ */
                        u16 dtd_buf_ptr;                        /* 161+ */
@@ -402,11 +408,11 @@ struct child_device_config {
                        u8 compression_enable:1;                /* 198+ */
                        u8 compression_method_cps:1;            /* 198+ */
                        u8 ganged_edp:1;                        /* 202+ */
-                       u8 reserved0:4;
+                       u8 reserved2:4;
                        u8 compression_structure_index:4;       /* 198+ */
-                       u8 reserved1:4;
+                       u8 reserved3:4;
                        u8 slave_port;                          /* 202+ */
-                       u8 reserved2;
+                       u8 reserved4;
                } __packed;
        } __packed;