From fc4230361f696730fb661214e45460a63223f21f Mon Sep 17 00:00:00 2001 From: dchvs Date: Thu, 28 Jan 2021 22:59:00 -0600 Subject: [PATCH] Add mt9m021 Driver to Kernel build configuration --- .../kernel-4.9/arch/arm64/configs/tegra_defconfig | 1 + kernel/nvidia/drivers/media/i2c/Kconfig | 13 +++++++++++++ kernel/nvidia/drivers/media/i2c/Makefile | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig create mode 100644 kernel/nvidia/drivers/media/i2c/Kconfig create mode 100644 kernel/nvidia/drivers/media/i2c/Makefile diff --git a/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig b/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig new file mode 100644 index 0000000..26837f6 --- /dev/null +++ b/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig @@ -0,0 +1 @@ +CONFIG_VIDEO_I2C_SPIRI_CAM=y diff --git a/kernel/nvidia/drivers/media/i2c/Kconfig b/kernel/nvidia/drivers/media/i2c/Kconfig new file mode 100644 index 0000000..0f051dc --- /dev/null +++ b/kernel/nvidia/drivers/media/i2c/Kconfig @@ -0,0 +1,13 @@ +if VIDEO_V4L2 + +menu "NVIDIA overlay Encoders, decoders, sensors and other helper chips" +visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST + + config VIDEO_I2C_SPIRI_CAM + tristate "Spiri mt9m021 camera sensor support" + depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API + ---help--- + This is a Video4Linux2 sensor-level driver for Spiri Cameras +endmenu +endif + diff --git a/kernel/nvidia/drivers/media/i2c/Makefile b/kernel/nvidia/drivers/media/i2c/Makefile new file mode 100644 index 0000000..34211ed --- /dev/null +++ b/kernel/nvidia/drivers/media/i2c/Makefile @@ -0,0 +1,5 @@ +subdir-ccflags-y += -Werror +ccflags-y += -I$(srctree)/drivers/media/platform/tegra +ccflags-y += -I$(srctree)/drivers/video/tegra/camera + +obj-$(CONFIG_VIDEO_I2C_SPIRI_CAM) += mt9m021.o