Hey guys,

> Hi all,
> 
> On Wed, 8 Aug 2012, Chris Wilson wrote:
> 
> >>> The GPIO and LED controls on the net6501 is located in fixed IO
> >>> space, accesses using the FPGA over the LPC bus:
> >>>
> >>> Red Error LED:   I/O port 069C bit 0, 0=off, 1=on.
> >>> Green Ready LED: I/O port 069D bit 0, 0=off, 1=on.
> >
> > I want to write a linux leds driver for the net6501, assuming that
> > nobody has already? I can't see one in linux-next.
> 
> Please find the driver attached. I've also submitted it to
> linux-leds, hopefully it will end up in linux-next soon.

Thx, my driver looks mostly same.
But i need some more functionality like blinking, and if i understand
the most documentation right this could be done by the led framework,
too. i haven't already figured out how to split the
functionality beetween kernel and userspace in the best way.

> I think it would be good to make it depend on some PCI device, but
> not sure if there's anything unique or specific to the net6501 that I
> could use?

As i understand right, works the pcistuff a bit different and
ioport/solered devices are often implemented as platform driver?
for me it makes sense, because you need no hotplugcapability and the
device never change (ok, only until we figure out how to play around
with the xilinx ;) )

> Also, still don't know if I can probe the hardware?
i remap some memory and take a look if
there is a combios or not.
i think thats still the best way to probe.

But i have no source here in the train.

Regards,
André

_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to