config DRM_RCAR_DU
	tristate "DRM Support for R-Car Display Unit"
	depends on DRM && ARM
	select DRM_KMS_HELPER
	select DRM_KMS_CMA_HELPER
	select DRM_GEM_CMA_HELPER
	help
	  Choose this option if you have an R-Car chipset.
	  If M is selected the module will be called rcar-du-drm.

config DRM_RCAR_LVDS
	bool "R-Car DU LVDS Encoder Support"
	depends on DRM_RCAR_DU
	help
	  Enable support LVDS encoders.

	  If you want to access LVDS encoder, you select y.
	  If you don't want to access LVDS encoder, you select n.

config DRM_RCAR_DESKTOP_TURN_OFF
	bool "R-Car DU turn off desktop layer"
	depends on DRM_RCAR_DU && !DRM_RCAR_DU_CONNECT_VSP
	default n
	help
	  Choose this option if you want to turn off desktop layer.

	  If you want to turn off desktop layer, you select y.
	  If you want to turn on desktop layer, you select n.

config DRM_RCAR_ALPHA_BIT_ARGB1555
	int "R-Car DU alpha bit function of ARGB1555"
	depends on DRM_RCAR_DU && !DRM_RCAR_DU_CONNECT_VSP
	range 0 1
	default 0
	help
	  Choose this option if you select A bit function of ARGB1555.
	  If you set value to 0, pixel alpha blending is performed
	  when the value of A is 0.
	  If you set value to 1, pixel alpha blending is performed
	  when the value of A is 1.

config DRM_RCAR_DU_OVERLAY_CH
	hex "R-Car DU initial channel of overlay layers"
	range 0 0x3f
	default 0x3f
	depends on DRM_RCAR_DU && !DRM_RCAR_DU_CONNECT_VSP
	help
	  The value of configuration indicates initial channel of
	  overlay layers. Bit 0 shows overlay0 layer and it can
	  set up from overlay0 layer to overlay5 layer.
	  The initial channel of overlay layer is DU channel 0
	  when the value of bit is set as "0".
	  The initial channel of overlay layer is DU channel 1
	  when the value of bit is set as "1".

config DRM_RCAR_DU_CONNECT_VSP
	bool "R-Car DU VSP connection support"
	depends on DRM_RCAR_DU
	help
	  Enable support VSP connection.

	  If you want to connect VSP with DU, you select y.
	  If you don't want to connect VSP with DU, you select n.

config DRM_RCAR_DU0_USE_VSPDU_CH
	int "R-Car DU0 use VSPDU channel"
	depends on DRM_RCAR_DU && DRM_RCAR_DU_CONNECT_VSP
	default "0"
	help
	  Choose this option if DU0 select to use VSPDU channel.
	  If you set value to 0 or 2, DU0 is connected with VSPDU0.
	  If you set value to 1 or 3, DU0 is connected with VSPDU1.
	  If you set value to -1, DU0 is not connected with any VSPD.
	  When you set value to 2 or 3, VSPDU connection can be changed dynamically.

config DRM_RCAR_DU1_USE_VSPDU_CH
	int "R-Car DU1 use VSPDU channel"
	depends on DRM_RCAR_DU && DRM_RCAR_DU_CONNECT_VSP
	default "1"
	help
	  Choose this option if DU1 select to use VSPDU channel.
	  R8A7794 does not support VSPDU1.
	  If you set value to 0 or 2, DU1 is connected with VSPDU0.
	  If you set value to 1 or 3, DU1 is connected with VSPDU1.
	  If you set value to -1, DU1 is not connected with any VSPD.
	  When you set value to 2 or 3, VSPDU connection can be changed dynamically.

config DRM_RCAR_DU2_USE_VSPDU_CH
	int "R-Car DU2 use VSPDU channel"
	default "-1"
	depends on DRM_RCAR_DU && DRM_RCAR_DU_CONNECT_VSP
	help
	  Choose this option if DU2 select to use VSPDU channel.
	  Only R8A7790 can use DU2 connected by VSPDU1.
	  If you set value to 1 or 3, DU2 is connected with VSPDU1.
	  If you set value to -1, DU2 is not connected with any VSPD.
	  When you set value to 3 , VSPDU connection can be changed dynamically.

config DRM_RCAR_VSP_ALPHA_BIT_ARGB1555
	int "R-Car DU VSP alpha bit function of ARGB1555"
	depends on DRM_RCAR_DU && DRM_RCAR_DU_CONNECT_VSP
	range 0 1
	default 0
	help
	  Choose this option if you select A bit function of ARGB1555.
	  If you set value to 0, pixel alpha blending is performed
	  when the value of A is 0.
	  If you set value to 1, pixel alpha blending is performed
	  when the value of A is 1.
