summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBhanu Murthy V <bmurthyv@nvidia.com>2017-03-17 18:16:23 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-24 19:36:01 -0400
commit6407dc04bf9b78cf3d7857de8bc8de48ccd919da (patch)
treec61e6fda351b539ec94b74bd5f7c18e9ab935da1 /drivers
parent3ac9fe75fbe9cc17d17cee4f5b35c88b14ed606a (diff)
nvidia: Add Kconfig and Makefile support
Add Kconfigs and Makefiles in sub-folders to compile code. Bug 1856401 Change-Id: Ice5c0b4a8a25dc28b1faac1df32bae04b7391506 Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com> Reviewed-on: http://git-master/r/1324565 Reviewed-by: Frank Chen <frankc@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/Makefile.nvidia3
-rw-r--r--drivers/i2c/Makefile.nvidia1
-rw-r--r--drivers/i2c/busses/Kconfig.nvidia9
-rw-r--r--drivers/i2c/busses/Makefile.nvidia1
-rw-r--r--drivers/media/Makefile.nvidia2
-rw-r--r--drivers/media/i2c/Kconfig.nvidia96
-rw-r--r--drivers/media/i2c/Makefile.nvidia15
-rw-r--r--drivers/media/platform/Makefile.nvidia1
-rw-r--r--drivers/media/platform/tegra/Kconfig.nvidia37
-rw-r--r--drivers/media/platform/tegra/Makefile.nvidia (renamed from drivers/media/platform/tegra/Makefile)5
-rw-r--r--drivers/media/platform/tegra/camera/Makefile10
-rw-r--r--drivers/media/platform/tegra/camera/Makefile.nvidia10
-rw-r--r--drivers/media/platform/tegra/camera/csi/Makefile8
-rw-r--r--drivers/media/platform/tegra/camera/csi/Makefile.nvidia8
-rw-r--r--drivers/media/platform/tegra/camera/vi/Makefile21
-rw-r--r--drivers/media/platform/tegra/camera/vi/Makefile.nvidia20
-rw-r--r--drivers/media/platform/tegra/camera/vi/graph.c2
-rw-r--r--drivers/media/platform/tegra/mipical/Kconfig.nvidia (renamed from drivers/media/platform/tegra/mipical/Kconfig)0
-rw-r--r--drivers/media/platform/tegra/mipical/Makefile.nvidia (renamed from drivers/media/platform/tegra/mipical/Makefile)0
-rw-r--r--drivers/media/platform/tegra/tpg/Makefile.nvidia (renamed from drivers/media/platform/tegra/tpg/Makefile)7
-rw-r--r--drivers/media/platform/tegra/vi/Makefile17
-rw-r--r--drivers/media/platform/tegra/vi/Makefile.nvidia13
-rw-r--r--drivers/media/platform/tegra/vi/vi.c2
-rw-r--r--drivers/video/Makefile.nvidia1
-rw-r--r--drivers/video/tegra/Kconfig.nvidia8
-rw-r--r--drivers/video/tegra/Makefile.nvidia1
-rw-r--r--drivers/video/tegra/camera/Makefile.nvidia7
27 files changed, 240 insertions, 65 deletions
diff --git a/drivers/Makefile.nvidia b/drivers/Makefile.nvidia
new file mode 100644
index 000000000..70849d6d1
--- /dev/null
+++ b/drivers/Makefile.nvidia
@@ -0,0 +1,3 @@
1obj-y += i2c/
2obj-y += media/
3obj-y += video/
diff --git a/drivers/i2c/Makefile.nvidia b/drivers/i2c/Makefile.nvidia
new file mode 100644
index 000000000..0717b752f
--- /dev/null
+++ b/drivers/i2c/Makefile.nvidia
@@ -0,0 +1 @@
obj-y += busses/
diff --git a/drivers/i2c/busses/Kconfig.nvidia b/drivers/i2c/busses/Kconfig.nvidia
new file mode 100644
index 000000000..385e6ada4
--- /dev/null
+++ b/drivers/i2c/busses/Kconfig.nvidia
@@ -0,0 +1,9 @@
1
2config I2C_TEGRA_VI
3 tristate "NVIDIA Tegra internal VII2C controller"
4 depends on ARCH_TEGRA
5 default y
6 select I2C_ALGOBIT
7 help
8 If you say yes to this option, support will be included for the
9 I2C controller embedded in NVIDIA Tegra SOCs
diff --git a/drivers/i2c/busses/Makefile.nvidia b/drivers/i2c/busses/Makefile.nvidia
new file mode 100644
index 000000000..2836f3f1b
--- /dev/null
+++ b/drivers/i2c/busses/Makefile.nvidia
@@ -0,0 +1 @@
obj-$(CONFIG_I2C_TEGRA_VI) += i2c-tegra-vi.o
diff --git a/drivers/media/Makefile.nvidia b/drivers/media/Makefile.nvidia
new file mode 100644
index 000000000..f86e3259f
--- /dev/null
+++ b/drivers/media/Makefile.nvidia
@@ -0,0 +1,2 @@
1obj-y += i2c/
2obj-y += platform/
diff --git a/drivers/media/i2c/Kconfig.nvidia b/drivers/media/i2c/Kconfig.nvidia
new file mode 100644
index 000000000..46f106c52
--- /dev/null
+++ b/drivers/media/i2c/Kconfig.nvidia
@@ -0,0 +1,96 @@
1
2config VIDEO_IMX185
3 tristate "IMX185 camera sensor support"
4 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
5 ---help---
6 This is a Video4Linux2 sensor-level driver for the Sony
7 IMX185 camera sensor
8
9 To compile this driver as a module, choose M here: the module
10 will be called imx185.
11
12config VIDEO_IMX219
13 tristate "IMX219 camera sensor support"
14 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
15 ---help---
16 This driver supports IMX219 camera sensor from Sony
17
18 To compile this driver as a module, choose M here: the module
19 will be called imx219.
20
21config VIDEO_IMX274
22 tristate "IMX274 camera sensor support"
23 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
24 ---help---
25 This is a Video4Linux2 sensor-level driver for the Sony
26 IMX274 camera sensor
27
28 To compile this driver as a module, choose M here: the module
29 will be called imx274.
30
31config VIDEO_LC898212
32 tristate "LC898212 focuser support"
33 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
34 ---help---
35 This driver supports LC898212 camera focuser
36
37 To compile this driver as a module, choose M here: the module
38 will be called lc898212.
39
40config VIDEO_OV5693
41 tristate "OV5693 camera sensor support"
42 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
43 ---help---
44 This is a Video4Linux2 sensor-level driver for the OmniVision
45 OV5693 camera.
46
47 To compile this driver as a module, choose M here: the module
48 will be called ov5693.
49
50config VIDEO_OV9281
51 tristate "OmniVision OV9281 camera sensor support"
52 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
53 ---help---
54 This is a Video4Linux2 sensor driver for the OmniVision
55 OV9281 camera sensor, for use with the tegra isp.
56
57 To compile this driver as a module, choose M here: the module
58 will be called ov9281.
59
60config VIDEO_OV10823
61 tristate "OmniVision OV10823 camera sensor support"
62 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
63 ---help---
64 This is a Video4Linux2 sensor driver for the OmniVision
65 OV10823 camera sensor, for use with the tegra isp.
66
67 To compile this driver as a module, choose M here: the module
68 will be called ov10823.
69
70config VIDEO_OV23850
71 tristate "OmniVision OV23850 sensor support"
72 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
73 ---help---
74 This driver supports OmniVision OV23850 camera sensor
75
76 To compile this driver as a module, choose M here: the module
77 will be called ov23850.
78
79config I2C_IOEXPANDER_PCA9570
80 tristate "nxp PCA9570 I2C IO Expander"
81 help
82 If you say yes here you get support for the nxp PCA9570
83 I2C IO Expander devices.
84
85 To compile this driver as a module, choose M here: the module
86 will be called pca9570.
87
88config VIDEO_TC358840
89 tristate "Toshiba TC358840 decoder"
90 depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
91 select HDMI
92 ---help---
93 Support for the Toshiba TC358840 HDMI to MIPI CSI-2 bridge.
94
95 To compile this driver as a module, choose M here: the
96 module will be called tc358840.
diff --git a/drivers/media/i2c/Makefile.nvidia b/drivers/media/i2c/Makefile.nvidia
new file mode 100644
index 000000000..f1f14864f
--- /dev/null
+++ b/drivers/media/i2c/Makefile.nvidia
@@ -0,0 +1,15 @@
1subdir-ccflags-y += -Werror
2
3ccflags-y += -I$(srctree)/drivers/media/platform/tegra
4ccflags-y += -I$(srctree)/drivers/video/tegra/camera
5
6obj-$(CONFIG_VIDEO_IMX185) += imx185.o
7obj-$(CONFIG_VIDEO_IMX219) += imx219.o
8obj-$(CONFIG_VIDEO_IMX274) += imx274.o
9obj-$(CONFIG_VIDEO_LC898212) += lc898212.o
10obj-$(CONFIG_VIDEO_OV5693) += ov5693.o
11obj-$(CONFIG_VIDEO_OV9281) += ov9281.o
12obj-$(CONFIG_VIDEO_OV10823) += ov10823.o
13obj-$(CONFIG_VIDEO_OV23850) += ov23850.o
14obj-$(CONFIG_I2C_IOEXPANDER_PCA9570) += pca9570.o
15obj-$(CONFIG_VIDEO_TC358840) += tc358840.o
diff --git a/drivers/media/platform/Makefile.nvidia b/drivers/media/platform/Makefile.nvidia
new file mode 100644
index 000000000..3d50fea2a
--- /dev/null
+++ b/drivers/media/platform/Makefile.nvidia
@@ -0,0 +1 @@
obj-y += tegra/
diff --git a/drivers/media/platform/tegra/Kconfig.nvidia b/drivers/media/platform/tegra/Kconfig.nvidia
new file mode 100644
index 000000000..ed13e592d
--- /dev/null
+++ b/drivers/media/platform/tegra/Kconfig.nvidia
@@ -0,0 +1,37 @@
1
2source "../nvidia/drivers/media/platform/tegra/mipical/Kconfig.nvidia"
3
4config VIDEO_CAMERA
5 tristate "generic camera device support"
6 depends on I2C && ARCH_TEGRA
7 select REGMAP_I2C
8 ---help---
9 This is a driver for generic camera devices
10 for use with the tegra isp.
11
12config VIDEO_TEGRA_VI
13 depends on TEGRA_GRHOST
14 depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && OF
15 select VIDEOBUF2_DMA_CONTIG
16 tristate "Tegra video input host1x client driver"
17 default y
18 help
19 Driver for the Tegra video input hardware based on
20 media controller framework and interact with host1x
21 apis to support both user space as well as kernel
22 programming of VI hardware registers
23 To compile this driver as a module, choose M here:
24 the module will be called nvhost-vi.
25
26config VIDEO_TEGRA_VI_TPG
27 depends on VIDEO_TEGRA_VI
28 tristate "Tegra video input test pattern generator driver"
29 default m
30 help
31 Driver for the Tegra video input test pattern generator
32 driver is based on media controller framework and interact
33 with host1x apis to support both user space as well as kernel
34 programming of VI hardware registers to generate predefined
35 test patterns.
36 To compile this driver as a module, choose M here:
37 the module will be called nvhost-vi-tpg.
diff --git a/drivers/media/platform/tegra/Makefile b/drivers/media/platform/tegra/Makefile.nvidia
index 414f22f69..91d184945 100644
--- a/drivers/media/platform/tegra/Makefile
+++ b/drivers/media/platform/tegra/Makefile.nvidia
@@ -4,9 +4,8 @@ GCOV_PROFILE := y
4# 4#
5# Makefile for the video capture/playback device drivers. 5# Makefile for the video capture/playback device drivers.
6# 6#
7obj-y += camera/ 7obj-$(CONFIG_VIDEO_CAMERA) += camera/
8obj-y += vi/ 8obj-$(CONFIG_VIDEO_TEGRA_VI) += vi/
9obj-$(CONFIG_VIDEO_CAMERA) += regmap_util.o 9obj-$(CONFIG_VIDEO_CAMERA) += regmap_util.o
10obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += tpg/ 10obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += tpg/
11
12obj-$(CONFIG_TEGRA_MIPI_CAL) += mipical/ 11obj-$(CONFIG_TEGRA_MIPI_CAL) += mipical/
diff --git a/drivers/media/platform/tegra/camera/Makefile b/drivers/media/platform/tegra/camera/Makefile
deleted file mode 100644
index 8474f451a..000000000
--- a/drivers/media/platform/tegra/camera/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
1GCOV_PROFILE := y
2obj-y += vi/
3obj-y += csi/
4ccflags-y += -I../nvhost/drivers/video/tegra/host
5ccflags-y += -Idrivers/video/tegra/host
6ccflags-y += -Idrivers/video/tegra/camera
7ccflags-y += -Idrivers/media/platform/tegra
8ccflags-y += -Werror
9
10obj-y += camera_common.o camera_gpio.o sensor_common.o
diff --git a/drivers/media/platform/tegra/camera/Makefile.nvidia b/drivers/media/platform/tegra/camera/Makefile.nvidia
new file mode 100644
index 000000000..ac2be6e56
--- /dev/null
+++ b/drivers/media/platform/tegra/camera/Makefile.nvidia
@@ -0,0 +1,10 @@
1GCOV_PROFILE := y
2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -I$(srctree)/drivers/video/tegra/host
4ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera
5ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra
6ccflags-y += -Werror
7
8obj-y += vi/
9obj-y += csi/
10obj-y += camera_common.o camera_gpio.o sensor_common.o
diff --git a/drivers/media/platform/tegra/camera/csi/Makefile b/drivers/media/platform/tegra/camera/csi/Makefile
deleted file mode 100644
index 3d307cb83..000000000
--- a/drivers/media/platform/tegra/camera/csi/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
1GCOV_PROFILE := y
2ccflags-y += -I../nvhost/drivers/video/tegra/host
3ccflags-y += -I../nvhost/include
4ccflags-y += -Idrivers/video/tegra/camera
5ccflags-y += -Idrivers/media/platform/tegra
6ccflags-y += -Werror
7
8obj-y += csi.o csi2_fops.o csi4_fops.o
diff --git a/drivers/media/platform/tegra/camera/csi/Makefile.nvidia b/drivers/media/platform/tegra/camera/csi/Makefile.nvidia
new file mode 100644
index 000000000..93cc3ad87
--- /dev/null
+++ b/drivers/media/platform/tegra/camera/csi/Makefile.nvidia
@@ -0,0 +1,8 @@
1GCOV_PROFILE := y
2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera
4ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra
5ccflags-y += -I$(srctree)/../nvhost/include
6ccflags-y += -Werror
7
8obj-y += csi.o csi2_fops.o csi4_fops.o
diff --git a/drivers/media/platform/tegra/camera/vi/Makefile b/drivers/media/platform/tegra/camera/vi/Makefile
deleted file mode 100644
index 11bce8f3b..000000000
--- a/drivers/media/platform/tegra/camera/vi/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
1GCOV_PROFILE := y
2ccflags-y += -I../nvhost/drivers/video/tegra/host
3ccflags-y += -Idrivers/video/tegra/host
4ccflags-y += -Idrivers/video/tegra/camera
5ccflags-y += -Idrivers/media/platform/tegra
6ccflags-y += -Werror
7
8ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
9ccflags-y += -I../t18x/drivers/video/tegra/host/
10ccflags-y += -I../t18x/include
11ccflags-y += -I../nvhost/include
12obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o vi4_fops.o
13endif
14
15obj-$(CONFIG_TEGRA_CAMERA_RTCPU) += capture.o
16
17ifeq ($(CONFIG_ARCH_TEGRA_210_SOC),y)
18ccflags-y += -I../nvhost/include
19ccflags-y += -I../t18x/drivers/video/tegra/host/
20obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o
21endif
diff --git a/drivers/media/platform/tegra/camera/vi/Makefile.nvidia b/drivers/media/platform/tegra/camera/vi/Makefile.nvidia
new file mode 100644
index 000000000..cd52046ad
--- /dev/null
+++ b/drivers/media/platform/tegra/camera/vi/Makefile.nvidia
@@ -0,0 +1,20 @@
1GCOV_PROFILE := y
2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -I$(srctree)/drivers/video/tegra/host
4ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera
5ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra
6ccflags-y += -I$(srctree)/../nvhost/include
7ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/
8ccflags-y += -I$(srctree)/../t18x/include
9ccflags-y += -Werror
10
11ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
12obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o vi4_fops.o
13endif
14
15obj-$(CONFIG_TEGRA_CAMERA_RTCPU) += capture.o
16
17ifeq ($(CONFIG_ARCH_TEGRA_210_SOC),y)
18ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/
19obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o
20endif
diff --git a/drivers/media/platform/tegra/camera/vi/graph.c b/drivers/media/platform/tegra/camera/vi/graph.c
index c2dd058a1..43bea2eae 100644
--- a/drivers/media/platform/tegra/camera/vi/graph.c
+++ b/drivers/media/platform/tegra/camera/vi/graph.c
@@ -19,7 +19,7 @@
19#include <linux/regulator/consumer.h> 19#include <linux/regulator/consumer.h>
20#include <linux/reset.h> 20#include <linux/reset.h>
21#include <linux/slab.h> 21#include <linux/slab.h>
22#include <linux/tegra-soc.h> 22#include <soc/tegra/chip-id.h>
23#include <linux/tegra_pm_domains.h> 23#include <linux/tegra_pm_domains.h>
24 24
25#include <media/media-device.h> 25#include <media/media-device.h>
diff --git a/drivers/media/platform/tegra/mipical/Kconfig b/drivers/media/platform/tegra/mipical/Kconfig.nvidia
index e00659b2b..e00659b2b 100644
--- a/drivers/media/platform/tegra/mipical/Kconfig
+++ b/drivers/media/platform/tegra/mipical/Kconfig.nvidia
diff --git a/drivers/media/platform/tegra/mipical/Makefile b/drivers/media/platform/tegra/mipical/Makefile.nvidia
index ffd996e09..ffd996e09 100644
--- a/drivers/media/platform/tegra/mipical/Makefile
+++ b/drivers/media/platform/tegra/mipical/Makefile.nvidia
diff --git a/drivers/media/platform/tegra/tpg/Makefile b/drivers/media/platform/tegra/tpg/Makefile.nvidia
index 135473166..a5ba01b47 100644
--- a/drivers/media/platform/tegra/tpg/Makefile
+++ b/drivers/media/platform/tegra/tpg/Makefile.nvidia
@@ -1,14 +1,13 @@
1GCOV_PROFILE := y 1GCOV_PROFILE := y
2ccflags-y += -I../nvhost/drivers/video/tegra/host 2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -Idrivers/media/platform/tegra 3ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra
4ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host
4ccflags-y += -Werror 5ccflags-y += -Werror
5 6
6ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) 7ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
7ccflags-y += -I../t18x/drivers/video/tegra/host
8nvhost-vi-tpg-objs += tpg_t18x.o 8nvhost-vi-tpg-objs += tpg_t18x.o
9else 9else
10nvhost-vi-tpg-objs += tpg_t21x.o 10nvhost-vi-tpg-objs += tpg_t21x.o
11endif 11endif
12 12
13
14obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += nvhost-vi-tpg.o 13obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += nvhost-vi-tpg.o
diff --git a/drivers/media/platform/tegra/vi/Makefile b/drivers/media/platform/tegra/vi/Makefile
deleted file mode 100644
index 6cd9767ea..000000000
--- a/drivers/media/platform/tegra/vi/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
1GCOV_PROFILE := y
2ccflags-y += -I../nvhost/drivers/video/tegra/host
3ccflags-y += -Idrivers/video/tegra/camera
4ccflags-y += -Idrivers/media/platform/tegra/
5ccflags-y += -Werror
6
7ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
8ccflags-y += -I../t18x/drivers/video/tegra/host/
9endif
10
11ifneq (,$(filter $(CONFIG_VIDEO_TEGRA_VI),y m))
12obj-y += vi_irq.o
13obj-y += tegra_vi.o
14endif
15
16nvhost-vi-objs += vi.o
17obj-$(CONFIG_VIDEO_TEGRA_VI) += nvhost-vi.o
diff --git a/drivers/media/platform/tegra/vi/Makefile.nvidia b/drivers/media/platform/tegra/vi/Makefile.nvidia
new file mode 100644
index 000000000..8858109bd
--- /dev/null
+++ b/drivers/media/platform/tegra/vi/Makefile.nvidia
@@ -0,0 +1,13 @@
1GCOV_PROFILE := y
2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -I$(srctree)/drivers/video/tegra/host
4ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/
5ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera
6ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra
7ccflags-y += -Werror
8
9nvhost-vi-objs += vi.o
10nvhost-vi-objs += vi_irq.o
11nvhost-vi-objs += tegra_vi.o
12
13obj-$(CONFIG_VIDEO_TEGRA_VI) += nvhost-vi.o
diff --git a/drivers/media/platform/tegra/vi/vi.c b/drivers/media/platform/tegra/vi/vi.c
index 61f47fd40..da86ee472 100644
--- a/drivers/media/platform/tegra/vi/vi.c
+++ b/drivers/media/platform/tegra/vi/vi.c
@@ -27,7 +27,7 @@
27#include <linux/of_device.h> 27#include <linux/of_device.h>
28#include <linux/of_platform.h> 28#include <linux/of_platform.h>
29#include <linux/clk/tegra.h> 29#include <linux/clk/tegra.h>
30#include <linux/tegra-soc.h> 30#include <soc/tegra/chip-id.h>
31#include <linux/tegra_pm_domains.h> 31#include <linux/tegra_pm_domains.h>
32#include <linux/debugfs.h> 32#include <linux/debugfs.h>
33#include <linux/slab.h> 33#include <linux/slab.h>
diff --git a/drivers/video/Makefile.nvidia b/drivers/video/Makefile.nvidia
new file mode 100644
index 000000000..3d50fea2a
--- /dev/null
+++ b/drivers/video/Makefile.nvidia
@@ -0,0 +1 @@
obj-y += tegra/
diff --git a/drivers/video/tegra/Kconfig.nvidia b/drivers/video/tegra/Kconfig.nvidia
new file mode 100644
index 000000000..62f7ae756
--- /dev/null
+++ b/drivers/video/tegra/Kconfig.nvidia
@@ -0,0 +1,8 @@
1
2config TEGRA_CAMERA_PLATFORM
3 bool "Enable tegra camera platform driver"
4 depends on ARCH_TEGRA
5 default y
6 help
7 Enables tegra camera platform driver.
8 If unsure, say Y
diff --git a/drivers/video/tegra/Makefile.nvidia b/drivers/video/tegra/Makefile.nvidia
new file mode 100644
index 000000000..9b903d1ec
--- /dev/null
+++ b/drivers/video/tegra/Makefile.nvidia
@@ -0,0 +1 @@
obj-$(CONFIG_TEGRA_CAMERA_PLATFORM) += camera/
diff --git a/drivers/video/tegra/camera/Makefile.nvidia b/drivers/video/tegra/camera/Makefile.nvidia
new file mode 100644
index 000000000..242d41482
--- /dev/null
+++ b/drivers/video/tegra/camera/Makefile.nvidia
@@ -0,0 +1,7 @@
1GCOV_PROFILE := y
2ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host
3ccflags-y += -I$(srctree)/drivers/video/tegra/host
4ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra/
5
6obj-y += tegra_camera_platform.o
7obj-y += tegra_camera_dev_mfi.o