tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GPIO abstraction [was "Re: wscons on a HD44780"]



Jachym Holecek <freza%liberouter.org@localhost> 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@localhost                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen




Home | Main Index | Thread Index | Old Index