On 14 Jun 2013 21:31 , Brad Smith wrote:
>
> This was commited 3 months ago..
>
> CVSROOT: /cvs
> Module name: src
> Changes by: dera...@cvs.openbsd.org 2013/03/12 10:31:50
>
...
Thanks for mentioning it, I did not expect it to enter the
tree this way.
Now with an updated bios.c, a slightly changed soekris_match()
in Matt's soekris.c and a rebuilt GENERIC 5.3 including
soekris0 at isa? port 0x680
gpio* at soekris?
the gpios for the 6501 work. At least "set out". "set in"
doesn't as far as I can see now:
starting pre-securelevel daemons:gpioctl: GPIOPINSET: Operation
not supported by device
gpioctl: GPIOPINSET: Operation not supported by device
I have to check this in more detail with a scope, but I can
switch my fan on and off with sensorsd now, which is cool.
Cheers,
/Markus
int
soekris_match(struct device *parent, void *match, void *aux)
{
struct isa_attach_args *ia = aux;
bus_space_tag_t iot;
bus_space_handle_t ioh;
int iobase;
iot = ia->ia_iot;
iobase = ia->ipa_io[0].base;
if (bus_space_map(iot, iobase, SOEKRIS_IOSIZE, 0, &ioh))
return (0);
bus_space_unmap(iot, ioh, SOEKRIS_IOSIZE);
ia->ia_iosize = SOEKRIS_IOSIZE;
ia->ipa_nio = 1;
ia->ipa_nmem = 0;
ia->ipa_nirq = 0;
ia->ipa_ndrq = 0;
return (1);
}