All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] Add Kconfig for rockchip video driver.
@ 2017-04-17 11:11 Eric Gao
  2017-04-17 11:11 ` [U-Boot] [PATCH v2 1/2] rockchip: video: Kconfig: " Eric Gao
  2017-04-17 11:11 ` [U-Boot] [PATCH v2 2/2] rockchip: video: Makefile: Modify Makefile " Eric Gao
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Gao @ 2017-04-17 11:11 UTC (permalink / raw)
  To: u-boot

patch 1: add Kconfig file rockchip video driver.
patch 2: modify Makefile according to the new Kconfig.


Eric Gao (2):
  rockchip: video: Kconfig: Add Kconfig for rockchip video driver
  rockchip: video: Makefile: Modify Makefile for rockchip video driver

 configs/chromebit_mickey_defconfig  |  1 +
 configs/chromebook_jerry_defconfig  |  2 ++
 configs/chromebook_minnie_defconfig |  2 ++
 configs/firefly-rk3288_defconfig    |  1 +
 configs/miqi-rk3288_defconfig       |  1 +
 configs/rock2_defconfig             |  1 +
 drivers/video/Kconfig               | 10 +--------
 drivers/video/rockchip/Kconfig      | 43 +++++++++++++++++++++++++++++++++++++
 drivers/video/rockchip/Makefile     |  7 +++++-
 9 files changed, 58 insertions(+), 10 deletions(-)
 create mode 100644 drivers/video/rockchip/Kconfig

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2 1/2] rockchip: video: Kconfig: Add Kconfig for rockchip video driver
  2017-04-17 11:11 [U-Boot] [PATCH v2 0/2] Add Kconfig for rockchip video driver Eric Gao
@ 2017-04-17 11:11 ` Eric Gao
  2017-04-17 11:11 ` [U-Boot] [PATCH v2 2/2] rockchip: video: Makefile: Modify Makefile " Eric Gao
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Gao @ 2017-04-17 11:11 UTC (permalink / raw)
  To: u-boot

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>

---

 configs/chromebit_mickey_defconfig  |  1 +
 configs/chromebook_jerry_defconfig  |  2 ++
 configs/chromebook_minnie_defconfig |  2 ++
 configs/firefly-rk3288_defconfig    |  1 +
 configs/miqi-rk3288_defconfig       |  1 +
 configs/rock2_defconfig             |  1 +
 drivers/video/Kconfig               | 10 +--------
 drivers/video/rockchip/Kconfig      | 43 +++++++++++++++++++++++++++++++++++++
 8 files changed, 52 insertions(+), 9 deletions(-)
 create mode 100644 drivers/video/rockchip/Kconfig

diff --git a/configs/chromebit_mickey_defconfig b/configs/chromebit_mickey_defconfig
index a29e4e5..f04ecb4 100644
--- a/configs/chromebit_mickey_defconfig
+++ b/configs/chromebit_mickey_defconfig
@@ -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
diff --git a/configs/chromebook_jerry_defconfig b/configs/chromebook_jerry_defconfig
index e642b8d..dd0476b 100644
--- a/configs/chromebook_jerry_defconfig
+++ b/configs/chromebook_jerry_defconfig
@@ -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
diff --git a/configs/chromebook_minnie_defconfig b/configs/chromebook_minnie_defconfig
index 1812362..cecae5f 100644
--- a/configs/chromebook_minnie_defconfig
+++ b/configs/chromebook_minnie_defconfig
@@ -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
diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig
index b0741d7..b975383 100644
--- a/configs/firefly-rk3288_defconfig
+++ b/configs/firefly-rk3288_defconfig
@@ -70,6 +70,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
diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig
index 203824b..71e4db7 100644
--- a/configs/miqi-rk3288_defconfig
+++ b/configs/miqi-rk3288_defconfig
@@ -67,6 +67,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
diff --git a/configs/rock2_defconfig b/configs/rock2_defconfig
index e9a32a9..5ddca5a 100644
--- a/configs/rock2_defconfig
+++ b/configs/rock2_defconfig
@@ -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
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 19e9745..818f738 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -416,15 +416,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
index 0000000..529288d
--- /dev/null
+++ b/drivers/video/rockchip/Kconfig
@@ -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 enable Embedded DisplayPort(EDP) display support.
+
+	config DISPLAY_ROCKCHIP_LVDS
+		bool "LVDS Port"
+		depends on VIDEO_ROCKCHIP
+		help
+			This enable Low-voltage Differential Signaling(LVDS) display
+			support.
+
+	config DISPLAY_ROCKCHIP_HDMI
+		bool "HDMI port"
+		depends on VIDEO_ROCKCHIP
+		help
+			This enable High-Definition Multimedia Interface display support.
+
+endif
+
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2 2/2] rockchip: video: Makefile: Modify Makefile for rockchip video driver
  2017-04-17 11:11 [U-Boot] [PATCH v2 0/2] Add Kconfig for rockchip video driver Eric Gao
  2017-04-17 11:11 ` [U-Boot] [PATCH v2 1/2] rockchip: video: Kconfig: " Eric Gao
@ 2017-04-17 11:11 ` Eric Gao
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Gao @ 2017-04-17 11:11 UTC (permalink / raw)
  To: u-boot

Modify Makefile for rockchip video driver according to Kconfig, so that
source code will not be compiled if not needed.

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
---

 drivers/video/rockchip/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/video/rockchip/Makefile b/drivers/video/rockchip/Makefile
index 755350b..3bb0519 100644
--- a/drivers/video/rockchip/Makefile
+++ b/drivers/video/rockchip/Makefile
@@ -5,4 +5,9 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-y += rk_edp.o rk_hdmi.o rk_vop.o rk_lvds.o ../dw_hdmi.o
+ifdef CONFIG_VIDEO_ROCKCHIP
+obj-y += rk_vop.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_EDP) += rk_edp.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_LVDS) += rk_lvds.o
+obj-$(CONFIG_DISPLAY_ROCKCHIP_HDMI) += rk_hdmi.o ../dw_hdmi.o
+endif
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-17 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17 11:11 [U-Boot] [PATCH v2 0/2] Add Kconfig for rockchip video driver Eric Gao
2017-04-17 11:11 ` [U-Boot] [PATCH v2 1/2] rockchip: video: Kconfig: " Eric Gao
2017-04-17 11:11 ` [U-Boot] [PATCH v2 2/2] rockchip: video: Makefile: Modify Makefile " Eric Gao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.