summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2014-03-12 12:44:55 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:13 -0400
commit4295256967f4edf68f1a148494b320d6cb0e22a1 (patch)
treeb573507eb8e101a2fdf0235c1c6f4c3b2a305fd3 /drivers/gpu
parentac0d81831aa430b4218ff3996fe588ee17000f2f (diff)
gpu: nvgpu: Allow module build
This patch makes the necessary modifications to the gk20a driver to allow building it as a module. Bug 1476801 Change-Id: I88c4e1c1867baa1c2d010ac6e0c30bdb5fd63b91 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/380970 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/Kconfig14
-rw-r--r--drivers/gpu/nvgpu/gk20a/Makefile9
2 files changed, 18 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/Kconfig b/drivers/gpu/nvgpu/Kconfig
index 160ec8be..238d87e2 100644
--- a/drivers/gpu/nvgpu/Kconfig
+++ b/drivers/gpu/nvgpu/Kconfig
@@ -1,5 +1,6 @@
1config GK20A 1config GK20A
2 bool "Nvidia GK20A GPU support" 2 tristate "Nvidia GK20A GPU support"
3 default y
3 help 4 help
4 Choose this option if you have an SoC with integrated 5 Choose this option if you have an SoC with integrated
5 Nvidia GPU IP. 6 Nvidia GPU IP.
@@ -54,7 +55,18 @@ config GK20A_CYCLE_STATS
54 55
55config GK20A_PHYS_PAGE_TABLES 56config GK20A_PHYS_PAGE_TABLES
56 bool "Use physical addressing for gk20a page tables" 57 bool "Use physical addressing for gk20a page tables"
58 depends on GK20A
57 default y if TEGRA_SIMULATION_PLATFORM 59 default y if TEGRA_SIMULATION_PLATFORM
58 help 60 help
59 Use physical addressing for gk20a page tables. If this is off, we 61 Use physical addressing for gk20a page tables. If this is off, we
60 use SMMU translation. 62 use SMMU translation.
63
64config TEGRA_GK20A
65 bool "Enable the GK20A GPU on Tegra"
66 depends on TEGRA_GRHOST
67 depends on GK20A
68 default y
69 help
70 Enable support for the GK20A graphics engine on Tegra
71 by adding a Tegra platfrom interface to the GK20A driver.
72 The Tegra platform interface requires TEGRA_GRHOST (host1x).
diff --git a/drivers/gpu/nvgpu/gk20a/Makefile b/drivers/gpu/nvgpu/gk20a/Makefile
index f9b06b72..cba31681 100644
--- a/drivers/gpu/nvgpu/gk20a/Makefile
+++ b/drivers/gpu/nvgpu/gk20a/Makefile
@@ -4,7 +4,7 @@ ccflags-y += -Idrivers/devfreq
4ccflags-y += -Wno-multichar 4ccflags-y += -Wno-multichar
5ccflags-y += -Werror 5ccflags-y += -Werror
6 6
7obj-$(CONFIG_GK20A) += \ 7nvgpu-y := \
8 gk20a.o \ 8 gk20a.o \
9 as_gk20a.o \ 9 as_gk20a.o \
10 ctrl_gk20a.o \ 10 ctrl_gk20a.o \
@@ -30,7 +30,8 @@ obj-$(CONFIG_GK20A) += \
30 fb_gk20a.o \ 30 fb_gk20a.o \
31 hal.o \ 31 hal.o \
32 hal_gk20a.o \ 32 hal_gk20a.o \
33 gk20a_allocator.o 33 gk20a_allocator.o \
34 platform_gk20a_generic.o
35nvgpu-$(CONFIG_TEGRA_GK20A) += platform_gk20a_tegra.o
34 36
35obj-$(CONFIG_GK20A) += platform_gk20a_generic.o 37obj-$(CONFIG_GK20A) := nvgpu.o
36obj-$(CONFIG_TEGRA_GK20A) += platform_gk20a_tegra.o