drm/scdc: add frl config/status registers to scdc header.
Subsystems (3)
Dave Airlie
maintainerPATCH 1/2 drm/scdc: add frl config/status registers to scdc header.
From: Dave Airlie <[email protected]>
These are sourced from publically available presentations like
https://www.ti.com/content/dam/videos/external-videos/en-us/11/3816841626001/overview-ddc-bus-hdmi-systems.mp4/subassets/overview-ddc-bus-hdmi-systems-presentation.pdf
Document in the kernel in case they are of use to someone.
--- include/drm/display/drm_scdc.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
include/drm/display/drm_scdc.h +18 -0
@@ -29,6 +29,8 @@#define SCDC_SOURCE_VERSION 0x02#define SCDC_UPDATE_0 0x10 +#define SCDC_FLT_UPDATE (1 << 5) +#define SCDC_FRL_START (1 << 4)#define SCDC_READ_REQUEST_TEST (1 << 2)#define SCDC_CED_UPDATE (1 << 1)#define SCDC_STATUS_UPDATE (1 << 0)
@@ -46,7 +48,20 @@#define SCDC_CONFIG_0 0x30#define SCDC_READ_REQUEST_ENABLE (1 << 0) +#define SCDC_CONFIG_FRL 0x31 +#define SCDC_FRL_RATE (x) (((x) & 0x7) << 0) +#define SCDC_FRL_RATE_DISABLE 0 +#define SCDC_FRL_RATE_FIXED_3LANE_3GB 1 +#define SCDC_FRL_RATE_FIXED_3LANE_6GB 2 +#define SCDC_FRL_RATE_FIXED_4LANE_6GB 3 +#define SCDC_FRL_RATE_FIXED_4LANE_8GB 4 +#define SCDC_FRL_RATE_FIXED_4LANE_10GB 5 +#define SCDC_FRL_RATE_FIXED_4LANE_12GB 6 +#define SCDC_FRL_FFE_LEVELS (x) (((x) & 0xF) << 4) +#define SCDC_STATUS_FLAGS_0 0x40 +#define SCDC_FLT_READY (1 << 6) +#define SCDC_LANE3_LOCK (1 << 4)#define SCDC_CH2_LOCK (1 << 3)#define SCDC_CH1_LOCK (1 << 2)#define SCDC_CH0_LOCK (1 << 1)
@@ -55,6 +70,9 @@#define SCDC_STATUS_FLAGS_1 0x41 +#define SCDC_LN_LTP_01 0x41 +#define SCDC_LN_LTP_23 0x42 +#define SCDC_ERR_DET_0_L 0x50#define SCDC_ERR_DET_0_H 0x51#define SCDC_ERR_DET_1_L 0x52
Signature · 1 line
2.51.1
Dave Airlie
maintainerPATCH 2/2 amd/dc: add frl bits to the registers
From: Dave Airlie <[email protected]>
document the same bits as added to the main headers.
--- .../gpu/drm/amd/display/dc/dc_hdmi_types.h | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dc_hdmi_types.h +28 -2
@@ -77,11 +77,24 @@ union hdmi_scdc_update_read_data { uint8_t STATUS_UPDATE:1; uint8_t CED_UPDATE:1; uint8_t RR_TEST:1; - uint8_t RESERVED:5; + uint8_t RESERVED0:1; + uint8_t FRL_START:1; + uint8_t FLT_UPDATE:1; + uint8_t RESERVED:2; uint8_t RESERVED2:8; } fields; }; +union hdmi_scdc_config_data { +uint8_t byte[2 ]; +struct { +uint8_t RR_ENABLE:1 ; +uint8_t RESERVED:7 ; +uint8_t FRL_RATE:4 ; +uint8_t FFE_LEVELS:4 ; + } fields; +}; +union hdmi_scdc_status_flags_data {uint8_t byte;struct {
@@ -89,7 +102,20 @@ union hdmi_scdc_status_flags_data { uint8_t CH0_LOCKED:1; uint8_t CH1_LOCKED:1; uint8_t CH2_LOCKED:1; - uint8_t RESERVED:4; + uint8_t LANE3_LOCKED:1; + uint8_t RESERVED:1; + uint8_t FLT_READY:1; + uint8_t RESERVED2:1; + } fields; +}; + +union hdmi_scdc_lane_status_data { +uint8_t byte[2 ]; +struct { +uint8_t ltp_0:4 ; +uint8_t ltp_1:4 ; +uint8_t ltp_2:4 ; +uint8_t ltp_3:4 ; } fields; };
Signature · 1 line
2.51.1
Re: [PATCH 2/2] amd/dc: add frl bits to the registers
Quoted 8 lines · Dave Airlie
From: Dave Airlie <[email protected]>
document the same bits as added to the main headers.
Signed-off-by Dave Airlie <[email protected]>--- .../gpu/drm/amd/display/dc/dc_hdmi_types.h | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-)
Quoted 52 lines
drivers/gpu/drm/amd/display/dc/dc_hdmi_types.h +28
-2@@ -77,11 +77,24 @@ union hdmi_scdc_update_read_data { uint8_t STATUS_UPDATE:1; uint8_t CED_UPDATE:1; uint8_t RR_TEST:1; - uint8_t RESERVED:5; + uint8_t RESERVED0:1; + uint8_t FRL_START:1; + uint8_t FLT_UPDATE:1; + uint8_t RESERVED:2; uint8_t RESERVED2:8; } fields; }; +union hdmi_scdc_config_data { +uint8_t byte[2 ]; +struct { +uint8_t RR_ENABLE:1 ; +uint8_t RESERVED:7 ; +uint8_t FRL_RATE:4 ; +uint8_t FFE_LEVELS:4 ; + } fields; +}; +union hdmi_scdc_status_flags_data {uint8_t byte;struct {@@ -89,7 +102,20 @@ union hdmi_scdc_status_flags_data { uint8_t CH0_LOCKED:1; uint8_t CH1_LOCKED:1; uint8_t CH2_LOCKED:1; - uint8_t RESERVED:4; + uint8_t LANE3_LOCKED:1; + uint8_t RESERVED:1; + uint8_t FLT_READY:1; + uint8_t RESERVED2:1; + } fields; +}; + +union hdmi_scdc_lane_status_data { +uint8_t byte[2 ]; +struct { +uint8_t ltp_0:4 ; +uint8_t ltp_1:4 ; +uint8_t ltp_2:4 ; +uint8_t ltp_3:4 ; } fields; };
Quoted 11 lines · Dave Airlie
From: Dave Airlie <[email protected]>
These are sourced from publically available presentations like
https://www.ti.com/content/dam/videos/external-videos/en-us/11/3816841626001/overview-ddc-bus-hdmi-systems.mp4/subassets/overview-ddc-bus-hdmi-systems-presentation.pdfDocument in the kernel in case they are of use to someone.
Signed-off-by Dave Airlie <[email protected]>--- include/drm/display/drm_scdc.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Quoted 44 lines
include/drm/display/drm_scdc.h +18
-0@@ -29,6 +29,8 @@#define SCDC_SOURCE_VERSION 0x02#define SCDC_UPDATE_0 0x10 +#define SCDC_FLT_UPDATE (1 << 5) +#define SCDC_FRL_START (1 << 4)#define SCDC_READ_REQUEST_TEST (1 << 2)#define SCDC_CED_UPDATE (1 << 1)#define SCDC_STATUS_UPDATE (1 << 0)@@ -46,7 +48,20 @@#define SCDC_CONFIG_0 0x30#define SCDC_READ_REQUEST_ENABLE (1 << 0) +#define SCDC_CONFIG_FRL 0x31 +#define SCDC_FRL_RATE (x) (((x) & 0x7) << 0) +#define SCDC_FRL_RATE_DISABLE 0 +#define SCDC_FRL_RATE_FIXED_3LANE_3GB 1 +#define SCDC_FRL_RATE_FIXED_3LANE_6GB 2 +#define SCDC_FRL_RATE_FIXED_4LANE_6GB 3 +#define SCDC_FRL_RATE_FIXED_4LANE_8GB 4 +#define SCDC_FRL_RATE_FIXED_4LANE_10GB 5 +#define SCDC_FRL_RATE_FIXED_4LANE_12GB 6 +#define SCDC_FRL_FFE_LEVELS (x) (((x) & 0xF) << 4) +#define SCDC_STATUS_FLAGS_0 0x40 +#define SCDC_FLT_READY (1 << 6) +#define SCDC_LANE3_LOCK (1 << 4)#define SCDC_CH2_LOCK (1 << 3)#define SCDC_CH1_LOCK (1 << 2)#define SCDC_CH0_LOCK (1 << 1)@@ -55,6 +70,9 @@#define SCDC_STATUS_FLAGS_1 0x41 +#define SCDC_LN_LTP_01 0x41 +#define SCDC_LN_LTP_23 0x42 +#define SCDC_ERR_DET_0_L 0x50#define SCDC_ERR_DET_0_H 0x51#define SCDC_ERR_DET_1_L 0x52