@@ -2811,6 +2811,7 @@ L: dri-devel@lists.freedesktop.org
L: linux-tegra@vger.kernel.org
T: git git://anongit.freedesktop.org/tegra/linux.git
S: Supported
+F: drivers/gpu/drm/tegra/
F: drivers/gpu/host1x/
F: include/linux/host1x.h
F: include/uapi/drm/tegra_drm.h
@@ -236,3 +236,5 @@ source "drivers/gpu/drm/tilcdc/Kconfig"
source "drivers/gpu/drm/qxl/Kconfig"
source "drivers/gpu/drm/msm/Kconfig"
+
+source "drivers/gpu/drm/tegra/Kconfig"
@@ -55,4 +55,5 @@ obj-$(CONFIG_DRM_OMAP) += omapdrm/
obj-$(CONFIG_DRM_TILCDC) += tilcdc/
obj-$(CONFIG_DRM_QXL) += qxl/
obj-$(CONFIG_DRM_MSM) += msm/
+obj-$(CONFIG_DRM_TEGRA) += tegra/
obj-y += i2c/
similarity index 100%
rename from drivers/gpu/host1x/drm/Kconfig
rename to drivers/gpu/drm/tegra/Kconfig
@@ -13,6 +13,11 @@ config DRM_TEGRA
if DRM_TEGRA
+config DRM_TEGRA_DEBUG
+ bool "NVIDIA Tegra DRM debug support"
+ help
+ Say yes here to enable debugging support.
+
config DRM_TEGRA_STAGING
bool "Enable HOST1X interface"
depends on STAGING
@@ -21,9 +26,4 @@ config DRM_TEGRA_STAGING
If unsure, choose N.
-config DRM_TEGRA_DEBUG
- bool "NVIDIA Tegra DRM debug support"
- help
- Say yes here to enable debugging support.
-
endif
new file mode 100644
@@ -0,0 +1,15 @@
+ccflags-y += -Iinclude/drm
+ccflags-$(CONFIG_DRM_TEGRA_DEBUG) += -DDEBUG
+
+tegra-drm-y := \
+ bus.o \
+ drm.o \
+ gem.o \
+ fb.o \
+ dc.o \
+ output.o \
+ rgb.o \
+ hdmi.o \
+ gr2d.o
+
+obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
similarity index 100%
rename from drivers/gpu/host1x/drm/bus.c
rename to drivers/gpu/drm/tegra/bus.c
similarity index 100%
rename from drivers/gpu/host1x/drm/dc.c
rename to drivers/gpu/drm/tegra/dc.c
similarity index 100%
rename from drivers/gpu/host1x/drm/dc.h
rename to drivers/gpu/drm/tegra/dc.h
similarity index 100%
rename from drivers/gpu/host1x/drm/drm.c
rename to drivers/gpu/drm/tegra/drm.c
similarity index 100%
rename from drivers/gpu/host1x/drm/drm.h
rename to drivers/gpu/drm/tegra/drm.h
similarity index 100%
rename from drivers/gpu/host1x/drm/fb.c
rename to drivers/gpu/drm/tegra/fb.c
similarity index 100%
rename from drivers/gpu/host1x/drm/gem.c
rename to drivers/gpu/drm/tegra/gem.c
similarity index 100%
rename from drivers/gpu/host1x/drm/gem.h
rename to drivers/gpu/drm/tegra/gem.h
similarity index 100%
rename from drivers/gpu/host1x/drm/gr2d.c
rename to drivers/gpu/drm/tegra/gr2d.c
similarity index 100%
rename from drivers/gpu/host1x/drm/hdmi.c
rename to drivers/gpu/drm/tegra/hdmi.c
similarity index 100%
rename from drivers/gpu/host1x/drm/hdmi.h
rename to drivers/gpu/drm/tegra/hdmi.h
similarity index 100%
rename from drivers/gpu/host1x/drm/output.c
rename to drivers/gpu/drm/tegra/output.c
similarity index 100%
rename from drivers/gpu/host1x/drm/rgb.c
rename to drivers/gpu/drm/tegra/rgb.c
@@ -19,6 +19,4 @@ config TEGRA_HOST1X_FIREWALL
If unsure, choose Y.
-source "drivers/gpu/host1x/drm/Kconfig"
-
endif
@@ -9,12 +9,4 @@ host1x-y = \
debug.o \
hw/host1x01.o
-ccflags-y += -Iinclude/drm
-ccflags-$(CONFIG_DRM_TEGRA_DEBUG) += -DDEBUG
-
-host1x-$(CONFIG_DRM_TEGRA) += drm/drm.o drm/fb.o drm/dc.o
-host1x-$(CONFIG_DRM_TEGRA) += drm/output.o drm/rgb.o drm/hdmi.o
-host1x-$(CONFIG_DRM_TEGRA) += drm/gem.o
-host1x-$(CONFIG_DRM_TEGRA) += drm/gr2d.o
-host1x-$(CONFIG_DRM_TEGRA) += drm/bus.o
obj-$(CONFIG_TEGRA_HOST1X) += host1x.o
@@ -19,10 +19,10 @@ source "drivers/char/agp/Kconfig"
source "drivers/gpu/vga/Kconfig"
-source "drivers/gpu/drm/Kconfig"
-
source "drivers/gpu/host1x/Kconfig"
+source "drivers/gpu/drm/Kconfig"
+
config VGASTATE
tristate
default n
In order to subsystem-wide changes easier, move the Tegra DRM driver back into the DRM tree. Signed-off-by: Thierry Reding <treding@nvidia.com> --- MAINTAINERS | 1 + drivers/gpu/drm/Kconfig | 2 ++ drivers/gpu/drm/Makefile | 1 + drivers/gpu/{host1x/drm => drm/tegra}/Kconfig | 10 +++++----- drivers/gpu/drm/tegra/Makefile | 15 +++++++++++++++ drivers/gpu/{host1x/drm => drm/tegra}/bus.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/dc.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/dc.h | 0 drivers/gpu/{host1x/drm => drm/tegra}/drm.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/drm.h | 0 drivers/gpu/{host1x/drm => drm/tegra}/fb.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/gem.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/gem.h | 0 drivers/gpu/{host1x/drm => drm/tegra}/gr2d.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/hdmi.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/hdmi.h | 0 drivers/gpu/{host1x/drm => drm/tegra}/output.c | 0 drivers/gpu/{host1x/drm => drm/tegra}/rgb.c | 0 drivers/gpu/host1x/Kconfig | 2 -- drivers/gpu/host1x/Makefile | 8 -------- drivers/video/Kconfig | 4 ++-- 21 files changed, 26 insertions(+), 17 deletions(-) rename drivers/gpu/{host1x/drm => drm/tegra}/Kconfig (100%) create mode 100644 drivers/gpu/drm/tegra/Makefile rename drivers/gpu/{host1x/drm => drm/tegra}/bus.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/dc.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/dc.h (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/drm.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/drm.h (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/fb.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/gem.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/gem.h (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/gr2d.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/hdmi.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/hdmi.h (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/output.c (100%) rename drivers/gpu/{host1x/drm => drm/tegra}/rgb.c (100%)