e92935e13a
This patch adds device tree support for gpio-lpc32xx.c. To register the various GPIO banks as (struct) gpio_chips via the same DT gpio-controller, we utilize the adjusted of_xlate API to manipulate the actually used struct gpio_chip. Signed-off-by: Roland Stigge <stigge@antcom.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
9 lines
164 B
C
9 lines
164 B
C
#ifndef __MACH_GPIO_H
|
|
#define __MACH_GPIO_H
|
|
|
|
#include "gpio-lpc32xx.h"
|
|
|
|
#define ARCH_NR_GPIOS (LPC32XX_GPO_P3_GRP + LPC32XX_GPO_P3_MAX)
|
|
|
|
#endif /* __MACH_GPIO_H */
|