[coreboot] vga not working

Myles Watson mylesgw at gmail.com
Mon Aug 17 20:07:10 CEST 2009


On Mon, Aug 17, 2009 at 10:57 AM, ron minnich <rminnich at gmail.com> wrote:

> On Mon, Aug 17, 2009 at 9:12 AM, Myles Watson<mylesgw at gmail.com> wrote:
>
> > For me the steps would be:
> > 1. Make sure that the device that needs the config writes is in the above
> > list.
>
> I am after painful detail :-)

I'm much better at answering questions than brain-dumping, but I'm trying.


> > 2. Add code like this:
> >      if (dev->link[link].bridge_ctrl & PCI_BRIDGE_CTL_VGA) {
> >           /* Add your code from auto.c here */
> >      }
> > to the .init function of the bridge.
>
> Yes. And how did bridge_ctrl get set again?
>
In set_vga_bridge_bits(), the code finds the VGA device and then walks back
to the root, setting the bridge_ctrl bits along the way.  When the
enable_resources() or init() function gets called, device-specific code can
then do what it needs to with that information to make it work.

Myles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090817/4bd4053f/attachment.html>


More information about the coreboot mailing list