File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 34
34
#include "vlv_iosf_sb_reg.h"
35
35
#include "vlv_sideband.h"
36
36
37
+ /*
38
+ * PG0 is HW controlled, so doesn't have a corresponding power well control knob
39
+ * SKL_DISP_PW1_IDX..SKL_DISP_PW2_IDX -> PG1..PG2
40
+ */
41
+ #define SKL_PW_CTL_IDX_TO_PG (pw_idx ) \
42
+ ((pw_idx) - SKL_PW_CTL_IDX_PW_1 + SKL_PG1)
43
+ /*
44
+ * PG0 is HW controlled, so doesn't have a corresponding power well control knob
45
+ * ICL_DISP_PW1_IDX..ICL_DISP_PW4_IDX -> PG1..PG4
46
+ */
47
+ #define ICL_PW_CTL_IDX_TO_PG (pw_idx ) \
48
+ ((pw_idx) - ICL_PW_CTL_IDX_PW_1 + SKL_PG1)
49
+
37
50
struct i915_power_well_regs {
38
51
i915_reg_t bios ;
39
52
i915_reg_t driver ;
Original file line number Diff line number Diff line change @@ -2206,18 +2206,6 @@ enum skl_power_gate {
2206
2206
2207
2207
#define SKL_FUSE_STATUS _MMIO(0x42000)
2208
2208
#define SKL_FUSE_DOWNLOAD_STATUS (1 << 31)
2209
- /*
2210
- * PG0 is HW controlled, so doesn't have a corresponding power well control knob
2211
- * SKL_DISP_PW1_IDX..SKL_DISP_PW2_IDX -> PG1..PG2
2212
- */
2213
- #define SKL_PW_CTL_IDX_TO_PG (pw_idx ) \
2214
- ((pw_idx) - SKL_PW_CTL_IDX_PW_1 + SKL_PG1)
2215
- /*
2216
- * PG0 is HW controlled, so doesn't have a corresponding power well control knob
2217
- * ICL_DISP_PW1_IDX..ICL_DISP_PW4_IDX -> PG1..PG4
2218
- */
2219
- #define ICL_PW_CTL_IDX_TO_PG (pw_idx ) \
2220
- ((pw_idx) - ICL_PW_CTL_IDX_PW_1 + SKL_PG1)
2221
2209
#define SKL_FUSE_PG_DIST_STATUS (pg ) (1 << (27 - (pg)))
2222
2210
2223
2211
/* Per-pipe DDI Function Control */
You can’t perform that action at this time.
0 commit comments