menu "Realtek Video Driver"

config RTS_CAMERA_SUPPORT
	bool
	select MFD_CORE

config RTS_CAMERA
	tristate "RTS Camera Subsystem"
	select RTS_CAMERA_SUPPORT
	help
	  Rts Soc Camera subsystem.

if RTS_CAMERA

config RTS_ISP_MEM
	tristate "Video DDR Manager"
	help
	  This is a memory driver for Realtek Soc Camera.

config RTS_CAM_LOCK
	tristate "Video Lock"
	help
	  This provides a first-in-first-out mutual exclusion mechanism.
	  Its implementation is based on completion.
	  H264 and Mjpeg enoder can use it.
	  You can get lock info by sysfs.

config RTS_VIDEO_SOC
	tristate "Video SoC Driver"
	select RTS_ISP_MEM
	help
	  This is a camera driver for Realtek Soc Camera.

choice
	prompt "Video ISP Module"

config RTS_VIDEO_MCU
	tristate "ISP for RTS3903/RTS3913"
	select RTS_VIDEO_SOC
	select FW_LOADER
	help
	  This is a camera driver for Realtek RTS3903/RTS3913 Soc Camera.

config RTS_VIDEO_ISP
	tristate "ISP for RTS3915"
	select RTS_VIDEO_SOC
	help
	  This is a camera driver for Realtek RTS3915 Soc Camera.

endchoice

if RTS_VIDEO_MCU
config FW_IN_KERNEL_HEADER
	bool "Include in-kernel firmware in kernel header file"
	default n
	help
	  Enabling this option will build required firmware into the
	  kernel directly.
	  Say 'N' and let firmware be loaded from userspace.
endif

choice
	prompt "Video H26x Module"

config RTS_HX280_ENC
	tristate "H264 Encoder for RTS3903"
	select RTS_ISP_MEM
	select RTS_CAM_LOCK
	help
	  This is a H264 Encode device driver for Realtek RTS3903.

config RTS_W420_ENC
	tristate "H265 Encoder for RTS3913"
	select RTS_ISP_MEM
	help
	  This is a H265 Encode device driver for Realtek RTS3913.

config RTS_W521_ENC
	tristate "H265&H264 Encoder for RTS3915"
	select RTS_ISP_MEM
	help
	  This is a H265/H264 Encode device driver for Realtek RTS3915.

config RTS_W521MP_ENC
	tristate "H265&H264 Encoder for RTS3915MP"
	select RTS_ISP_MEM
	help
	  This is a H265/H264 Encode device driver for Realtek RTS3915MP.
endchoice

choice
	prompt "Video MJPEG Module"

config RTS_MJPEG_ENC
	tristate "MJPEG Encoder for RTS3903/RTS3913"
	select RTS_ISP_MEM
	select RTS_CAM_LOCK
	help
	  This is a Realtek Mjpeg Encoder device driver.

config RTS_MJPEG_CODEC
	tristate "MJPEG Codec for RTS3915"
	select RTS_ISP_MEM
	help
	  This is a MJPEG Codec device driver for Realtek RTS3915.

endchoice

config RTS_OSD2
	tristate "Video OSD2 Module"
	select RTS_CAM_LOCK
	help
	  This is a Realtek OSD2 device driver.

config RTS_RTSTREAM_INFO
	tristate "Rtstream Info Driver"
	help
	  This driver help rtstream.

endif

endmenu
