Commit 5aa35c1a authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Remove unused addr var in TG

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarSun peng Li <Sunpeng.Li@amd.com>
Reviewed-by: default avatarRoman Li <Roman.Li@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d9e88878
...@@ -386,34 +386,27 @@ bool dce120_timing_generator_did_triggered_reset_occur( ...@@ -386,34 +386,27 @@ bool dce120_timing_generator_did_triggered_reset_occur(
/* Move to enable accelerated mode */ /* Move to enable accelerated mode */
void dce120_timing_generator_disable_vga(struct timing_generator *tg) void dce120_timing_generator_disable_vga(struct timing_generator *tg)
{ {
uint32_t addr = 0;
uint32_t offset = 0; uint32_t offset = 0;
uint32_t value = 0; uint32_t value = 0;
struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg);
switch (tg110->controller_id) { switch (tg110->controller_id) {
case CONTROLLER_ID_D0: case CONTROLLER_ID_D0:
addr = mmD1VGA_CONTROL;
offset = 0; offset = 0;
break; break;
case CONTROLLER_ID_D1: case CONTROLLER_ID_D1:
addr = mmD2VGA_CONTROL;
offset = mmD2VGA_CONTROL - mmD1VGA_CONTROL; offset = mmD2VGA_CONTROL - mmD1VGA_CONTROL;
break; break;
case CONTROLLER_ID_D2: case CONTROLLER_ID_D2:
addr = mmD3VGA_CONTROL;
offset = mmD3VGA_CONTROL - mmD1VGA_CONTROL; offset = mmD3VGA_CONTROL - mmD1VGA_CONTROL;
break; break;
case CONTROLLER_ID_D3: case CONTROLLER_ID_D3:
addr = mmD4VGA_CONTROL;
offset = mmD4VGA_CONTROL - mmD1VGA_CONTROL; offset = mmD4VGA_CONTROL - mmD1VGA_CONTROL;
break; break;
case CONTROLLER_ID_D4: case CONTROLLER_ID_D4:
addr = mmD1VGA_CONTROL;
offset = mmD5VGA_CONTROL - mmD1VGA_CONTROL; offset = mmD5VGA_CONTROL - mmD1VGA_CONTROL;
break; break;
case CONTROLLER_ID_D5: case CONTROLLER_ID_D5:
addr = mmD6VGA_CONTROL;
offset = mmD6VGA_CONTROL - mmD1VGA_CONTROL; offset = mmD6VGA_CONTROL - mmD1VGA_CONTROL;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment