1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef SMU10_DRIVER_IF_H
25#define SMU10_DRIVER_IF_H
26
27#define SMU10_DRIVER_IF_VERSION 0x6
28
29#define NUM_DSPCLK_LEVELS 8
30
31typedef struct {
32 int32_t value;
33 uint32_t numFractionalBits;
34} FloatInIntFormat_t;
35
36typedef enum {
37 DSPCLK_DCEFCLK = 0,
38 DSPCLK_DISPCLK,
39 DSPCLK_PIXCLK,
40 DSPCLK_PHYCLK,
41 DSPCLK_COUNT,
42} DSPCLK_e;
43
44typedef struct {
45 uint16_t Freq;
46 uint16_t Vid;
47} DisplayClockTable_t;
48
49
50typedef struct {
51 uint16_t MinClock;
52 uint16_t MaxClock;
53 uint16_t MinMclk;
54 uint16_t MaxMclk;
55
56 uint8_t WmSetting;
57 uint8_t Padding[3];
58} WatermarkRowGeneric_t;
59
60#define NUM_WM_RANGES 4
61
62typedef enum {
63 WM_SOCCLK = 0,
64 WM_DCFCLK,
65 WM_COUNT,
66} WM_CLOCK_e;
67
68typedef struct {
69 WatermarkRowGeneric_t WatermarkRow[WM_COUNT][NUM_WM_RANGES];
70 uint32_t MmHubPadding[7];
71} Watermarks_t;
72
73typedef enum {
74 CUSTOM_DPM_SETTING_GFXCLK,
75 CUSTOM_DPM_SETTING_CCLK,
76 CUSTOM_DPM_SETTING_FCLK_CCX,
77 CUSTOM_DPM_SETTING_FCLK_GFX,
78 CUSTOM_DPM_SETTING_FCLK_STALLS,
79 CUSTOM_DPM_SETTING_LCLK,
80 CUSTOM_DPM_SETTING_COUNT,
81} CUSTOM_DPM_SETTING_e;
82
83typedef struct {
84 uint8_t ActiveHystLimit;
85 uint8_t IdleHystLimit;
86 uint8_t FPS;
87 uint8_t MinActiveFreqType;
88 FloatInIntFormat_t MinActiveFreq;
89 FloatInIntFormat_t PD_Data_limit;
90 FloatInIntFormat_t PD_Data_time_constant;
91 FloatInIntFormat_t PD_Data_error_coeff;
92 FloatInIntFormat_t PD_Data_error_rate_coeff;
93} DpmActivityMonitorCoeffExt_t;
94
95typedef struct {
96 DpmActivityMonitorCoeffExt_t DpmActivityMonitorCoeff[CUSTOM_DPM_SETTING_COUNT];
97} CustomDpmSettings_t;
98
99#define NUM_SOCCLK_DPM_LEVELS 8
100#define NUM_DCEFCLK_DPM_LEVELS 4
101#define NUM_FCLK_DPM_LEVELS 4
102#define NUM_MEMCLK_DPM_LEVELS 4
103
104typedef struct {
105 uint32_t Freq;
106 uint32_t Vol;
107} DpmClock_t;
108
109typedef struct {
110 DpmClock_t DcefClocks[NUM_DCEFCLK_DPM_LEVELS];
111 DpmClock_t SocClocks[NUM_SOCCLK_DPM_LEVELS];
112 DpmClock_t FClocks[NUM_FCLK_DPM_LEVELS];
113 DpmClock_t MemClocks[NUM_MEMCLK_DPM_LEVELS];
114} DpmClocks_t;
115
116#endif
117