On Thu, 2008-10-23 at 16:35 -0500, Matt Sealey wrote: > > On Oct 23, 2008, at 7:27 AM, Wolfgang Ocker wrote: > >> The GPIOLIB allows the specification of a base gpio number for a > >> controller. That is not possible using OF. Instead, free gpio numbers > >> are assigned. > >> > >> In order to allow static, predefined gpio numbers, a base property in > >> the gpio controller node specifies the first gpio number. > > See my latest mail. > > I don't think it's enough to say which pin the GPIOs exposed > start at; you need some sort of mask, or array of applicable > GPIOs so that GPIOLIB can check which perhaps 3 pins out of a > possible 32 are allocated to a controller and usable (these > may be pin 5, pin 9 and pin 20, so a "base" of pin 5 would be > outrageously inadequate).
I'm not sure what you mean. That "base" is used in gpiochip_add() when registering the gpio controller. There is no magic with a mask or so. What do I miss? Thanks, Wolfgang
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev