Lines Matching defs:gpio
23 #include <linux/gpio/driver.h>
65 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio)
75 return !!((val | out_shadow) & mpc_pin2mask(gpio));
79 unsigned int gpio, int val)
83 if (gpio >= 28)
86 return mpc8xxx_gc->direction_output(gc, gpio, val);
90 unsigned int gpio, int val)
94 if (gpio <= 3)
97 return mpc8xxx_gc->direction_output(gc, gpio, val);
199 unsigned long gpio = irqd_to_hwirq(d);
204 if (gpio < 16) {
206 shift = (15 - gpio) * 2;
209 shift = (15 - (gpio % 16)) * 2;
243 .name = "mpc8xxx-gpio",
290 { .compatible = "fsl,mpc8349-gpio", },
291 { .compatible = "fsl,mpc8572-gpio", .data = &mpc8572_gpio_devtype, },
292 { .compatible = "fsl,mpc8610-gpio", },
293 { .compatible = "fsl,mpc5121-gpio", .data = &mpc512x_gpio_devtype, },
294 { .compatible = "fsl,mpc5125-gpio", .data = &mpc5125_gpio_devtype, },
295 { .compatible = "fsl,pq3-gpio", },
296 { .compatible = "fsl,ls1028a-gpio", },
297 { .compatible = "fsl,ls1088a-gpio", },
298 { .compatible = "fsl,qoriq-gpio", },
353 * It's assumed that only a single type of gpio controller is available
373 if (of_device_is_compatible(np, "fsl,qoriq-gpio") ||
374 of_device_is_compatible(np, "fsl,ls1028a-gpio") ||
375 of_device_is_compatible(np, "fsl,ls1088a-gpio"))
400 IRQF_NO_THREAD | IRQF_SHARED, "gpio-cascade",
434 .name = "gpio-mpc8xxx",