blob: 905231978a7434e36553d66063541bbb18e6a34a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
From e3643ef5d0c50c940b4fd7b750f2ae1bb0e57286 Mon Sep 17 00:00:00 2001
From: Yongqiang Sun <yongqiang.sun@amd.com>
Date: Tue, 8 Dec 2015 14:22:41 -0500
Subject: [PATCH 1184/1565] drm/amd/dal: Prepare bring up off next ASIC
generation
Change-Id: Ib324ad107786b2832d0c3b9b1d6977ad7bf1dafd
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland<harry.wentland@amd.com>
---
drivers/gpu/drm/amd/dal/dc/bios/command_table.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/dal/dc/bios/command_table.c b/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
index c686cc8..87fc14b 100644
--- a/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
+++ b/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
@@ -2772,7 +2772,7 @@ static enum bp_result enable_disp_power_gating_v2_1(
********************************************************************************
*******************************************************************************/
#ifdef LATEST_ATOM_BIOS_SUPPORT
-enum bp_result set_dce_clock_v2_1(
+static enum bp_result set_dce_clock_v2_1(
struct bios_parser *bp,
struct bp_set_dce_clock_parameters *bp_params);
#endif
@@ -2801,11 +2801,10 @@ static enum bp_result set_dce_clock_v2_1(
SET_DCE_CLOCK_PS_ALLOCATION_V2_1 params;
uint32_t atom_pll_id;
uint32_t atom_clock_type;
+ const struct command_table_helper *cmd = bp->cmd_helper;
dc_service_memset(¶ms, 0, sizeof(params));
- const struct command_table_helper *cmd = bp->cmd_helper;
-
if (!cmd->clock_source_id_to_atom(bp_params->pll_id, &atom_pll_id) ||
!cmd->dc_clock_type_to_atom(bp_params->clock_type, &atom_clock_type))
return BP_RESULT_BADINPUT;
--
1.9.1
|