-- http://marcjstuff.blogspot.com/
----- Original Message ---- > From: Roman Yeryomin <[EMAIL PROTECTED]> > To: Marc Jones <[EMAIL PROTECTED]> > Cc: [email protected] > Sent: Saturday, November 8, 2008 9:25:54 AM > Subject: Re: [coreboot] alix2c3 LEDs and mode switch > > On Fri, Nov 7, 2008 at 11:47 PM, Marc Jones wrote: > >> On Fri, Nov 7, 2008 at 8:47 PM, Marc Jones wrote: > >> > I think I came into this discussion late with getting my email switched > over. > >> > What are you trying to accomplish and where/what do you want to control > >> > the > >> LED from? > >> > >> There is fully functional linux kernel driver (see attachment) which > >> works flawlessly with tinybios (alix factory bios). > >> I want to indicate software status events (for example network is up > >> or down) using custom scripts and driver I've mentioned. > > > > > >>#define ALIX_LED1_PORT (0x6100) > > > > The scripts and driver should get the GPIO IO address from the 5536 PCI cfg > header instead of hard coding the address. > > coreboot can allocate the GPIO space to any address. A quick try could be > > made > by checking lspci. > > GPIO is BAR1 (offset 0x14) in the 5536. > > hmm.. I din't think the address could change. So is it this? wrong > address? Here is my lspci > 00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode > companion] ISA (rev 03) > Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA > Control: I/O+ Mem- BusMaster- SpecCycle+ MemWINV- VGASnoop- > ParErr+ Stepping- SERR- FastB2B- DisINTx- > Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium > >TAbort- SERR- > Region 0: I/O ports at 24b0 [size=8] > Region 1: I/O ports at 1c00 [size=256] > Region 2: I/O ports at 2400 [size=64] > Region 3: I/O ports at 2480 [size=32] > Region 4: I/O ports at 2000 [size=128] > Region 5: I/O ports at 2440 [size=64] Region 1: 1C00 is what you want to use. The driver should check that BAR and use that address. Marc -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

