rockchip: video: Kconfig: Add Kconfig for rockchip video driver
authoreric.gao@rock-chips.com <eric.gao@rock-chips.com>
Mon, 17 Apr 2017 14:24:23 +0000 (22:24 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
1. add Kconfig for rockchip video driver, so that video port can be
selected as needed.
2. move VIDEO_ROCKCHIP option to new Kconfig for concision.

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Drop indenting in Kconfig:
Signed-off-by: Simon Glass <sjg@chromium.org>
configs/chromebit_mickey_defconfig
configs/chromebook_jerry_defconfig
configs/chromebook_minnie_defconfig
configs/firefly-rk3288_defconfig
configs/miqi-rk3288_defconfig
configs/rock2_defconfig
drivers/video/Kconfig
drivers/video/rockchip/Kconfig [new file with mode: 0644]

index e1f96dce12d10ea88e4a62621cc74e09ed81a85a..09a24776e8d533f511a232225bfc2a7e6de74c95 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_SYSRESET=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_ERRNO_STR=y
index baebca970bb26e93d3955f39940fc0b87e645267..e254f408de500c7d0370cfdcd7a54a425887963c 100644 (file)
@@ -72,6 +72,8 @@ CONFIG_SYSRESET=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_EDP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index ea57810e9568f5edd393b5d4f0abd275bb85bf86..22e56b6d8573db12ac92d374c546320a26f99df2 100644 (file)
@@ -72,6 +72,8 @@ CONFIG_SYSRESET=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
+CONFIG_DISPLAY_ROCKCHIP_EDP=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index f2872a606cc8528fbca225eedbc9d651ed3fe543..9cf576c481f5018e60fb30d5b466f9029dfe1cfb 100644 (file)
@@ -69,6 +69,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index d93bd97e46e5f277b7ec954aa9f87fff67ce8568..0706ff283bfd97abb17bf3398ce8fec61bde29ea 100644 (file)
@@ -66,6 +66,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index ae432ad14db018e577810f400b6f85796473b075..6b868124cd5ef1c04ae5fd101c73b2c12149df48 100644 (file)
@@ -64,6 +64,7 @@ CONFIG_SYSRESET=y
 CONFIG_DM_VIDEO=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_CONSOLE_SCROLL_LINES=10
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
index e29c3fcfc6de816a061e883877d8fb14997718ed..446cca90d4b63fcd093923efbec500c8b010ea39 100644 (file)
@@ -425,15 +425,7 @@ config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
         Set maximum framebuffer size to be used for Freescale Display
         Controller Unit (DCU4).
 
-config VIDEO_ROCKCHIP
-       bool "Enable Rockchip video support"
-       depends on DM_VIDEO
-       help
-          Rockchip SoCs provide video output capabilities for High-Definition
-          Multimedia Interface (HDMI), Low-voltage Differential Signalling
-          (LVDS), embedded DisplayPort (eDP) and Display Serial Interface
-          (DSI). This driver supports the on-chip video output device, and
-          targets the Rockchip RK3288.
+source "drivers/video/rockchip/Kconfig"
 
 config VIDEO_SANDBOX_SDL
        bool "Enable sandbox video console using SDL"
diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig
new file mode 100644 (file)
index 0000000..d94afbd
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# Video drivers selection for rockchip soc. These configs only impact the
+# compile process. You can surely check all the options. In this case, all the
+# display driver will be compiled, but which drivers finally  will be used is
+# decided by device tree configuration. What's more, enable needed power for
+# display by configure the device tree, and the vop driver will do the rest.
+#
+# Author: Eric Gao <eric.gao@rock-chips.com>
+#
+
+menuconfig VIDEO_ROCKCHIP
+       bool "Enable Rockchip Video Support"
+       depends on DM_VIDEO
+       help
+               Rockchip SoCs provide video output capabilities for High-Definition
+               Multimedia Interface (HDMI), Low-voltage Differential Signalling
+               (LVDS), embedded DisplayPort (eDP) and Display Serial Interface
+               (DSI). This driver supports the on-chip video output device, and
+               targets the Rockchip RK3288 and RK3399.
+
+if VIDEO_ROCKCHIP
+
+config DISPLAY_ROCKCHIP_EDP
+       bool "EDP Port"
+       depends on VIDEO_ROCKCHIP
+       help
+         This enables Embedded DisplayPort(EDP) display support.
+
+config DISPLAY_ROCKCHIP_LVDS
+       bool "LVDS Port"
+       depends on VIDEO_ROCKCHIP
+       help
+         This enables Low-voltage Differential Signaling(LVDS) display
+         support.
+
+config DISPLAY_ROCKCHIP_HDMI
+       bool "HDMI port"
+       depends on VIDEO_ROCKCHIP
+       help
+         This enables High-Definition Multimedia Interface display support.
+
+endif
+