On Wed, Dec 17, 2008 at 10:56:08AM -0600, Kumar Gala wrote: > > On Dec 3, 2008, at 1:27 PM, Anton Vorontsov wrote: > >> The driver supports very simple GPIO controllers, that is, when a >> controller provides just a 'data' register. Such controllers may be >> found in various BCSRs (Board's FPGAs used to control board's >> switches, LEDs, chip-selects, Ethernet/USB PHY power, etc). >> >> So far we support only 1-byte GPIO banks. Support for other widths may >> be implemented when/if needed. >> >> p.s. >> To avoid "made up" compatible entries (like compatible = "simple- >> gpio"), >> boards must call the simple_gpiochip_init() to pass the compatible >> string. >> >> Signed-off-by: Anton Vorontsov <avoront...@ru.mvista.com> >> --- >> Documentation/powerpc/dts-bindings/fsl/board.txt | 30 ++++ > > can we pull this out of this patch.
Will do. [...] >> +#ifdef CONFIG_SIMPLE_GPIO >> +extern int simple_gpiochip_init(const char *compatible); >> +#else >> +static inline int simple_gpiochip_init(const char *compatible) >> +{ >> + return -ENODEV; >> +} >> +#endif /* CONFIG_SIMPLE_GPIO */ >> + >> +#endif /* __SYSDEV_SIMPLE_GPIO_H */ > > Can I call simple_gpiochip_init() multiple times w/different > compatibles? Yes, sure. -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev