aboutsummaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-03-30 10:15:15 +0100
committerThierry Reding <treding@nvidia.com>2016-04-29 17:17:47 +0200
commita38045121bf42110e6043d07315a7626b021a0db (patch)
treeb3dc265025755ac39e69289443c2529d99e4fd15 /include/soc
parentdt-bindings: Add power domain info for NVIDIA PMC (diff)
downloadlinux-a38045121bf42110e6043d07315a7626b021a0db.tar.gz
linux-a38045121bf42110e6043d07315a7626b021a0db.zip
soc/tegra: pmc: Add generic PM domain support
Adds generic PM domain support to the PMC driver where the PM domains are populated from device-tree and the PM domain consumer devices are bound to their relevant PM domains via device-tree as well. Update the tegra_powergate_sequence_power_up() API so that internally it calls the same tegra_powergate_xxx functions that are used by the Tegra generic PM domain code for consistency. To ensure that the Tegra power domains (a.k.a. powergates) cannot be controlled via both the legacy tegra_powergate_xxx functions as well as the generic PM domain framework, add a bit map for available powergates that can be controlled via the legacy powergate functions. Move the majority of the tegra_powergate_remove_clamping() function to a sub-function, so that this can be used by both the legacy and generic power domain code. This is based upon work by Thierry Reding <treding@nvidia.com> and Vince Hsu <vinceh@nvidia.com>. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/tegra/pmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/tegra/pmc.h b/include/soc/tegra/pmc.h
index 07e332dd44fb..e9e53473a63e 100644
--- a/include/soc/tegra/pmc.h
+++ b/include/soc/tegra/pmc.h
@@ -72,6 +72,7 @@ int tegra_pmc_cpu_remove_clamping(unsigned int cpuid);
#define TEGRA_POWERGATE_AUD 27
#define TEGRA_POWERGATE_DFD 28
#define TEGRA_POWERGATE_VE2 29
+#define TEGRA_POWERGATE_MAX TEGRA_POWERGATE_VE2
#define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D
o Ricardo Leitner1-6/+2 2016-10-09printk: make reading the kernel log flush pending linesLinus Torvalds1-0/+11 2016-10-09printk: re-organize log_output() to be more legibleLinus Torvalds1-35/+27 2016-10-09printk: split out core logging code into helper functionLinus Torvalds1-39/+39 2016-10-09printk: reinstate KERN_CONT for printing continuation linesLinus Torvalds5-23/+19 2016-10-09be2net: Enable VF link state setting for BE3Suresh Reddy1-1/+1 2016-10-09be2net: Fix TX stats for TSO packetsSriharsha Basavapatna1-2/+12 2016-10-09be2net: Update Copyright string in be_hw.hSriharsha Basavapatna1-1/+1 2016-10-09be2net: NCSI FW section should be properly updated with ethtool for BE3Sriharsha Basavapatna1-1/+23 2016-10-09be2net: Provide an alternate way to read pf_num for BEx chipsSriharsha Basavapatna2-1/+10 2016-10-08x86/pkeys: Make protection keys an "eager" featureDave Hansen1-3/+4 2016-10-08x86/apic: Prevent pointless warning messagesThomas Gleixner1-3/+5 2016-10-08x86/acpi: Prevent LAPIC id 0xff from being accountedThomas Gleixner1-0/+4 2016-10-08wan/fsl_ucc_hdlc: Fix size used in dma_free_coherent()Christophe Jaillet1-4/+4 2016-10-07net: macb: NULL out phydev after removing mdio busNathan Sullivan1-0/+1 2016-10-07xen-netback: make sure that hashes are not send to unaware frontendsPaul Durrant1-11/+9 2016-10-07Fixing a bug in team driver due to incorrect 'unsigned int' to 'int' conversionAlex Sidorenko1-1/+1 2016-10-07MAINTAINERS: add myself as a maintainer of xen-netbackPaul Durrant1-0/+1 2016-10-07ipv6 addrconf: disallow rtr_solicits < -1Maciej Żenczykowski1-1/+3 2016-10-07vfs: Remove {get,set,remove}xattr inode operationsAndreas Gruenbacher55-319/+0 2016-10-07console: don't prefer first registered if DT specifies stdout-pathPaul Burton3-1/+20 2016-10-07cred: simpler, 1D supplementary groupsAlexey Dobriyan14-85/+46 2016-10-07CREDITS: update Pavel's information, add GPG key, remove snail mail addressPavel Machek1-4/+4 2016-10-07mailmap: add Johan HovoldJohan Hovold1-0/+2