From: "Jernej Škrabec" <jernej.skrabec@siol.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] Re: [PATCH 3/3] sunxi: video: Add H3/H5 TV out driver
Date: Mon, 15 May 2017 22:10:30 +0200 [thread overview]
Message-ID: <1975419.3YDsVRlAsd@jernej-laptop> (raw)
In-Reply-To: <20170515063122.of3pqmu3uke5kr5n@flea.home>
Hi,
Dne ponedeljek, 15. maj 2017 ob 08:31:22 CEST je Maxime Ripard napisal(a):
> On Sat, May 13, 2017 at 11:14:00PM +0800, Chen-Yu Tsai wrote:
> > >>> +static int sunxi_tve_get_plug_in_status(void)
> > >>> +{
> > >>> + struct sunxi_tve_reg * const tve =
> > >>> + (struct sunxi_tve_reg *)SUNXI_TVE0_BASE;
> > >>> + u32 status;
> > >>> +
> > >>> + status = readl(&tve->auto_detect_status) &
> > >>> + SUNXI_TVE_AUTO_DETECT_STATUS_MASK(0);
> > >>> +
> > >>> + return status == SUNXI_TVE_AUTO_DETECT_STATUS_CONNECTED;
> > >
> > > So TVE is now capable of hpd checking, right?
> > >
> > > Is is a feature that exists in A10/A13/A20 or is it new in H3?
> >
> > AFAIK this is also available in the earlier SoCs.
> > Maxime mentioned that it was unreliable though.
>
> This was supposed to be there, but those registers were
> undocumented. It would be nice to try to see if it works.
AFAIK, H3 and newer SoCs with TV out have two additional registers for hot
plug detection. Here are named SUNXI_TVE_AUTO_DETECT_CFG0 and
SUNXI_TVE_AUTO_DETECT_CFG1 and they are somewhat explained in R40 manual.
I'm not sure if this changes reliability a lot or not.
Best regards,
Jernej
next prev parent reply other threads:[~2017-05-15 20:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 16:46 [U-Boot] [PATCH 0/3] sunxi: video: Add support for TV (composite) output on H3/H5 Jernej Skrabec
2017-05-10 16:46 ` [U-Boot] [PATCH 1/3] sunxi: video: Split out TVE code Jernej Skrabec
2017-05-15 3:03 ` Simon Glass
2017-05-15 19:08 ` Anatolij Gustschin
2017-05-10 16:46 ` [U-Boot] [PATCH 2/3] sunxi: Add clock support for TV encoder Jernej Skrabec
2017-05-12 15:47 ` Maxime Ripard
2017-05-12 16:55 ` Jernej Škrabec
2017-05-12 20:27 ` Maxime Ripard
2017-05-15 19:25 ` Anatolij Gustschin
2017-05-10 16:46 ` [U-Boot] [PATCH 3/3] sunxi: video: Add H3/H5 TV out driver Jernej Skrabec
2017-05-12 16:06 ` Maxime Ripard
2017-05-13 15:02 ` [U-Boot] [linux-sunxi] " icenowy at aosc.io
2017-05-13 15:14 ` Chen-Yu Tsai
2017-05-15 6:31 ` Maxime Ripard
2017-05-15 20:10 ` Jernej Škrabec [this message]
2017-05-15 3:03 ` [U-Boot] " Simon Glass
2017-05-15 6:11 ` Maxime Ripard
2017-05-15 19:47 ` Jernej Škrabec
2017-05-15 20:00 ` Anatolij Gustschin
2017-05-15 20:05 ` Simon Glass
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=1975419.3YDsVRlAsd@jernej-laptop \
--to=jernej.skrabec@siol.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox