[v3,10/39] media: platform: place Renesas drivers on a separate dir
Commit Message
In order to cleanup the main platform media directory, move Renesas
driver to its own directory.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover.
See [PATCH v3 00/39] at: https://lore.kernel.org/all/cover.1647155572.git.mchehab@kernel.org/
MAINTAINERS | 18 +--
drivers/media/platform/Kconfig | 113 +----------------
drivers/media/platform/Makefile | 10 +-
drivers/media/platform/renesas/Kconfig | 119 ++++++++++++++++++
drivers/media/platform/renesas/Makefile | 15 +++
.../media/platform/{ => renesas}/rcar-fcp.c | 0
.../media/platform/{ => renesas}/rcar-isp.c | 0
.../platform/{ => renesas}/rcar-vin/Kconfig | 0
.../platform/{ => renesas}/rcar-vin/Makefile | 0
.../{ => renesas}/rcar-vin/rcar-core.c | 0
.../{ => renesas}/rcar-vin/rcar-csi2.c | 0
.../{ => renesas}/rcar-vin/rcar-dma.c | 0
.../{ => renesas}/rcar-vin/rcar-v4l2.c | 0
.../{ => renesas}/rcar-vin/rcar-vin.h | 0
.../media/platform/{ => renesas}/rcar_drif.c | 0
.../media/platform/{ => renesas}/rcar_fdp1.c | 0
.../media/platform/{ => renesas}/rcar_jpu.c | 0
.../platform/{ => renesas}/renesas-ceu.c | 0
drivers/media/platform/{ => renesas}/sh_vou.c | 0
.../platform/{ => renesas}/vsp1/Makefile | 0
.../media/platform/{ => renesas}/vsp1/vsp1.h | 0
.../platform/{ => renesas}/vsp1/vsp1_brx.c | 0
.../platform/{ => renesas}/vsp1/vsp1_brx.h | 0
.../platform/{ => renesas}/vsp1/vsp1_clu.c | 0
.../platform/{ => renesas}/vsp1/vsp1_clu.h | 0
.../platform/{ => renesas}/vsp1/vsp1_dl.c | 0
.../platform/{ => renesas}/vsp1/vsp1_dl.h | 0
.../platform/{ => renesas}/vsp1/vsp1_drm.c | 0
.../platform/{ => renesas}/vsp1/vsp1_drm.h | 0
.../platform/{ => renesas}/vsp1/vsp1_drv.c | 0
.../platform/{ => renesas}/vsp1/vsp1_entity.c | 0
.../platform/{ => renesas}/vsp1/vsp1_entity.h | 0
.../platform/{ => renesas}/vsp1/vsp1_hgo.c | 0
.../platform/{ => renesas}/vsp1/vsp1_hgo.h | 0
.../platform/{ => renesas}/vsp1/vsp1_hgt.c | 0
.../platform/{ => renesas}/vsp1/vsp1_hgt.h | 0
.../platform/{ => renesas}/vsp1/vsp1_histo.c | 0
.../platform/{ => renesas}/vsp1/vsp1_histo.h | 0
.../platform/{ => renesas}/vsp1/vsp1_hsit.c | 0
.../platform/{ => renesas}/vsp1/vsp1_hsit.h | 0
.../platform/{ => renesas}/vsp1/vsp1_lif.c | 0
.../platform/{ => renesas}/vsp1/vsp1_lif.h | 0
.../platform/{ => renesas}/vsp1/vsp1_lut.c | 0
.../platform/{ => renesas}/vsp1/vsp1_lut.h | 0
.../platform/{ => renesas}/vsp1/vsp1_pipe.c | 0
.../platform/{ => renesas}/vsp1/vsp1_pipe.h | 0
.../platform/{ => renesas}/vsp1/vsp1_regs.h | 0
.../platform/{ => renesas}/vsp1/vsp1_rpf.c | 0
.../platform/{ => renesas}/vsp1/vsp1_rwpf.c | 0
.../platform/{ => renesas}/vsp1/vsp1_rwpf.h | 0
.../platform/{ => renesas}/vsp1/vsp1_sru.c | 0
.../platform/{ => renesas}/vsp1/vsp1_sru.h | 0
.../platform/{ => renesas}/vsp1/vsp1_uds.c | 0
.../platform/{ => renesas}/vsp1/vsp1_uds.h | 0
.../platform/{ => renesas}/vsp1/vsp1_uif.c | 0
.../platform/{ => renesas}/vsp1/vsp1_uif.h | 0
.../platform/{ => renesas}/vsp1/vsp1_video.c | 0
.../platform/{ => renesas}/vsp1/vsp1_video.h | 0
.../platform/{ => renesas}/vsp1/vsp1_wpf.c | 0
59 files changed, 146 insertions(+), 129 deletions(-)
create mode 100644 drivers/media/platform/renesas/Kconfig
create mode 100644 drivers/media/platform/renesas/Makefile
rename drivers/media/platform/{ => renesas}/rcar-fcp.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-isp.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/Kconfig (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/Makefile (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/rcar-core.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/rcar-csi2.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/rcar-dma.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/rcar-v4l2.c (100%)
rename drivers/media/platform/{ => renesas}/rcar-vin/rcar-vin.h (100%)
rename drivers/media/platform/{ => renesas}/rcar_drif.c (100%)
rename drivers/media/platform/{ => renesas}/rcar_fdp1.c (100%)
rename drivers/media/platform/{ => renesas}/rcar_jpu.c (100%)
rename drivers/media/platform/{ => renesas}/renesas-ceu.c (100%)
rename drivers/media/platform/{ => renesas}/sh_vou.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/Makefile (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_brx.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_brx.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_clu.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_clu.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_dl.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_dl.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_drm.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_drm.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_drv.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_entity.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_entity.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hgo.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hgo.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hgt.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hgt.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_histo.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_histo.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hsit.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_hsit.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_lif.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_lif.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_lut.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_lut.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_pipe.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_pipe.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_regs.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_rpf.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_rwpf.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_rwpf.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_sru.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_sru.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_uds.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_uds.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_uif.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_uif.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_video.c (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_video.h (100%)
rename drivers/media/platform/{ => renesas}/vsp1/vsp1_wpf.c (100%)
Comments
Em Sun, 13 Mar 2022 14:34:39 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu:
> Hi Mauro,
>
> Thank you for the patch.
>
> On Sun, Mar 13, 2022 at 08:21:19AM +0100, Mauro Carvalho Chehab wrote:
> > In order to cleanup the main platform media directory, move Renesas
> > driver to its own directory.
> >
...
> > +config VIDEO_RENESAS_FCP
> > + tristate "Renesas Frame Compression Processor"
> > + depends on V4L_MEM2MEM_DRIVERS
> > + depends on ARCH_RENESAS || COMPILE_TEST
> > + depends on OF
> > + help
> > + This is a driver for the Renesas Frame Compression Processor (FCP).
> > + The FCP is a companion module of video processing modules in the
> > + Renesas R-Car Gen3 and RZ/G2 SoCs. It handles memory access for
> > + the codec, VSP and FDP modules.
> > +
> > + To compile this driver as a module, choose M here: the module
> > + will be called rcar-fcp.
>
> This should go before FDP1.
I'll do the reorder on the next version as proposed by you.
FYI, I opted to not sort the manufacturer's Kconfig files on this series
by purpose. After those patch series, the per-vendor Kconfig menus
have only a few drivers (up to ~10 config symbols). That makes it
a lot more manageable than what we had before. So, from my side, I don't
have any special requirements about Kconfig order.
On other words, the order inside each vendor-specific Kconfig
file should be a decision taken by the driver maintainers, which should
decide what fits better for them, considering that:
- the per-vendor driver order may not be in alphabetical order, as
it may make sense to group drivers per type, platform and/or by
its dependency chain;
- It is now easy to sort the per-vendor entries alphabetically,
either per config title or per Kconfig symbol.
- Now that the main sort criteria is per-vendor, IMO it makes sense to
have a per-vendor symbol space, e. g., instead of having:
config VIDEO_RCAR_CSI2
config VIDEO_RCAR_VIN
config VIDEO_RCAR_ISP
config VIDEO_RENESAS_CEU
config VIDEO_SH_VOU
config VIDEO_RENESAS_FCP
config VIDEO_RENESAS_FDP1
config VIDEO_RENESAS_JPU
config VIDEO_RENESAS_VSP1
config VIDEO_RCAR_DRIF
It could make sense to have all of them prepended with VIDEO_RENESAS:
config VIDEO_RENESAS_CAR_CSI2
config VIDEO_RENESAS_CAR_VIN
config VIDEO_RENESAS_CAR_ISP
config VIDEO_RENESAS_CEU
config VIDEO_RENESAS_SH_VOU
config VIDEO_RENESAS_FCP
config VIDEO_RENESAS_FDP1
config VIDEO_RENESAS_JPU
config VIDEO_RENESAS_VSP1
config VIDEO_RENESAS_CAR_DRIF
or some other variant of that, to produce smaller names, like using the
prefix adopted at the stock market (RNE, I guess):
config VIDEO_RNE_CAR_CSI2
config VIDEO_RNE_CAR_VIN
config VIDEO_RNE_CAR_ISP
config VIDEO_RNE_CEU
config VIDEO_RNE_SH_VOU
config VIDEO_RNE_FCP
config VIDEO_RNE_FDP1
config VIDEO_RNE_JPU
config VIDEO_RNE_VSP1
config VIDEO_RNE_CAR_DRIF
With a change like that, a per Kconfig-symbol alphabetic order will change.
>
> The FCP isn't a memory-to-memory device by the way, it's an ancillary
> device that handles compression of data transmitted on the bus between a
> DMA engine and memory. It's fine keeping it here, as it's related to the
> memory-to-memory devices.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Thanks,
Mauro
@@ -10322,7 +10322,7 @@ M: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
L: linux-media@vger.kernel.org
L: linux-renesas-soc@vger.kernel.org
S: Maintained
-F: drivers/media/platform/rcar_jpu.c
+F: drivers/media/platform/renesas/rcar_jpu.c
JSM Neo PCI based serial card
L: linux-serial@vger.kernel.org
@@ -11973,7 +11973,7 @@ L: linux-renesas-soc@vger.kernel.org
S: Supported
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,ceu.yaml
-F: drivers/media/platform/renesas-ceu.c
+F: drivers/media/platform/renesas/renesas-ceu.c
F: include/media/drv-intf/renesas-ceu.h
MEDIA DRIVERS FOR RENESAS - DRIF
@@ -11983,7 +11983,7 @@ L: linux-renesas-soc@vger.kernel.org
S: Supported
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,drif.yaml
-F: drivers/media/platform/rcar_drif.c
+F: drivers/media/platform/renesas/rcar_drif.c
MEDIA DRIVERS FOR RENESAS - FCP
M: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
@@ -11992,7 +11992,7 @@ L: linux-renesas-soc@vger.kernel.org
S: Supported
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,fcp.yaml
-F: drivers/media/platform/rcar-fcp.c
+F: drivers/media/platform/renesas/rcar-fcp.c
F: include/media/rcar-fcp.h
MEDIA DRIVERS FOR RENESAS - FDP1
@@ -12002,7 +12002,7 @@ L: linux-renesas-soc@vger.kernel.org
S: Supported
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,fdp1.yaml
-F: drivers/media/platform/rcar_fdp1.c
+F: drivers/media/platform/renesas/rcar_fdp1.c
MEDIA DRIVERS FOR RENESAS - VIN
M: Niklas Söderlund <niklas.soderlund@ragnatech.se>
@@ -12013,8 +12013,8 @@ T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,csi2.yaml
F: Documentation/devicetree/bindings/media/renesas,isp.yaml
F: Documentation/devicetree/bindings/media/renesas,vin.yaml
-F: drivers/media/platform/rcar-isp.c
-F: drivers/media/platform/rcar-vin/
+F: drivers/media/platform/renesas/rcar-isp.c
+F: drivers/media/platform/renesas/rcar-vin/
MEDIA DRIVERS FOR RENESAS - VSP1
M: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
@@ -12024,7 +12024,7 @@ L: linux-renesas-soc@vger.kernel.org
S: Supported
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/renesas,vsp1.yaml
-F: drivers/media/platform/vsp1/
+F: drivers/media/platform/renesas/vsp1/
MEDIA DRIVERS FOR ST STV0910 DEMODULATOR ICs
L: linux-media@vger.kernel.org
@@ -17536,7 +17536,7 @@ F: include/media/i2c/rj54n1cb0c.h
SH_VOU V4L2 OUTPUT DRIVER
L: linux-media@vger.kernel.org
S: Orphan
-F: drivers/media/platform/sh_vou.c
+F: drivers/media/platform/renesas/sh_vou.c
F: include/media/drv-intf/sh_vou.h
SI2157 MEDIA DRIVER
@@ -31,6 +31,8 @@ config V4L_MEM2MEM_DRIVERS
source "drivers/media/platform/nxp/Kconfig"
+source "drivers/media/platform/renesas/Kconfig"
+
# V4L platform drivers
source "drivers/media/platform/marvell-ccic/Kconfig"
@@ -45,15 +47,6 @@ source "drivers/media/platform/omap/Kconfig"
source "drivers/media/platform/aspeed/Kconfig"
-config VIDEO_SH_VOU
- tristate "SuperH VOU video output driver"
- depends on V4L_PLATFORM_DRIVERS
- depends on VIDEO_DEV && I2C
- depends on ARCH_SHMOBILE || COMPILE_TEST
- select VIDEOBUF2_DMA_CONTIG
- help
- Support for the Video Output Unit (VOU) on SuperH SoCs.
-
config VIDEO_MUX
tristate "Video Multiplexer"
depends on V4L_PLATFORM_DRIVERS
@@ -129,16 +122,6 @@ config VIDEO_STM32_DCMI
To compile this driver as a module, choose M here: the module
will be called stm32-dcmi.
-config VIDEO_RENESAS_CEU
- tristate "Renesas Capture Engine Unit (CEU) driver"
- depends on V4L_PLATFORM_DRIVERS
- depends on VIDEO_DEV && VIDEO_V4L2
- depends on ARCH_SHMOBILE || ARCH_R7S72100 || COMPILE_TEST
- select VIDEOBUF2_DMA_CONTIG
- select V4L2_FWNODE
- help
- This is a v4l2 driver for the Renesas CEU Interface
-
config VIDEO_ROCKCHIP_ISP1
tristate "Rockchip Image Signal Processing v1 Unit driver"
depends on V4L_PLATFORM_DRIVERS
@@ -161,7 +144,6 @@ config VIDEO_ROCKCHIP_ISP1
source "drivers/media/platform/exynos4-is/Kconfig"
source "drivers/media/platform/am437x/Kconfig"
source "drivers/media/platform/xilinx/Kconfig"
-source "drivers/media/platform/rcar-vin/Kconfig"
source "drivers/media/platform/atmel/Kconfig"
source "drivers/media/platform/sunxi/Kconfig"
@@ -191,22 +173,6 @@ config VIDEO_TI_CAL_MC
default. Note that this behavior can be overridden via
module parameter 'mc_api'.
-config VIDEO_RCAR_ISP
- tristate "R-Car Image Signal Processor (ISP)"
- depends on V4L_PLATFORM_DRIVERS
- depends on VIDEO_V4L2 && OF
- depends on ARCH_RENESAS || COMPILE_TEST
- select MEDIA_CONTROLLER
- select VIDEO_V4L2_SUBDEV_API
- select RESET_CONTROLLER
- select V4L2_FWNODE
- help
- Support for Renesas R-Car Image Signal Processor (ISP).
- Enable this to support the Renesas R-Car Image Signal
- Processor (ISP).
-
- To compile this driver as a module, choose M here: the
- module will be called rcar-isp.
# Mem2mem drivers
@@ -477,64 +443,6 @@ config VIDEO_STM32_DMA2D
The STM32 DMA2D is a memory-to-memory engine for pixel conversion
and specialized DMA dedicated to image manipulation.
-config VIDEO_RENESAS_FDP1
- tristate "Renesas Fine Display Processor"
- depends on V4L_MEM2MEM_DRIVERS
- depends on VIDEO_DEV && VIDEO_V4L2
- depends on ARCH_RENESAS || COMPILE_TEST
- depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP
- select VIDEOBUF2_DMA_CONTIG
- select V4L2_MEM2MEM_DEV
- help
- This is a V4L2 driver for the Renesas Fine Display Processor
- providing colour space conversion, and de-interlacing features.
-
- To compile this driver as a module, choose M here: the module
- will be called rcar_fdp1.
-
-config VIDEO_RENESAS_JPU
- tristate "Renesas JPEG Processing Unit"
- depends on V4L_MEM2MEM_DRIVERS
- depends on VIDEO_DEV && VIDEO_V4L2
- depends on ARCH_RENESAS || COMPILE_TEST
- select VIDEOBUF2_DMA_CONTIG
- select V4L2_MEM2MEM_DEV
- help
- This is a V4L2 driver for the Renesas JPEG Processing Unit.
-
- To compile this driver as a module, choose M here: the module
- will be called rcar_jpu.
-
-config VIDEO_RENESAS_FCP
- tristate "Renesas Frame Compression Processor"
- depends on V4L_MEM2MEM_DRIVERS
- depends on ARCH_RENESAS || COMPILE_TEST
- depends on OF
- help
- This is a driver for the Renesas Frame Compression Processor (FCP).
- The FCP is a companion module of video processing modules in the
- Renesas R-Car Gen3 and RZ/G2 SoCs. It handles memory access for
- the codec, VSP and FDP modules.
-
- To compile this driver as a module, choose M here: the module
- will be called rcar-fcp.
-
-config VIDEO_RENESAS_VSP1
- tristate "Renesas VSP1 Video Processing Engine"
- depends on V4L_MEM2MEM_DRIVERS
- depends on VIDEO_V4L2
- depends on ARCH_RENESAS || COMPILE_TEST
- depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP
- select MEDIA_CONTROLLER
- select VIDEO_V4L2_SUBDEV_API
- select VIDEOBUF2_DMA_CONTIG
- select VIDEOBUF2_VMALLOC
- help
- This is a V4L2 driver for the Renesas VSP1 video processing engine.
-
- To compile this driver as a module, choose M here: the module
- will be called vsp1.
-
config VIDEO_ROCKCHIP_RGA
tristate "Rockchip Raster 2d Graphic Acceleration Unit"
depends on V4L_MEM2MEM_DRIVERS
@@ -664,20 +572,3 @@ config VIDEO_TI_CSC
# DVB platform drivers
source "drivers/media/platform/sti/c8sectpfe/Kconfig"
-
-# SDR platform drivers
-config VIDEO_RCAR_DRIF
- tristate "Renesas Digital Radio Interface (DRIF)"
- depends on SDR_PLATFORM_DRIVERS
- depends on VIDEO_V4L2
- depends on ARCH_RENESAS || COMPILE_TEST
- select VIDEOBUF2_VMALLOC
- select V4L2_ASYNC
- help
- Say Y if you want to enable R-Car Gen3 DRIF support. DRIF is Digital
- Radio Interface that interfaces with an RF front end chip. It is a
- receiver of digital data which uses DMA to transfer received data to
- a configured location for an application to use.
-
- To compile this driver as a module, choose M here; the module
- will be called rcar_drif.
@@ -27,7 +27,7 @@ obj-y += omap/
obj-y += omap3isp/
obj-y += qcom/camss/
obj-y += qcom/venus/
-obj-y += rcar-vin/
+obj-y += renesas/
obj-y += rockchip/rga/
obj-y += rockchip/rkisp1/
obj-y += s3c-camif/
@@ -43,7 +43,6 @@ obj-y += sunxi/
obj-y += tegra/vde/
obj-y += ti-vpe/
obj-y += via/
-obj-y += vsp1/
obj-y += xilinx/
# Please place here only ancillary drivers that aren't SoC-specific
@@ -51,10 +50,3 @@ obj-y += xilinx/
# (e. g. LC_ALL=C sort Makefile)
obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o
obj-$(CONFIG_VIDEO_MUX) += video-mux.o
-obj-$(CONFIG_VIDEO_RCAR_DRIF) += rcar_drif.o
-obj-$(CONFIG_VIDEO_RCAR_ISP) += rcar-isp.o
-obj-$(CONFIG_VIDEO_RENESAS_CEU) += renesas-ceu.o
-obj-$(CONFIG_VIDEO_RENESAS_FCP) += rcar-fcp.o
-obj-$(CONFIG_VIDEO_RENESAS_FDP1) += rcar_fdp1.o
-obj-$(CONFIG_VIDEO_RENESAS_JPU) += rcar_jpu.o
-obj-$(CONFIG_VIDEO_SH_VOU) += sh_vou.o
new file mode 100644
@@ -0,0 +1,119 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+# V4L drivers
+
+config VIDEO_RENESAS_CEU
+ tristate "Renesas Capture Engine Unit (CEU) driver"
+ depends on V4L_PLATFORM_DRIVERS
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on ARCH_SHMOBILE || ARCH_R7S72100 || COMPILE_TEST
+ select VIDEOBUF2_DMA_CONTIG
+ select V4L2_FWNODE
+ help
+ This is a v4l2 driver for the Renesas CEU Interface
+
+config VIDEO_RCAR_ISP
+ tristate "R-Car Image Signal Processor (ISP)"
+ depends on V4L_PLATFORM_DRIVERS
+ depends on VIDEO_V4L2 && OF
+ depends on ARCH_RENESAS || COMPILE_TEST
+ select MEDIA_CONTROLLER
+ select VIDEO_V4L2_SUBDEV_API
+ select RESET_CONTROLLER
+ select V4L2_FWNODE
+ help
+ Support for Renesas R-Car Image Signal Processor (ISP).
+ Enable this to support the Renesas R-Car Image Signal
+ Processor (ISP).
+
+ To compile this driver as a module, choose M here: the
+ module will be called rcar-isp.
+
+config VIDEO_SH_VOU
+ tristate "SuperH VOU video output driver"
+ depends on V4L_PLATFORM_DRIVERS
+ depends on VIDEO_DEV && I2C
+ depends on ARCH_SHMOBILE || COMPILE_TEST
+ select VIDEOBUF2_DMA_CONTIG
+ help
+ Support for the Video Output Unit (VOU) on SuperH SoCs.
+
+source "drivers/media/platform/renesas/rcar-vin/Kconfig"
+
+# Mem2mem drivers
+
+config VIDEO_RENESAS_FDP1
+ tristate "Renesas Fine Display Processor"
+ depends on V4L_MEM2MEM_DRIVERS
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on ARCH_RENESAS || COMPILE_TEST
+ depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP
+ select VIDEOBUF2_DMA_CONTIG
+ select V4L2_MEM2MEM_DEV
+ help
+ This is a V4L2 driver for the Renesas Fine Display Processor
+ providing colour space conversion, and de-interlacing features.
+
+ To compile this driver as a module, choose M here: the module
+ will be called rcar_fdp1.
+
+config VIDEO_RENESAS_JPU
+ tristate "Renesas JPEG Processing Unit"
+ depends on V4L_MEM2MEM_DRIVERS
+ depends on VIDEO_DEV && VIDEO_V4L2
+ depends on ARCH_RENESAS || COMPILE_TEST
+ select VIDEOBUF2_DMA_CONTIG
+ select V4L2_MEM2MEM_DEV
+ help
+ This is a V4L2 driver for the Renesas JPEG Processing Unit.
+
+ To compile this driver as a module, choose M here: the module
+ will be called rcar_jpu.
+
+config VIDEO_RENESAS_FCP
+ tristate "Renesas Frame Compression Processor"
+ depends on V4L_MEM2MEM_DRIVERS
+ depends on ARCH_RENESAS || COMPILE_TEST
+ depends on OF
+ help
+ This is a driver for the Renesas Frame Compression Processor (FCP).
+ The FCP is a companion module of video processing modules in the
+ Renesas R-Car Gen3 and RZ/G2 SoCs. It handles memory access for
+ the codec, VSP and FDP modules.
+
+ To compile this driver as a module, choose M here: the module
+ will be called rcar-fcp.
+
+config VIDEO_RENESAS_VSP1
+ tristate "Renesas VSP1 Video Processing Engine"
+ depends on V4L_MEM2MEM_DRIVERS
+ depends on VIDEO_V4L2
+ depends on ARCH_RENESAS || COMPILE_TEST
+ depends on (!ARM64 && !VIDEO_RENESAS_FCP) || VIDEO_RENESAS_FCP
+ select MEDIA_CONTROLLER
+ select VIDEO_V4L2_SUBDEV_API
+ select VIDEOBUF2_DMA_CONTIG
+ select VIDEOBUF2_VMALLOC
+ help
+ This is a V4L2 driver for the Renesas VSP1 video processing engine.
+
+ To compile this driver as a module, choose M here: the module
+ will be called vsp1.
+
+# SDR drivers
+
+config VIDEO_RCAR_DRIF
+ tristate "Renesas Digital Radio Interface (DRIF)"
+ depends on SDR_PLATFORM_DRIVERS
+ depends on VIDEO_V4L2
+ depends on ARCH_RENESAS || COMPILE_TEST
+ select VIDEOBUF2_VMALLOC
+ select V4L2_ASYNC
+ help
+ Say Y if you want to enable R-Car Gen3 DRIF support. DRIF is Digital
+ Radio Interface that interfaces with an RF front end chip. It is a
+ receiver of digital data which uses DMA to transfer received data to
+ a configured location for an application to use.
+
+ To compile this driver as a module, choose M here; the module
+ will be called rcar_drif.
new file mode 100644
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for the Renesas capture/playback device drivers.
+#
+
+obj-y += rcar-vin/
+obj-y += vsp1/
+
+obj-$(CONFIG_VIDEO_RCAR_DRIF) += rcar_drif.o
+obj-$(CONFIG_VIDEO_RCAR_ISP) += rcar-isp.o
+obj-$(CONFIG_VIDEO_RENESAS_CEU) += renesas-ceu.o
+obj-$(CONFIG_VIDEO_RENESAS_FCP) += rcar-fcp.o
+obj-$(CONFIG_VIDEO_RENESAS_FDP1) += rcar_fdp1.o
+obj-$(CONFIG_VIDEO_RENESAS_JPU) += rcar_jpu.o
+obj-$(CONFIG_VIDEO_SH_VOU) += sh_vou.o
similarity index 100%
rename from drivers/media/platform/rcar-fcp.c
rename to drivers/media/platform/renesas/rcar-fcp.c
similarity index 100%
rename from drivers/media/platform/rcar-isp.c
rename to drivers/media/platform/renesas/rcar-isp.c
similarity index 100%
rename from drivers/media/platform/rcar-vin/Kconfig
rename to drivers/media/platform/renesas/rcar-vin/Kconfig
similarity index 100%
rename from drivers/media/platform/rcar-vin/Makefile
rename to drivers/media/platform/renesas/rcar-vin/Makefile
similarity index 100%
rename from drivers/media/platform/rcar-vin/rcar-core.c
rename to drivers/media/platform/renesas/rcar-vin/rcar-core.c
similarity index 100%
rename from drivers/media/platform/rcar-vin/rcar-csi2.c
rename to drivers/media/platform/renesas/rcar-vin/rcar-csi2.c
similarity index 100%
rename from drivers/media/platform/rcar-vin/rcar-dma.c
rename to drivers/media/platform/renesas/rcar-vin/rcar-dma.c
similarity index 100%
rename from drivers/media/platform/rcar-vin/rcar-v4l2.c
rename to drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c
similarity index 100%
rename from drivers/media/platform/rcar-vin/rcar-vin.h
rename to drivers/media/platform/renesas/rcar-vin/rcar-vin.h
similarity index 100%
rename from drivers/media/platform/rcar_drif.c
rename to drivers/media/platform/renesas/rcar_drif.c
similarity index 100%
rename from drivers/media/platform/rcar_fdp1.c
rename to drivers/media/platform/renesas/rcar_fdp1.c
similarity index 100%
rename from drivers/media/platform/rcar_jpu.c
rename to drivers/media/platform/renesas/rcar_jpu.c
similarity index 100%
rename from drivers/media/platform/renesas-ceu.c
rename to drivers/media/platform/renesas/renesas-ceu.c
similarity index 100%
rename from drivers/media/platform/sh_vou.c
rename to drivers/media/platform/renesas/sh_vou.c
similarity index 100%
rename from drivers/media/platform/vsp1/Makefile
rename to drivers/media/platform/renesas/vsp1/Makefile
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1.h
rename to drivers/media/platform/renesas/vsp1/vsp1.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_brx.c
rename to drivers/media/platform/renesas/vsp1/vsp1_brx.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_brx.h
rename to drivers/media/platform/renesas/vsp1/vsp1_brx.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_clu.c
rename to drivers/media/platform/renesas/vsp1/vsp1_clu.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_clu.h
rename to drivers/media/platform/renesas/vsp1/vsp1_clu.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_dl.c
rename to drivers/media/platform/renesas/vsp1/vsp1_dl.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_dl.h
rename to drivers/media/platform/renesas/vsp1/vsp1_dl.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_drm.c
rename to drivers/media/platform/renesas/vsp1/vsp1_drm.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_drm.h
rename to drivers/media/platform/renesas/vsp1/vsp1_drm.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_drv.c
rename to drivers/media/platform/renesas/vsp1/vsp1_drv.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_entity.c
rename to drivers/media/platform/renesas/vsp1/vsp1_entity.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_entity.h
rename to drivers/media/platform/renesas/vsp1/vsp1_entity.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hgo.c
rename to drivers/media/platform/renesas/vsp1/vsp1_hgo.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hgo.h
rename to drivers/media/platform/renesas/vsp1/vsp1_hgo.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hgt.c
rename to drivers/media/platform/renesas/vsp1/vsp1_hgt.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hgt.h
rename to drivers/media/platform/renesas/vsp1/vsp1_hgt.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_histo.c
rename to drivers/media/platform/renesas/vsp1/vsp1_histo.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_histo.h
rename to drivers/media/platform/renesas/vsp1/vsp1_histo.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hsit.c
rename to drivers/media/platform/renesas/vsp1/vsp1_hsit.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_hsit.h
rename to drivers/media/platform/renesas/vsp1/vsp1_hsit.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_lif.c
rename to drivers/media/platform/renesas/vsp1/vsp1_lif.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_lif.h
rename to drivers/media/platform/renesas/vsp1/vsp1_lif.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_lut.c
rename to drivers/media/platform/renesas/vsp1/vsp1_lut.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_lut.h
rename to drivers/media/platform/renesas/vsp1/vsp1_lut.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_pipe.c
rename to drivers/media/platform/renesas/vsp1/vsp1_pipe.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_pipe.h
rename to drivers/media/platform/renesas/vsp1/vsp1_pipe.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_regs.h
rename to drivers/media/platform/renesas/vsp1/vsp1_regs.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_rpf.c
rename to drivers/media/platform/renesas/vsp1/vsp1_rpf.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_rwpf.c
rename to drivers/media/platform/renesas/vsp1/vsp1_rwpf.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_rwpf.h
rename to drivers/media/platform/renesas/vsp1/vsp1_rwpf.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_sru.c
rename to drivers/media/platform/renesas/vsp1/vsp1_sru.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_sru.h
rename to drivers/media/platform/renesas/vsp1/vsp1_sru.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_uds.c
rename to drivers/media/platform/renesas/vsp1/vsp1_uds.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_uds.h
rename to drivers/media/platform/renesas/vsp1/vsp1_uds.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_uif.c
rename to drivers/media/platform/renesas/vsp1/vsp1_uif.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_uif.h
rename to drivers/media/platform/renesas/vsp1/vsp1_uif.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_video.c
rename to drivers/media/platform/renesas/vsp1/vsp1_video.c
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_video.h
rename to drivers/media/platform/renesas/vsp1/vsp1_video.h
similarity index 100%
rename from drivers/media/platform/vsp1/vsp1_wpf.c
rename to drivers/media/platform/renesas/vsp1/vsp1_wpf.c