diff options
author | Tony Cheng <tony.cheng@amd.com> | 2017-01-14 11:46:53 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:10:19 -0400 |
commit | ac0e562c521228215d597fe3ef0c13f02077f700 (patch) | |
tree | ded2f95383819a404c79df5b74f3ff2c527ff136 /drivers/gpu/drm/amd/display/dc/bios/command_table.c | |
parent | bf72726358adfedcf1c268690521891809332151 (diff) | |
download | linux-ac0e562c521228215d597fe3ef0c13f02077f700.tar.gz linux-ac0e562c521228215d597fe3ef0c13f02077f700.tar.bz2 linux-ac0e562c521228215d597fe3ef0c13f02077f700.zip |
drm/amd/display: remove un-used defines and dead code
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/command_table.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/command_table.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index d0eedb6235fe..88aaf53cb8c4 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -56,7 +56,6 @@ static void init_dac_encoder_control(struct bios_parser *bp); static void init_dac_output_control(struct bios_parser *bp); static void init_blank_crtc(struct bios_parser *bp); static void init_set_crtc_timing(struct bios_parser *bp); -static void init_set_crtc_overscan(struct bios_parser *bp); static void init_select_crtc_source(struct bios_parser *bp); static void init_enable_crtc(struct bios_parser *bp); static void init_enable_crtc_mem_req(struct bios_parser *bp); @@ -77,7 +76,6 @@ void dal_bios_parser_init_cmd_tbl(struct bios_parser *bp) init_dac_output_control(bp); init_blank_crtc(bp); init_set_crtc_timing(bp); - init_set_crtc_overscan(bp); init_select_crtc_source(bp); init_enable_crtc(bp); init_enable_crtc_mem_req(bp); @@ -1934,59 +1932,6 @@ static enum bp_result set_crtc_using_dtd_timing_v3( /******************************************************************************* ******************************************************************************** ** - ** SET CRTC OVERSCAN - ** - ******************************************************************************** - *******************************************************************************/ - -static enum bp_result set_crtc_overscan_v1( - struct bios_parser *bp, - struct bp_hw_crtc_overscan_parameters *bp_params); - -static void init_set_crtc_overscan(struct bios_parser *bp) -{ - switch (BIOS_CMD_TABLE_PARA_REVISION(SetCRTC_OverScan)) { - case 1: - bp->cmd_tbl.set_crtc_overscan = set_crtc_overscan_v1; - break; - default: - bp->cmd_tbl.set_crtc_overscan = NULL; - break; - } -} - -static enum bp_result set_crtc_overscan_v1( - struct bios_parser *bp, - struct bp_hw_crtc_overscan_parameters *bp_params) -{ - enum bp_result result = BP_RESULT_FAILURE; - SET_CRTC_OVERSCAN_PARAMETERS params = {0}; - uint8_t atom_controller_id; - - if (bp->cmd_helper->controller_id_to_atom( - bp_params->controller_id, &atom_controller_id)) - params.ucCRTC = atom_controller_id; - else - return BP_RESULT_BADINPUT; - - params.usOverscanRight = - cpu_to_le16((uint16_t)bp_params->h_overscan_right); - params.usOverscanLeft = - cpu_to_le16((uint16_t)bp_params->h_overscan_left); - params.usOverscanBottom = - cpu_to_le16((uint16_t)bp_params->v_overscan_bottom); - params.usOverscanTop = - cpu_to_le16((uint16_t)bp_params->v_overscan_top); - - if (EXEC_BIOS_CMD_TABLE(SetCRTC_OverScan, params)) - result = BP_RESULT_OK; - - return result; -} - -/******************************************************************************* - ******************************************************************************** - ** ** SELECT CRTC SOURCE ** ******************************************************************************** |