diff options
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c index ceb1d67e..538c2eb1 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | |||
@@ -15,7 +15,9 @@ | |||
15 | 15 | ||
16 | #include <linux/version.h> | 16 | #include <linux/version.h> |
17 | #include <linux/of_platform.h> | 17 | #include <linux/of_platform.h> |
18 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
18 | #include <linux/nvhost.h> | 19 | #include <linux/nvhost.h> |
20 | #endif | ||
19 | #include <linux/debugfs.h> | 21 | #include <linux/debugfs.h> |
20 | #include <linux/platform_data/tegra_edp.h> | 22 | #include <linux/platform_data/tegra_edp.h> |
21 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
@@ -843,30 +845,36 @@ static void gk20a_tegra_scale_exit(struct device *dev) | |||
843 | 845 | ||
844 | void gk20a_tegra_debug_dump(struct device *dev) | 846 | void gk20a_tegra_debug_dump(struct device *dev) |
845 | { | 847 | { |
848 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
846 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 849 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
847 | struct gk20a *g = platform->g; | 850 | struct gk20a *g = platform->g; |
848 | 851 | ||
849 | if (g->host1x_dev) | 852 | if (g->host1x_dev) |
850 | nvhost_debug_dump_device(g->host1x_dev); | 853 | nvhost_debug_dump_device(g->host1x_dev); |
854 | #endif | ||
851 | } | 855 | } |
852 | 856 | ||
853 | int gk20a_tegra_busy(struct device *dev) | 857 | int gk20a_tegra_busy(struct device *dev) |
854 | { | 858 | { |
859 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
855 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 860 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
856 | struct gk20a *g = platform->g; | 861 | struct gk20a *g = platform->g; |
857 | 862 | ||
858 | if (g->host1x_dev) | 863 | if (g->host1x_dev) |
859 | return nvhost_module_busy_ext(g->host1x_dev); | 864 | return nvhost_module_busy_ext(g->host1x_dev); |
865 | #endif | ||
860 | return 0; | 866 | return 0; |
861 | } | 867 | } |
862 | 868 | ||
863 | void gk20a_tegra_idle(struct device *dev) | 869 | void gk20a_tegra_idle(struct device *dev) |
864 | { | 870 | { |
871 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
865 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 872 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
866 | struct gk20a *g = platform->g; | 873 | struct gk20a *g = platform->g; |
867 | 874 | ||
868 | if (g->host1x_dev) | 875 | if (g->host1x_dev) |
869 | nvhost_module_idle_ext(g->host1x_dev); | 876 | nvhost_module_idle_ext(g->host1x_dev); |
877 | #endif | ||
870 | } | 878 | } |
871 | 879 | ||
872 | static int gk20a_tegra_probe(struct device *dev) | 880 | static int gk20a_tegra_probe(struct device *dev) |