linux/drivers/soc/tegra
Jon Hunter bc9af23d31 soc/tegra: pmc: Ensure GPU partition can be toggled on/off by PMC
For Tegra124 and Tegra210, the GPU partition cannot be toggled on and
off via the APBDEV_PMC_PWRGATE_TOGGLE_0 register. For these devices, the
partition is simply powered up and down via an external regulator.
For these devices, there is a separate register for controlling the
signal clamping of the partition and this is described in the PMC SoC
data by the "has_gpu_clamp" variable. Use this variable to determine if
the GPU partition can be controlled via the APBDEV_PMC_PWRGATE_TOGGLE_0
register and ensure that no one can incorrectly try to toggle the GPU
partition via the APBDEV_PMC_PWRGATE_TOGGLE_0 register.

Furthermore, we cannot use the APBDEV_PMC_PWRGATE_STATUS_0 register to
determine if the GPU partition is powered for Tegra124 and Tegra210.
However, if the GPU partition is powered, then the signal clamp for the
GPU partition should be removed and so use bit 0 of the
APBDEV_PMC_GPU_RG_CNTRL_0 register to determine if the clamp has been
removed (bit[0] = 0) and the GPU partition is powered.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-04-05 15:22:51 +02:00
..
fuse soc/tegra: fuse: Add spare bit offset for Tegra210 2015-07-16 10:38:31 +02:00
common.c soc/tegra: Add Tegra210 support 2015-07-16 09:47:59 +02:00
Kconfig ARM: tegra: select USB_ULPI from EHCI rather than platform 2015-11-24 16:47:26 +01:00
Makefile soc: tegra: Remove redundant $(CONFIG_ARCH_TEGRA) in Makefile 2015-08-13 16:17:40 +02:00
pmc.c soc/tegra: pmc: Ensure GPU partition can be toggled on/off by PMC 2016-04-05 15:22:51 +02:00