gpu: nvgpu: Add NVIDIA GPU Driver
Arto Merilainen [Wed, 19 Mar 2014 07:38:25 +0000 (09:38 +0200)]
This patch moves the NVIDIA GPU driver to a new location.

Bug 1482562

Change-Id: I24293810b9d0f1504fd9be00135e21dad656ccb6
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/383722
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

87 files changed:
drivers/Kconfig
drivers/gpu/Makefile
drivers/gpu/nvgpu/Kconfig [moved from drivers/video/tegra/host/gk20a/Kconfig with 100% similarity]
drivers/gpu/nvgpu/gk20a/Makefile [moved from drivers/video/tegra/host/gk20a/Makefile with 100% similarity]
drivers/gpu/nvgpu/gk20a/as_gk20a.c [moved from drivers/video/tegra/host/gk20a/as_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/as_gk20a.h [moved from drivers/video/tegra/host/gk20a/as_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/channel_gk20a.c [moved from drivers/video/tegra/host/gk20a/channel_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/channel_gk20a.h [moved from drivers/video/tegra/host/gk20a/channel_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c [moved from drivers/video/tegra/host/gk20a/channel_sync_gk20a.c with 99% similarity]
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h [moved from drivers/video/tegra/host/gk20a/channel_sync_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/clk_gk20a.c [moved from drivers/video/tegra/host/gk20a/clk_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/clk_gk20a.h [moved from drivers/video/tegra/host/gk20a/clk_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c [moved from drivers/video/tegra/host/gk20a/ctrl_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/ctrl_gk20a.h [moved from drivers/video/tegra/host/gk20a/ctrl_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c [moved from drivers/video/tegra/host/gk20a/dbg_gpu_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h [moved from drivers/video/tegra/host/gk20a/dbg_gpu_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/debug_gk20a.c [moved from drivers/video/tegra/host/gk20a/debug_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/debug_gk20a.h [moved from drivers/video/tegra/host/gk20a/debug_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/fb_gk20a.c [moved from drivers/video/tegra/host/gk20a/fb_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/fb_gk20a.h [moved from drivers/video/tegra/host/gk20a/fb_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/fifo_gk20a.c [moved from drivers/video/tegra/host/gk20a/fifo_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/fifo_gk20a.h [moved from drivers/video/tegra/host/gk20a/fifo_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a.c [moved from drivers/video/tegra/host/gk20a/gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a.h [moved from drivers/video/tegra/host/gk20a/gk20a.h with 99% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_allocator.c [moved from drivers/video/tegra/host/gk20a/gk20a_allocator.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_allocator.h [moved from drivers/video/tegra/host/gk20a/gk20a_allocator.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c [moved from drivers/video/tegra/host/gk20a/gk20a_gating_reglist.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.h [moved from drivers/video/tegra/host/gk20a/gk20a_gating_reglist.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_scale.c [moved from drivers/video/tegra/host/gk20a/gk20a_scale.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_scale.h [moved from drivers/video/tegra/host/gk20a/gk20a_scale.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c [moved from drivers/video/tegra/host/gk20a/gk20a_sysfs.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c [moved from drivers/video/tegra/host/gk20a/gr_ctx_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h [moved from drivers/video/tegra/host/gk20a/gr_ctx_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c [moved from drivers/video/tegra/host/gk20a/gr_ctx_gk20a_sim.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_gk20a.c [moved from drivers/video/tegra/host/gk20a/gr_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_gk20a.h [moved from drivers/video/tegra/host/gk20a/gr_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/gr_pri_gk20a.h [moved from drivers/video/tegra/host/gk20a/gr_pri_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hal.c [moved from drivers/video/tegra/host/gk20a/hal.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/hal.h [moved from drivers/video/tegra/host/gk20a/hal.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hal_gk20a.c [moved from drivers/video/tegra/host/gk20a/hal_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/hal_gk20a.h [moved from drivers/video/tegra/host/gk20a/hal_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_bus_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_ccsr_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_ccsr_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_chiplet_pwr_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_chiplet_pwr_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_ctxsw_prog_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_fb_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_fb_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_fifo_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_flush_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_flush_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_gmmu_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_gr_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_ltc_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_mc_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pbdma_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pbdma_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pri_ringmaster_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pri_ringmaster_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pri_ringstation_fbp_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pri_ringstation_fbp_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pri_ringstation_gpc_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pri_ringstation_gpc_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pri_ringstation_sys_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pri_ringstation_sys_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_proj_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_pwr_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_pwr_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_ram_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_ram_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_sim_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_sim_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_therm_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_therm_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_timer_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_timer_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_top_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h [moved from drivers/video/tegra/host/gk20a/hw_trim_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/kind_gk20a.c [moved from drivers/video/tegra/host/gk20a/kind_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/kind_gk20a.h [moved from drivers/video/tegra/host/gk20a/kind_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/ltc_common.c [moved from drivers/video/tegra/host/gk20a/ltc_common.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/ltc_gk20a.c [moved from drivers/video/tegra/host/gk20a/ltc_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/ltc_gk20a.h [moved from drivers/video/tegra/host/gk20a/ltc_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/mm_gk20a.c [moved from drivers/video/tegra/host/gk20a/mm_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/mm_gk20a.h [moved from drivers/video/tegra/host/gk20a/mm_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/platform_gk20a.h [moved from drivers/video/tegra/host/gk20a/platform_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c [moved from drivers/video/tegra/host/gk20a/platform_gk20a_generic.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c [moved from drivers/video/tegra/host/gk20a/platform_gk20a_tegra.c with 99% similarity]
drivers/gpu/nvgpu/gk20a/pmu_gk20a.c [moved from drivers/video/tegra/host/gk20a/pmu_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/pmu_gk20a.h [moved from drivers/video/tegra/host/gk20a/pmu_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c [moved from drivers/video/tegra/host/gk20a/priv_ring_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h [moved from drivers/video/tegra/host/gk20a/priv_ring_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/regops_gk20a.c [moved from drivers/video/tegra/host/gk20a/regops_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/regops_gk20a.h [moved from drivers/video/tegra/host/gk20a/regops_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/sim_gk20a.h [moved from drivers/video/tegra/host/gk20a/sim_gk20a.h with 100% similarity]
drivers/gpu/nvgpu/gk20a/therm_gk20a.c [moved from drivers/video/tegra/host/gk20a/therm_gk20a.c with 100% similarity]
drivers/gpu/nvgpu/gk20a/therm_gk20a.h [moved from drivers/video/tegra/host/gk20a/therm_gk20a.h with 100% similarity]
drivers/video/tegra/Kconfig
drivers/video/tegra/Makefile
drivers/video/tegra/host/t124/t124.c

index 1b9b2e6..71731fd 100644 (file)
@@ -178,4 +178,6 @@ source "drivers/reset/Kconfig"
 
 source "drivers/edp/Kconfig"
 
+source "drivers/gpu/nvgpu/Kconfig"
+
 endmenu
index d8a22c2..89cd272 100644 (file)
@@ -1,2 +1,3 @@
 obj-y                  += drm/ vga/
 obj-$(CONFIG_TEGRA_HOST1X)     += host1x/
+obj-$(CONFIG_GK20A)    += nvgpu/gk20a/
@@ -21,7 +21,7 @@
 #include "gk20a.h"
 
 #ifdef CONFIG_SYNC
-#include "../../../../staging/android/sync.h"
+#include "../../../staging/android/sync.h"
 #endif
 
 #ifdef CONFIG_TEGRA_GK20A
similarity index 99%
rename from drivers/video/tegra/host/gk20a/gk20a.h
rename to drivers/gpu/nvgpu/gk20a/gk20a.h
index 997a878..a9081a9 100644 (file)
@@ -33,7 +33,7 @@ struct sim_gk20a;
 #include <linux/nvhost_gpu_ioctl.h>
 #include <linux/tegra-soc.h>
 
-#include "../../../../../arch/arm/mach-tegra/iomap.h"
+#include "../../../arch/arm/mach-tegra/iomap.h"
 
 #include "as_gk20a.h"
 #include "clk_gk20a.h"
@@ -24,7 +24,7 @@
 #include <mach/irqs.h>
 #include <mach/pm_domains.h>
 
-#include "../../../../../arch/arm/mach-tegra/iomap.h"
+#include "../../../arch/arm/mach-tegra/iomap.h"
 
 #include "gk20a.h"
 #include "hal_gk20a.h"
index b5cdd11..b6dd1e5 100644 (file)
@@ -349,5 +349,3 @@ config TEGRA_CAMERA
          Enables support for the Tegra camera interface
 
          If unsure, say Y
-
-source "drivers/video/tegra/host/gk20a/Kconfig"
index 3f1e200..9491014 100644 (file)
@@ -7,7 +7,6 @@ subdir-ccflags-y += -Iarch/arm/mach-tegra/include
 ccflags += -Iarch/arm/mach-tegra/include
 endif
 obj-$(CONFIG_TEGRA_GRHOST) += host/
-obj-$(CONFIG_GK20A) += host/gk20a/
 obj-$(CONFIG_TEGRA_DC) += dc/
 obj-$(CONFIG_FB_TEGRA) += fb.o
 obj-$(CONFIG_ADF_TEGRA) += tegra_adf.o
index f0c4b58..a2c44b1 100644 (file)
@@ -19,6 +19,7 @@
  */
 #include <linux/slab.h>
 #include <linux/tegra-powergate.h>
+#include <linux/tegra-fuse.h>
 
 #include <mach/mc.h>
 
 #include "nvhost_channel.h"
 #include "nvhost_job.h"
 #include "class_ids.h"
-
 #include "t124.h"
+#include "vic03/vic03.h"
 #include "host1x/host1x.h"
-
 #include "hardware_t124.h"
 #include "syncpt_t124.h"
-
-#include "gk20a/gk20a.h"
-#include "gk20a/gk20a_scale.h"
-#include "vic03/vic03.h"
 #include "msenc/msenc.h"
 #include "tsec/tsec.h"
 #include "vi/vi.h"
 #include "isp/isp.h"
 #include "gr3d/scale3d.h"
-
 #include "chip_support.h"
 #include "nvhost_scale.h"
 
+#include "../../../../arch/arm/mach-tegra/iomap.h"
+
 static int t124_num_alloc_channels = 0;
 
 #define HOST_EMC_FLOOR 300000000
@@ -562,9 +559,6 @@ static struct platform_device *t124_devices[] = {
        &tegra_vi01_device,
        &tegra_msenc03_device,
        &tegra_tsec01_device,
-#if defined(CONFIG_TEGRA_GK20A)
-       &tegra_gk20a_device,
-#endif
 #if defined(CONFIG_ARCH_TEGRA_VIC)
        &tegra_vic03_device,
 #endif