[coreboot] alix2c3 LEDs and mode switch

Peter Stuge peter at stuge.se
Sat Nov 8 19:45:40 CET 2008


Roman Yeryomin wrote:
> > Region 1: 1C00 is what you want to use. The driver should check
> > that BAR and use that address.
> 
> ok, I will try it
> but this is only one led, what about others? their ports will change
> respectively? 6100->1c00, 6180->1c80 ?

The 5536 doesn't have a single port per GPIO. Please have a look at
the 5536 GPIO documentation to learn how they work. I think it is
explained well:

http://www.amd.com/files/connectivitysolutions/geode/geode_lx/33238G_cs5536_db.pdf

See 6.16 GPIO Device Register Descriptions

The GPIO I/O Offset should be added to what is read from the ISA
bridge BAR1, 0x1c00 in this case.


> and what about this? is it needed?
> outl(GPIOL_6_SET, GPIO_IO_BASE + GPIOL_OUT_AUX1_SELECT);
> outl(GPIOL_6_SET, GPIO_IO_BASE + GPIOL_OUTPUT_ENABLE);
> outl(GPIOL_6_SET, GPIO_IO_BASE + GPIOL_IN_AUX1_SELECT);
> outl(GPIOL_6_SET, GPIO_IO_BASE + GPIOL_INPUT_ENABLE);

Yes. The PDF explains how these registers work.


//Peter




More information about the coreboot mailing list