diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-03-29 11:32:33 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-09 12:04:03 -0400 |
commit | fec9181ca4bd70071807c6839cd73e9346a9e023 (patch) | |
tree | 0bba21f8d54b9f20e1bb6becf228b15144b3a39b /drivers | |
parent | e93ea06aa0436f60a18962a195b95d8f36e9b7d6 (diff) |
drm/i915: add port clock selection support for HSW
Multiple clocks can drive different outputs.
v2: use the port enums to access individual ports
v1 Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 58046ffcf031..0cf2bf8da996 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -4142,4 +4142,27 @@ | |||
4142 | #define SPLL_PLL_FREQ_810MHz (0<<26) | 4142 | #define SPLL_PLL_FREQ_810MHz (0<<26) |
4143 | #define SPLL_PLL_FREQ_1350MHz (1<<26) | 4143 | #define SPLL_PLL_FREQ_1350MHz (1<<26) |
4144 | 4144 | ||
4145 | /* Port clock selection */ | ||
4146 | #define PORT_CLK_SEL_A 0x46100 | ||
4147 | #define PORT_CLK_SEL_B 0x46104 | ||
4148 | #define PORT_CLK_SEL(port) _PORT(port, \ | ||
4149 | PORT_CLK_SEL_A, \ | ||
4150 | PORT_CLK_SEL_B) | ||
4151 | #define PORT_CLK_SEL_LCPLL_2700 (0<<29) | ||
4152 | #define PORT_CLK_SEL_LCPLL_1350 (1<<29) | ||
4153 | #define PORT_CLK_SEL_LCPLL_810 (2<<29) | ||
4154 | #define PORT_CLK_SEL_SPLL (3<<29) | ||
4155 | #define PORT_CLK_SEL_WRPLL1 (4<<29) | ||
4156 | #define PORT_CLK_SEL_WRPLL2 (5<<29) | ||
4157 | |||
4158 | /* Pipe clock selection */ | ||
4159 | #define PIPE_CLK_SEL_A 0x46140 | ||
4160 | #define PIPE_CLK_SEL_B 0x46144 | ||
4161 | #define PIPE_CLK_SEL(pipe) _PIPE(pipe, \ | ||
4162 | PIPE_CLK_SEL_A, \ | ||
4163 | PIPE_CLK_SEL_B) | ||
4164 | /* For each pipe, we need to select the corresponding port clock */ | ||
4165 | #define PIPE_CLK_SEL_DISABLED (0x0<<29) | ||
4166 | #define PIPE_CLK_SEL_PORT(x) ((x+1)<<29) | ||
4167 | |||
4145 | #endif /* _I915_REG_H_ */ | 4168 | #endif /* _I915_REG_H_ */ |