[U-Boot] [linux-sunxi] Re: [PATCH 3/3] sunxi: video: Add H3/H5 TV out driver

Maxime Ripard maxime.ripard at free-electrons.com
Mon May 15 06:31:22 UTC 2017


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.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170515/a6e61b57/attachment.sig>


More information about the U-Boot mailing list