Lines Matching +full:cs +full:- +full:gpio
14 #include <linux/gpio.h>
17 #include <linux/mfd/htc-egpio.h>
33 while (n--) { in h3xxx_init_gpio()
34 const char *name = s->name; in h3xxx_init_gpio()
39 err = gpio_request(s->gpio, name); in h3xxx_init_gpio()
41 printk(KERN_ERR "gpio%u: unable to request: %d\n", in h3xxx_init_gpio()
42 s->gpio, err); in h3xxx_init_gpio()
45 if (s->mode >= 0) { in h3xxx_init_gpio()
46 err = gpio_direction_output(s->gpio, s->mode); in h3xxx_init_gpio()
48 err = gpio_direction_input(s->gpio); in h3xxx_init_gpio()
51 printk(KERN_ERR "gpio%u: unable to set direction: %d\n", in h3xxx_init_gpio()
52 s->gpio, err); in h3xxx_init_gpio()
55 if (!s->name) in h3xxx_init_gpio()
56 gpio_free(s->gpio); in h3xxx_init_gpio()
70 .mask_flags = MTD_WRITEABLE, /* force read-only */
114 .end = SA1100_CS0_PHYS + SZ_32M - 1,
124 if (port->mapbase == _Ser3UTCR0) { in h3xxx_uart_set_mctrl()
133 if (port->mapbase == _Ser3UTCR0) { in h3xxx_uart_get_mctrl()
148 if (port->mapbase == _Ser3UTCR0) { in h3xxx_uart_pm()
165 int err = -EINVAL; in h3xxx_uart_set_wake()
167 if (port->mapbase == _Ser3UTCR0) { in h3xxx_uart_set_wake()
191 .end = H3600_EGPIO_PHYS + 0x4 - 1,
214 .name = "htc-egpio",
215 .id = -1,
224 * GPIO keys
230 .gpio = H3XXX_GPIO_PWR_BUTTON,
237 .gpio = H3XXX_GPIO_ACTION_BUTTON,
251 .name = "gpio-keys",
252 .id = -1,
271 { /* static memory bank 2 CS#2 */
276 }, { /* static memory bank 4 CS#4 */
281 }, { /* EGPIO 0 CS#5 */