[coreboot] alix2c3 LEDs and mode switch
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
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.
More information about the coreboot