Subject: Re: GPIO abstraction [was "Re: wscons on a HD44780"]
To: None <tech-embed@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-embed
Date: 03/22/2005 22:39:36
Jachym Holecek <freza@liberouter.org> wrote:
> > somedevice0 at gpio0 pin 10 mask 0x5
> >
>> It means that somedevice uses first and third pins starting from pin 10,
>> i.e. pins 10 and 12.
>
> While this may be enough in common cases, I would really prefer
> something like:
>
> somedevice0 at gpio signal1 fooio[GP0] signal2 bario[DATA3]
>
> That is: 1) use descriptive signal names in config 2) be able to
> hook one gpio consumer on multiple gpio providers. Of course, this
> doesn't play nicely with current config scheme... but should be
> doable.
We have config_hook(9), though it's somehat underdocumented. Take a
look at hpcmips configs.
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen