mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
ARM: tegra: Special-case the 3D clamps on Tegra124
A separate register is used to remove the clamps for the GPU on Tegra124. In order to be able to use the same API, special-case this particular partition. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
9a71657966
commit
c537376cbb
@ -41,6 +41,8 @@
|
|||||||
|
|
||||||
#define PWRGATE_STATUS 0x38
|
#define PWRGATE_STATUS 0x38
|
||||||
|
|
||||||
|
#define GPU_RG_CNTRL 0x2d4
|
||||||
|
|
||||||
static int tegra_num_powerdomains;
|
static int tegra_num_powerdomains;
|
||||||
static int tegra_num_cpu_domains;
|
static int tegra_num_cpu_domains;
|
||||||
static const u8 *tegra_cpu_domains;
|
static const u8 *tegra_cpu_domains;
|
||||||
@ -136,6 +138,17 @@ int tegra_powergate_remove_clamping(int id)
|
|||||||
if (id < 0 || id >= tegra_num_powerdomains)
|
if (id < 0 || id >= tegra_num_powerdomains)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The Tegra124 GPU has a separate register (with different semantics)
|
||||||
|
* to remove clamps.
|
||||||
|
*/
|
||||||
|
if (tegra_chip_id == TEGRA124) {
|
||||||
|
if (id == TEGRA_POWERGATE_3D) {
|
||||||
|
pmc_write(0, GPU_RG_CNTRL);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tegra 2 has a bug where PCIE and VDE clamping masks are
|
* Tegra 2 has a bug where PCIE and VDE clamping masks are
|
||||||
* swapped relatively to the partition ids
|
* swapped relatively to the partition ids
|
||||||
|
Loading…
Reference in New Issue
Block a user