S-Video out and OMAP git tree


Based on work done by MontaVista for the 3430SDP, I have a version
of the TI (WTBU) OMAP frame buffer driver that supports TV out grafted
onto a recent OMAP-git tree. It isn't perfect but I am able to see the
boot penguin on a NTSC display. And the display is indeed noisy.
I don't have a HDMI/DVI convert/cable combo to try the LCD output so
someone else will have to test that.

The patch itself is rather long (11K lines). What's a good way of
getting this out? I can attach it if people do not consider it too

-- Hunyue

Attach it please :slight_smile:



Okay - here it is. Sorry for the monolithic patch but this is really a
"grafting" of the code. I have a working config if needed. There are
some bugs. I got it as far as seeing the boot logo when I do the
echo 'tv' line.

-- Hunyue

Graft in OMAP frame buffer driver from TI tree.

The original code was from TI based on an older kernel.
It has been ported to the 2.6.24 Linux OMAP git tree
by Montavista. This version has been ported to the 2.6.26
Linux OMAP git tree. It has only been tested on a
OMAP3 Beagle board using TV (NTSC) out. This driver is not
perfect but is currently the only driver for the OMAP
git tree that will do TV out.

To enable TV out, be sure CONFIG_VIDEO_OMAP24XX_TVOUT is enabled
in addition to CONFIG_FB_OMAP. At run time the following will
enable the TV output:
  echo 'tv' > /sys/class/display_control/omap_disp_control/graphics

Signed-off-by: Hunyue Yau <hyau@mvista.com>
Signed-off-by: Jean Pihet <jpihet@mvista.com>

diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile
index 93bbb64..d6d5ce5 100644
--- a/arch/arm/plat-omap/Makefile
+++ b/arch/arm/plat-omap/Makefile
@@ -14,6 +14,8 @@ obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o

obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o

+obj-$(CONFIG_ARCH_OMAP3) += display.o

Hi Hunyue,

Thanks for this patch. Good work.

I've tried your patch and it works here in my beagle. But with the
same issue of noise.
The behaviour is the same as with original kernel from TI.

However, if you think in submitting this patch to linux-omap I think
we need to work
a bit on it :).

First suggestion is to start splitting it into a series of little
patches by features.

Anyway, I've tried it into 3430 SDP, and with a few changes it worked as well.