<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Corey Osgood<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, April 18, 2008 5:50
PM<br>
<b><span style='font-weight:bold'>To:</span></b> joe@settoplinux.org<br>
<b><span style='font-weight:bold'>Cc:</span></b> Coreboot<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [coreboot] TV-Out
Plan - need suggestions</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Fri, Apr 18, 2008 at 5:18 PM, Joe <<a
href="mailto:joe@settoplinux.org">joe@settoplinux.org</a>> wrote:<o:p></o:p></span></font></p>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>> Hello,<br>
> Starting to work on the TV-Out code for the RCA RM4100, and I need some<br>
> help. Here is the Logical Plan:<br>
><br>
> 1. Setup a custom vga init (similar to Corey's vga.c for the cn700<br>
> northbridge) that will call a i2c (i810_i2c.c which could be used for a<br>
> bunch of intel nothbridges) driver from coreboot-v2/src/drivers/i2c/ that<br>
> will setup communications with the Tv encoder via the GPIO (sda, sdl)<br>
> lines in the nothbridge.<o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
Similar to, yes, but don't use vm86 (like I did) unless x86emu doesn't work.
What you can do is NOT set up the rom_address in Config.lb, so coreboot doesn't
know where to automagically run the rom from, then once you're done with the
pre-rom stuff, call pci_rom_run manually from a function inside mainboard.c,
using a location of 4GB-ROM_SIZE. Then in chip.h, add a struct member
.enable_dev = [name of your function], so your custom vga init is only for your
board.<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
> 2. Then setup a init (that would program the registers, and fire it up)for<br>
> the Tv encoder coreboot-v2/src/drivers/tv-out which could also be called<br>
> from the nothbridge vga.c.<o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
Again, do this inside mainboard.c, so any other systems that might use i830 don't
get tv init interfering with anything else.<br>
 <o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
><br>
> Here is where it gets tricky. I want to make it dynamic in the respect<br>
> that you could specify from your mainboard directory:<br>
> a. TV-out settings (with a header file??) like NTSC, PAl, resolution,<br>
> macrovision, filters, etc.<br>
> a. enable TV encoder usage (if yes setup i2c, otherwise just skip over it)<br>
> b. Specify which Tv encoder to use<o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
Two options:<br>
The first is to add global defines to the mainboard Config.lb, which also means
adding them to the build system, I can't remember at the moment how to do that,
but I think if you grep for some config variable name in util/, and you should
be able to find it.<br>
<br>
The second is to add config variables, similar to how we set the rom_address =
"0xsomething". That I can't remember how to do at the moment either,
and I'm not sure if you can do it on a mainboard level or not, thinking about
it again, you might have to resort to doing it in<font color=navy><span
style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> the northbridge stuff.<font color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I was thinking about figuring out how to
setup this in Config.lb<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
Good luck!<br>
-Corey<br>
 <o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
><br>
> This would broaden the horizons and allow other boards that have TV-out to<br>
> use this code also. The only thing I can think to do is setup some global<br>
> parameters? Suggestions?<br>
><br>
><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thnaks for the suggestions Corey </span></font><font
size=2 color=navy face=Wingdings><span style='font-size:10.0pt;font-family:
Wingdings;color:navy'>J</span></font><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

</div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<br>
Joseph Smith<br>
Set-Top-Linux<br>
<a href="http://www.settoplinux.org">www.settoplinux.org</a></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

</body>

</html>