Lines Matching +full:0 +full:x0900

23 #define MXS_SET		0x4
24 #define MXS_CLR 0x8
26 #define PINCTRL_DOUT(p) ((is_imx23_gpio(p) ? 0x0500 : 0x0700) + (p->id) * 0x10)
27 #define PINCTRL_DIN(p) ((is_imx23_gpio(p) ? 0x0600 : 0x0900) + (p->id) * 0x10)
28 #define PINCTRL_DOE(p) ((is_imx23_gpio(p) ? 0x0700 : 0x0b00) + (p->id) * 0x10)
29 #define PINCTRL_PIN2IRQ(p) ((is_imx23_gpio(p) ? 0x0800 : 0x1000) + (p->id) * 0x10)
30 #define PINCTRL_IRQEN(p) ((is_imx23_gpio(p) ? 0x0900 : 0x1100) + (p->id) * 0x10)
31 #define PINCTRL_IRQLEV(p) ((is_imx23_gpio(p) ? 0x0a00 : 0x1200) + (p->id) * 0x10)
32 #define PINCTRL_IRQPOL(p) ((is_imx23_gpio(p) ? 0x0b00 : 0x1300) + (p->id) * 0x10)
33 #define PINCTRL_IRQSTAT(p) ((is_imx23_gpio(p) ? 0x0c00 : 0x1400) + (p->id) * 0x10)
35 #define GPIO_INT_FALL_EDGE 0x0
36 #define GPIO_INT_LOW_LEV 0x1
37 #define GPIO_INT_RISE_EDGE 0x2
38 #define GPIO_INT_HIGH_LEV 0x3
39 #define GPIO_INT_LEV_MASK (1 << 0)
124 return 0; in mxs_gpio_set_irq_type()
155 while (irq_stat != 0) { in mxs_gpio_irq_handler()
172 * @return This function returns 0 on success.
184 return 0; in mxs_gpio_set_wake_irq()
200 ct = &gc->chip_types[0]; in mxs_gpio_init_gc()
227 IRQ_NOREQUEST, 0); in mxs_gpio_init_gc()
273 if (port->id < 0) in mxs_gpio_probe()
277 port->irq = platform_get_irq(pdev, 0); in mxs_gpio_probe()
278 if (port->irq < 0) in mxs_gpio_probe()
287 base = of_iomap(parent, 0); in mxs_gpio_probe()
295 writel(0, port->base + PINCTRL_PIN2IRQ(port)); in mxs_gpio_probe()
296 writel(0, port->base + PINCTRL_IRQEN(port)); in mxs_gpio_probe()
299 writel(~0U, port->base + PINCTRL_IRQSTAT(port) + MXS_CLR); in mxs_gpio_probe()
301 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, 32, numa_node_id()); in mxs_gpio_probe()
302 if (irq_base < 0) { in mxs_gpio_probe()
307 port->domain = irq_domain_add_legacy(np, 32, irq_base, 0, in mxs_gpio_probe()
316 if (err < 0) in mxs_gpio_probe()
327 port->base + PINCTRL_DOE(port), NULL, 0); in mxs_gpio_probe()
339 return 0; in mxs_gpio_probe()