diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index e428f9e6..90d0bb57 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
17 | #include <linux/nvhost.h> | 17 | #include <linux/nvhost.h> |
18 | #include <linux/debugfs.h> | 18 | #include <linux/debugfs.h> |
19 | #include <linux/tegra-powergate.h> | 19 | #include <soc/tegra/tegra_powergate.h> |
20 | #include <linux/platform_data/tegra_edp.h> | 20 | #include <linux/platform_data/tegra_edp.h> |
21 | #include <linux/dma-buf.h> | 21 | #include <linux/dma-buf.h> |
22 | #include <linux/nvmap.h> | 22 | #include <linux/nvmap.h> |
@@ -207,7 +207,7 @@ static bool gp10b_tegra_is_railgated(struct device *dev) | |||
207 | bool ret = false; | 207 | bool ret = false; |
208 | 208 | ||
209 | if (tegra_bpmp_running()) | 209 | if (tegra_bpmp_running()) |
210 | ret = !tegra_powergate_is_powered(TEGRA_POWERGATE_GPU); | 210 | ret = !tegra_powergate_is_powered(TEGRA186_POWER_DOMAIN_GPU); |
211 | 211 | ||
212 | return ret; | 212 | return ret; |
213 | } | 213 | } |
@@ -224,13 +224,13 @@ static int gp10b_tegra_railgate(struct device *dev) | |||
224 | 0, TEGRA_BWMGR_SET_EMC_FLOOR); | 224 | 0, TEGRA_BWMGR_SET_EMC_FLOOR); |
225 | 225 | ||
226 | if (tegra_bpmp_running() && | 226 | if (tegra_bpmp_running() && |
227 | tegra_powergate_is_powered(TEGRA_POWERGATE_GPU)) { | 227 | tegra_powergate_is_powered(TEGRA186_POWER_DOMAIN_GPU)) { |
228 | int i; | 228 | int i; |
229 | for (i = 0; i < platform->num_clks; i++) { | 229 | for (i = 0; i < platform->num_clks; i++) { |
230 | if (platform->clk[i]) | 230 | if (platform->clk[i]) |
231 | clk_disable_unprepare(platform->clk[i]); | 231 | clk_disable_unprepare(platform->clk[i]); |
232 | } | 232 | } |
233 | tegra_powergate_partition(TEGRA_POWERGATE_GPU); | 233 | tegra_powergate_partition(TEGRA186_POWER_DOMAIN_GPU); |
234 | } | 234 | } |
235 | return 0; | 235 | return 0; |
236 | } | 236 | } |
@@ -243,7 +243,7 @@ static int gp10b_tegra_unrailgate(struct device *dev) | |||
243 | 243 | ||
244 | if (tegra_bpmp_running()) { | 244 | if (tegra_bpmp_running()) { |
245 | int i; | 245 | int i; |
246 | ret = tegra_unpowergate_partition(TEGRA_POWERGATE_GPU); | 246 | ret = tegra_unpowergate_partition(TEGRA186_POWER_DOMAIN_GPU); |
247 | for (i = 0; i < platform->num_clks; i++) { | 247 | for (i = 0; i < platform->num_clks; i++) { |
248 | if (platform->clk[i]) | 248 | if (platform->clk[i]) |
249 | clk_prepare_enable(platform->clk[i]); | 249 | clk_prepare_enable(platform->clk[i]); |