All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] rockchip: video: introduce CONFIG_DESIGNWARE_HDMI and select for Rockchip HDMI
Date: Fri, 28 Apr 2017 16:55:59 +0200	[thread overview]
Message-ID: <1493391359-41714-1-git-send-email-philipp.tomsich@theobroma-systems.com> (raw)
In-Reply-To: <1492663559-8248-1-git-send-email-eric.gao@rock-chips.com>

Instead of having drivers/video/rockchip/Kconfig point outside of its
hierarchy for dw_hdmi.o, we should use a configuration-option to
include the Designware HDMI support.

This change introduces a new config option (not to be selected via
menuconfig, but to be selected from a dependent video driver's
configuration option) that enables dw_hdmi.o and selects it whenever
the HDMI support for Rockchip SoCs is selected.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

 drivers/video/Kconfig           | 9 +++++++++
 drivers/video/Makefile          | 1 +
 drivers/video/rockchip/Kconfig  | 1 +
 drivers/video/rockchip/Makefile | 2 +-
 4 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 818f738..c629c6e 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -610,4 +610,13 @@ config LCD
 	  CONFIG option. See the README for details. Drives which have been
 	  converted to driver model will instead used CONFIG_DM_VIDEO.
 
+config DESIGNWARE_HDMI
+	bool
+	help
+	  Enables the common driver code for the Designware HDMI TX
+	  block found in SoCs from various vendors.
+	  As this does not provide any functionality by itself (but
+	  rather requires a SoC-specific glue driver to call it), it
+	  can not be enabled from the configuration menu.
+
 endmenu
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 7cd6d28..f06aaf6 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -58,6 +58,7 @@ obj-$(CONFIG_VIDEO_VESA) += vesa.o
 obj-$(CONFIG_FORMIKE) += formike.o
 obj-$(CONFIG_LG4573) += lg4573.o
 obj-$(CONFIG_AM335X_LCD) += am335x-fb.o
+obj-$(CONFIG_DESIGNWARE_HDMI) += dw_hdmi.o
 
 obj-${CONFIG_VIDEO_TEGRA124} += tegra124/
 obj-${CONFIG_EXYNOS_FB} += exynos/
diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig
index d94afbd..938409d 100644
--- a/drivers/video/rockchip/Kconfig
+++ b/drivers/video/rockchip/Kconfig
@@ -35,6 +35,7 @@ config DISPLAY_ROCKCHIP_LVDS
 
 config DISPLAY_ROCKCHIP_HDMI
 	bool "HDMI port"
+	select DESIGNWARE_HDMI
 	depends on VIDEO_ROCKCHIP
 	help
 	  This enables High-Definition Multimedia Interface display support.
diff --git a/drivers/video/rockchip/Makefile b/drivers/video/rockchip/Makefile
index 3bb0519..3d376d5 100644
--- a/drivers/video/rockchip/Makefile
+++ b/drivers/video/rockchip/Makefile
@@ -9,5 +9,5 @@ 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
+obj-$(CONFIG_DISPLAY_ROCKCHIP_HDMI) += rk_hdmi.o
 endif
-- 
1.9.1

  parent reply	other threads:[~2017-04-28 14:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20  4:45 [U-Boot] [PATCH v4 00/11] Add mipi dsi display support for rockchip soc Eric Gao
2017-04-20  4:45 ` [U-Boot] [PATCH v4 01/11] rockchip: include: grf: Add GRF register declaration for mipi dsi Eric Gao
2017-04-20 12:28   ` Simon Glass
2017-04-21 11:06   ` Dr. Philipp Tomsich
2017-04-21 11:43   ` Dr. Philipp Tomsich
2017-04-20  4:45 ` [U-Boot] [PATCH v4 02/11] rockchip: video: Add mipi driver for rockchip soc Eric Gao
2017-04-20 12:28   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 03/11] rockchip: video: Makefile: Add mipi driver addition Eric Gao
2017-04-20  4:45 ` [U-Boot] [PATCH v4 04/11] rockchip: video: Kconfig: " Eric Gao
2017-04-20  4:45 ` [U-Boot] [PATCH v4 05/11] rockchip: video: vop: Fix rk_display_init() return error Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 06/11] rockchip: video: vop: Add mipi display mode for rk3399 Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 07/11] rockchip: video: vop: Set different bitwidth for different display mode Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 08/11] rockchip: video: vop: Reserve enough space for mipi dispaly Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 09/11] rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 10/11] rockchip: dts: Add mipi dsi support for rk3399 Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-20  4:45 ` [U-Boot] [PATCH v4 11/11] rockchip: configs: Enable mipi dsi " Eric Gao
2017-04-20 12:29   ` Simon Glass
2017-04-21  3:05 ` [U-Boot] [PATCH v4 00/11] Add mipi dsi display support for rockchip soc Simon Glass
2017-04-28 14:55 ` Philipp Tomsich [this message]
2017-04-30  3:48   ` [U-Boot] [PATCH] rockchip: video: introduce CONFIG_DESIGNWARE_HDMI and select for Rockchip HDMI Simon Glass
2017-05-15 18:19   ` [U-Boot] [PATCH] rockchip: video: introduce VIDEO_DW_HDMI " Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493391359-41714-1-git-send-email-philipp.tomsich@theobroma-systems.com \
    --to=philipp.tomsich@theobroma-systems.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.