diff mbox

[U-Boot,6/8] nitrogen6x: use common detect_hdmi

Message ID 1396468670-29774-6-git-send-email-eric@eukrea.com
State Superseded
Headers show

Commit Message

Eric Benard April 2, 2014, 7:57 p.m. UTC
Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: Eric Nelson <eric.nelson@boundarydevices.com>
---
 board/boundary/nitrogen6x/nitrogen6x.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Eric Nelson April 4, 2014, 12:47 a.m. UTC | #1
Thanks Eric,

On 04/02/2014 12:57 PM, Eric Bénard wrote:
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> Cc: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
>   board/boundary/nitrogen6x/nitrogen6x.c | 6 ------
>   1 file changed, 6 deletions(-)
>
> diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
> index 1d96db1..4e78ce4 100644
> --- a/board/boundary/nitrogen6x/nitrogen6x.c
> +++ b/board/boundary/nitrogen6x/nitrogen6x.c
> @@ -445,12 +445,6 @@ static iomux_v3_cfg_t const rgb_pads[] = {
>   	MX6_PAD_DISP0_DAT23__IPU1_DISP0_DATA23,
>   };
>
> -static int detect_hdmi(struct display_info_t const *dev)
> -{
> -	struct hdmi_regs *hdmi	= (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
> -	return readb(&hdmi->phy_stat0) & HDMI_DVI_STAT;
> -}
> -
>   static void do_enable_hdmi(struct display_info_t const *dev)
>   {
>   	imx_enable_hdmi_phy();
>

I coulda sworn we had done this already, but...

Acked-By: Eric Nelson <eric.nelson@boundarydevices.com>
diff mbox

Patch

diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 1d96db1..4e78ce4 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -445,12 +445,6 @@  static iomux_v3_cfg_t const rgb_pads[] = {
 	MX6_PAD_DISP0_DAT23__IPU1_DISP0_DATA23,
 };
 
-static int detect_hdmi(struct display_info_t const *dev)
-{
-	struct hdmi_regs *hdmi	= (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
-	return readb(&hdmi->phy_stat0) & HDMI_DVI_STAT;
-}
-
 static void do_enable_hdmi(struct display_info_t const *dev)
 {
 	imx_enable_hdmi_phy();