diff options
author | Bhanu Murthy V <bmurthyv@nvidia.com> | 2017-03-17 18:16:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-24 19:36:01 -0400 |
commit | 6407dc04bf9b78cf3d7857de8bc8de48ccd919da (patch) | |
tree | c61e6fda351b539ec94b74bd5f7c18e9ab935da1 /drivers | |
parent | 3ac9fe75fbe9cc17d17cee4f5b35c88b14ed606a (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')
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 @@ | |||
1 | obj-y += i2c/ | ||
2 | obj-y += media/ | ||
3 | obj-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 | |||
2 | config 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 @@ | |||
1 | obj-y += i2c/ | ||
2 | obj-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 | |||
2 | config 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 | |||
12 | config 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 | |||
21 | config 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 | |||
31 | config 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 | |||
40 | config 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 | |||
50 | config 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 | |||
60 | config 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 | |||
70 | config 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 | |||
79 | config 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 | |||
88 | config 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 @@ | |||
1 | subdir-ccflags-y += -Werror | ||
2 | |||
3 | ccflags-y += -I$(srctree)/drivers/media/platform/tegra | ||
4 | ccflags-y += -I$(srctree)/drivers/video/tegra/camera | ||
5 | |||
6 | obj-$(CONFIG_VIDEO_IMX185) += imx185.o | ||
7 | obj-$(CONFIG_VIDEO_IMX219) += imx219.o | ||
8 | obj-$(CONFIG_VIDEO_IMX274) += imx274.o | ||
9 | obj-$(CONFIG_VIDEO_LC898212) += lc898212.o | ||
10 | obj-$(CONFIG_VIDEO_OV5693) += ov5693.o | ||
11 | obj-$(CONFIG_VIDEO_OV9281) += ov9281.o | ||
12 | obj-$(CONFIG_VIDEO_OV10823) += ov10823.o | ||
13 | obj-$(CONFIG_VIDEO_OV23850) += ov23850.o | ||
14 | obj-$(CONFIG_I2C_IOEXPANDER_PCA9570) += pca9570.o | ||
15 | obj-$(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 | |||
2 | source "../nvidia/drivers/media/platform/tegra/mipical/Kconfig.nvidia" | ||
3 | |||
4 | config 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 | |||
12 | config 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 | |||
26 | config 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 | # |
7 | obj-y += camera/ | 7 | obj-$(CONFIG_VIDEO_CAMERA) += camera/ |
8 | obj-y += vi/ | 8 | obj-$(CONFIG_VIDEO_TEGRA_VI) += vi/ |
9 | obj-$(CONFIG_VIDEO_CAMERA) += regmap_util.o | 9 | obj-$(CONFIG_VIDEO_CAMERA) += regmap_util.o |
10 | obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += tpg/ | 10 | obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += tpg/ |
11 | |||
12 | obj-$(CONFIG_TEGRA_MIPI_CAL) += mipical/ | 11 | obj-$(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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | obj-y += vi/ | ||
3 | obj-y += csi/ | ||
4 | ccflags-y += -I../nvhost/drivers/video/tegra/host | ||
5 | ccflags-y += -Idrivers/video/tegra/host | ||
6 | ccflags-y += -Idrivers/video/tegra/camera | ||
7 | ccflags-y += -Idrivers/media/platform/tegra | ||
8 | ccflags-y += -Werror | ||
9 | |||
10 | obj-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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I$(srctree)/drivers/video/tegra/host | ||
4 | ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera | ||
5 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra | ||
6 | ccflags-y += -Werror | ||
7 | |||
8 | obj-y += vi/ | ||
9 | obj-y += csi/ | ||
10 | obj-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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I../nvhost/include | ||
4 | ccflags-y += -Idrivers/video/tegra/camera | ||
5 | ccflags-y += -Idrivers/media/platform/tegra | ||
6 | ccflags-y += -Werror | ||
7 | |||
8 | obj-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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera | ||
4 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra | ||
5 | ccflags-y += -I$(srctree)/../nvhost/include | ||
6 | ccflags-y += -Werror | ||
7 | |||
8 | obj-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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -Idrivers/video/tegra/host | ||
4 | ccflags-y += -Idrivers/video/tegra/camera | ||
5 | ccflags-y += -Idrivers/media/platform/tegra | ||
6 | ccflags-y += -Werror | ||
7 | |||
8 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) | ||
9 | ccflags-y += -I../t18x/drivers/video/tegra/host/ | ||
10 | ccflags-y += -I../t18x/include | ||
11 | ccflags-y += -I../nvhost/include | ||
12 | obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o vi4_fops.o | ||
13 | endif | ||
14 | |||
15 | obj-$(CONFIG_TEGRA_CAMERA_RTCPU) += capture.o | ||
16 | |||
17 | ifeq ($(CONFIG_ARCH_TEGRA_210_SOC),y) | ||
18 | ccflags-y += -I../nvhost/include | ||
19 | ccflags-y += -I../t18x/drivers/video/tegra/host/ | ||
20 | obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o | ||
21 | endif | ||
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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I$(srctree)/drivers/video/tegra/host | ||
4 | ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera | ||
5 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra | ||
6 | ccflags-y += -I$(srctree)/../nvhost/include | ||
7 | ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/ | ||
8 | ccflags-y += -I$(srctree)/../t18x/include | ||
9 | ccflags-y += -Werror | ||
10 | |||
11 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) | ||
12 | obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o vi4_fops.o | ||
13 | endif | ||
14 | |||
15 | obj-$(CONFIG_TEGRA_CAMERA_RTCPU) += capture.o | ||
16 | |||
17 | ifeq ($(CONFIG_ARCH_TEGRA_210_SOC),y) | ||
18 | ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/ | ||
19 | obj-y += mc_common.o core.o channel.o graph.o vi2_fops.o | ||
20 | endif | ||
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 @@ | |||
1 | GCOV_PROFILE := y | 1 | GCOV_PROFILE := y |
2 | ccflags-y += -I../nvhost/drivers/video/tegra/host | 2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host |
3 | ccflags-y += -Idrivers/media/platform/tegra | 3 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra |
4 | ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host | ||
4 | ccflags-y += -Werror | 5 | ccflags-y += -Werror |
5 | 6 | ||
6 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) | 7 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) |
7 | ccflags-y += -I../t18x/drivers/video/tegra/host | ||
8 | nvhost-vi-tpg-objs += tpg_t18x.o | 8 | nvhost-vi-tpg-objs += tpg_t18x.o |
9 | else | 9 | else |
10 | nvhost-vi-tpg-objs += tpg_t21x.o | 10 | nvhost-vi-tpg-objs += tpg_t21x.o |
11 | endif | 11 | endif |
12 | 12 | ||
13 | |||
14 | obj-$(CONFIG_VIDEO_TEGRA_VI_TPG) += nvhost-vi-tpg.o | 13 | obj-$(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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -Idrivers/video/tegra/camera | ||
4 | ccflags-y += -Idrivers/media/platform/tegra/ | ||
5 | ccflags-y += -Werror | ||
6 | |||
7 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) | ||
8 | ccflags-y += -I../t18x/drivers/video/tegra/host/ | ||
9 | endif | ||
10 | |||
11 | ifneq (,$(filter $(CONFIG_VIDEO_TEGRA_VI),y m)) | ||
12 | obj-y += vi_irq.o | ||
13 | obj-y += tegra_vi.o | ||
14 | endif | ||
15 | |||
16 | nvhost-vi-objs += vi.o | ||
17 | obj-$(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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I$(srctree)/drivers/video/tegra/host | ||
4 | ccflags-y += -I$(srctree)/../t18x/drivers/video/tegra/host/ | ||
5 | ccflags-y += -I$(srctree)/../nvidia/drivers/video/tegra/camera | ||
6 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra | ||
7 | ccflags-y += -Werror | ||
8 | |||
9 | nvhost-vi-objs += vi.o | ||
10 | nvhost-vi-objs += vi_irq.o | ||
11 | nvhost-vi-objs += tegra_vi.o | ||
12 | |||
13 | obj-$(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 | |||
2 | config 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 @@ | |||
1 | GCOV_PROFILE := y | ||
2 | ccflags-y += -I$(srctree)/../nvhost/drivers/video/tegra/host | ||
3 | ccflags-y += -I$(srctree)/drivers/video/tegra/host | ||
4 | ccflags-y += -I$(srctree)/../nvidia/drivers/media/platform/tegra/ | ||
5 | |||
6 | obj-y += tegra_camera_platform.o | ||
7 | obj-y += tegra_camera_dev_mfi.o | ||