#
# hobot mipi configuration
#

config HOBOT_MIPI_CSI_DRV
    tristate "Hobot MIPI CSI Driver"
	depends on HOBOT_MIPI_CSI
	help
      Driver for the HOBOT VIN MIPI CSI


config HOBOT_MIPI_HOST
    bool "Hobot MIPI CSI Host Support"
	depends on HOBOT_MIPI_CSI_DRV
        default y
	help
      support for the HOBOT MIPI CSI Host

config HOBOT_MIPI_HOST_MAX_NUM
    int "Hobot MIPI host max port num"
	depends on HOBOT_MIPI_HOST
	default 4 if HOBOT_XJ3 || HOBOT_J5 || HOBOT_FPGA_J5 || ARCH_ZYNQMP
	default 3 if HOBOT_S100 || HOBOT_FPGA_S100
	default 6 if HOBOT_S600 || HOBOT_FPGA_S600
	default 1 if HOBOT_XJ2
	help
      Max num of mipi host devices

config HOBOT_MIPI_HOST_SNRCLK
    bool "Hobot MIPI host sensor mclk support"
	depends on HOBOT_MIPI_HOST
	default n
	help
      Enable mipi host support mclk output for sensor


config HOBOT_MIPI_DEV
    bool "Hobot MIPI CSI Device Support"
	depends on HOBOT_MIPI_CSI_DRV
        default y
	help
      support for the HOBOT MIPI CSI Device

config HOBOT_MIPI_DEV_MAX_NUM
    int "Hobot MIPI dev max port num"
	depends on HOBOT_MIPI_DEV
	default 2 if HOBOT_J5 || HOBOT_FPGA_J5 || ARCH_ZYNQMP
	default 2 if HOBOT_S600 || HOBOT_FPGA_S600 || HOBOT_S100 || HOBOT_FPGA_S100
	default 1 if HOBOT_XJ2 || HOBOT_XJ3
	help
      Max num of mipi dev devices

config HOBOT_MIPI_CSI_DEV
    tristate "Hobot MIPI CSI DEV wrap Driver"
	depends on HOBOT_MIPI_DEV
	depends on HOBOT_DRM_MIPI_CSI_TX
	help
      Driver for the HOBOT VIN MIPI CSI DEV TX WRAP

config HOBOT_MIPI_PHY
    tristate "Hobot MIPI DPHY Driver"
	depends on HOBOT_MIPI_CSI || (HOBOT_XJ3 && HOBOT_IAR)
	help
      Driver for the HOBOT MIPI DPHY

config HOBOT_MIPI_REG_OPERATE
    bool "ENABLE REG IOCTL OPERATE"
    depends on HOBOT_MIPI_CSI
    default n
	help
      enable mipi devices' reg ioctl opreate

config HOBOT_MIPI_DEBUG
	tristate "Hobot MIPI CSI DEBUG Driver"
	depends on HOBOT_MIPI_CSI
	default n
	help
      Driver for the HOBOT MIPI CSI debug

config HOBOT_MIPI_V4L_CSI
	tristate "D-robotics CSI (V4L) support"
	depends on VIDEO_DEV && OF
	select V4L2_FWNODE
	select HOBOT_VID_V4L2
	select VIDEO_V4L2_SUBDEV_API
	help
	This is a driver that is complying with Video for Linux 2 framework
	for Synopsys's MIPI CSI v2 integrated processor. It contains the key
	configuration and executing logic for MIPI CSI v2 controller and
	dphy in the hardware.
