aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_runtime_pm.c
diff options
context:
space:
mode:
authorSatheeshakrishna M <satheeshakrishna.m@intel.com>2015-01-16 10:57:51 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-27 03:50:58 -0500
commit1407121ae29881ded2f68157643f1164e4c03d3e (patch)
tree12cc1c7e76b3a369df2b939ae8c1da66bbed8391 /drivers/gpu/drm/i915/intel_runtime_pm.c
parentf65367b5662a995fcd93ff2a286530c773328724 (diff)
drm/i915/skl: Adding power domains for AUX controllers
Adding new power doamins for AUX controllers v2: Added new power domains in power_domain_str per Imre's comment v3: Added AUX power domains to older platforms v4: Rebase on top of POWER_DOMAIN_PLLS. v5: Modified to address review comments from Imre Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Satheeshakrishna M <satheeshakrishna.m@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> (v3) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_runtime_pm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 8bf7bb4a12bc..49695d7d51e3 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -703,6 +703,10 @@ void intel_display_power_put(struct drm_i915_private *dev_priv,
703 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \ 703 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \
704 BIT(POWER_DOMAIN_PORT_CRT) | \ 704 BIT(POWER_DOMAIN_PORT_CRT) | \
705 BIT(POWER_DOMAIN_PLLS) | \ 705 BIT(POWER_DOMAIN_PLLS) | \
706 BIT(POWER_DOMAIN_AUX_A) | \
707 BIT(POWER_DOMAIN_AUX_B) | \
708 BIT(POWER_DOMAIN_AUX_C) | \
709 BIT(POWER_DOMAIN_AUX_D) | \
706 BIT(POWER_DOMAIN_INIT)) 710 BIT(POWER_DOMAIN_INIT))
707#define HSW_DISPLAY_POWER_DOMAINS ( \ 711#define HSW_DISPLAY_POWER_DOMAINS ( \
708 (POWER_DOMAIN_MASK & ~HSW_ALWAYS_ON_POWER_DOMAINS) | \ 712 (POWER_DOMAIN_MASK & ~HSW_ALWAYS_ON_POWER_DOMAINS) | \
@@ -724,24 +728,30 @@ void intel_display_power_put(struct drm_i915_private *dev_priv,
724 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \ 728 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \
725 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \ 729 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \
726 BIT(POWER_DOMAIN_PORT_CRT) | \ 730 BIT(POWER_DOMAIN_PORT_CRT) | \
731 BIT(POWER_DOMAIN_AUX_B) | \
732 BIT(POWER_DOMAIN_AUX_C) | \
727 BIT(POWER_DOMAIN_INIT)) 733 BIT(POWER_DOMAIN_INIT))
728 734
729#define VLV_DPIO_TX_B_LANES_01_POWER_DOMAINS ( \ 735#define VLV_DPIO_TX_B_LANES_01_POWER_DOMAINS ( \
730 BIT(POWER_DOMAIN_PORT_DDI_B_2_LANES) | \ 736 BIT(POWER_DOMAIN_PORT_DDI_B_2_LANES) | \
731 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \ 737 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \
738 BIT(POWER_DOMAIN_AUX_B) | \
732 BIT(POWER_DOMAIN_INIT)) 739 BIT(POWER_DOMAIN_INIT))
733 740
734#define VLV_DPIO_TX_B_LANES_23_POWER_DOMAINS ( \ 741#define VLV_DPIO_TX_B_LANES_23_POWER_DOMAINS ( \
735 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \ 742 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \
743 BIT(POWER_DOMAIN_AUX_B) | \
736 BIT(POWER_DOMAIN_INIT)) 744 BIT(POWER_DOMAIN_INIT))
737 745
738#define VLV_DPIO_TX_C_LANES_01_POWER_DOMAINS ( \ 746#define VLV_DPIO_TX_C_LANES_01_POWER_DOMAINS ( \
739 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \ 747 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \
740 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \ 748 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \
749 BIT(POWER_DOMAIN_AUX_C) | \
741 BIT(POWER_DOMAIN_INIT)) 750 BIT(POWER_DOMAIN_INIT))
742 751
743#define VLV_DPIO_TX_C_LANES_23_POWER_DOMAINS ( \ 752#define VLV_DPIO_TX_C_LANES_23_POWER_DOMAINS ( \
744 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \ 753 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \
754 BIT(POWER_DOMAIN_AUX_C) | \
745 BIT(POWER_DOMAIN_INIT)) 755 BIT(POWER_DOMAIN_INIT))
746 756
747#define CHV_PIPE_A_POWER_DOMAINS ( \ 757#define CHV_PIPE_A_POWER_DOMAINS ( \
@@ -761,20 +771,25 @@ void intel_display_power_put(struct drm_i915_private *dev_priv,
761 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \ 771 BIT(POWER_DOMAIN_PORT_DDI_B_4_LANES) | \
762 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \ 772 BIT(POWER_DOMAIN_PORT_DDI_C_2_LANES) | \
763 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \ 773 BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) | \
774 BIT(POWER_DOMAIN_AUX_B) | \
775 BIT(POWER_DOMAIN_AUX_C) | \
764 BIT(POWER_DOMAIN_INIT)) 776 BIT(POWER_DOMAIN_INIT))
765 777
766#define CHV_DPIO_CMN_D_POWER_DOMAINS ( \ 778#define CHV_DPIO_CMN_D_POWER_DOMAINS ( \
767 BIT(POWER_DOMAIN_PORT_DDI_D_2_LANES) | \ 779 BIT(POWER_DOMAIN_PORT_DDI_D_2_LANES) | \
768 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \ 780 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \
781 BIT(POWER_DOMAIN_AUX_D) | \
769 BIT(POWER_DOMAIN_INIT)) 782 BIT(POWER_DOMAIN_INIT))
770 783
771#define CHV_DPIO_TX_D_LANES_01_POWER_DOMAINS ( \ 784#define CHV_DPIO_TX_D_LANES_01_POWER_DOMAINS ( \
772 BIT(POWER_DOMAIN_PORT_DDI_D_2_LANES) | \ 785 BIT(POWER_DOMAIN_PORT_DDI_D_2_LANES) | \
773 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \ 786 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \
787 BIT(POWER_DOMAIN_AUX_D) | \
774 BIT(POWER_DOMAIN_INIT)) 788 BIT(POWER_DOMAIN_INIT))
775 789
776#define CHV_DPIO_TX_D_LANES_23_POWER_DOMAINS ( \ 790#define CHV_DPIO_TX_D_LANES_23_POWER_DOMAINS ( \
777 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \ 791 BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) | \
792 BIT(POWER_DOMAIN_AUX_D) | \
778 BIT(POWER_DOMAIN_INIT)) 793 BIT(POWER_DOMAIN_INIT))
779 794
780static const struct i915_power_well_ops i9xx_always_on_power_well_ops = { 795static const struct i915_power_well_ops i9xx_always_on_power_well_ops = {