Lines Matching +full:0 +full:x40e00000
26 #define PGSR(x) __REG2(0x40F00020, (x) << 2)
27 #define __GAFR(u, x) __REG2((u) ? 0x40E00058 : 0x40E00054, (x) << 3)
28 #define GAFR_L(x) __GAFR(0, x)
31 #define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
32 #define GPLR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5))
33 #define GPDR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x0c)
34 #define GPSR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x18)
35 #define GPCR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x24)
45 unsigned int mux_mask; /* bit mask of muxed gpio bits, 0 if no mux */
57 int uorl = !!(gpio & 0x10); /* GAFRx_U or GAFRx_L ? */ in __mfp_config_gpio()
58 int shft = (gpio & 0xf) << 1; in __mfp_config_gpio()
60 int is_out = (c & MFP_DIR_OUT) ? 1 : 0; in __mfp_config_gpio()
66 gafr = (uorl == 0) ? GAFR_L(bank) : GAFR_U(bank); in __mfp_config_gpio()
67 gafr = (gafr & ~(0x3 << shft)) | (fn << shft); in __mfp_config_gpio()
69 if (uorl == 0) in __mfp_config_gpio()
117 return 0; in __mfp_config_gpio()
138 for (i = 0, c = mfp_cfgs; i < num; i++, c++) { in pxa2xx_mfp_config()
141 if (gpio < 0) in pxa2xx_mfp_config()
159 if (gpio < 0) in pxa2xx_mfp_set_lpm()
188 if (d->keypad_gpio && (MFP_AF(d->config) == 0) && in gpio_set_wake()
194 return 0; in gpio_set_wake()
220 return 0; in gpio_set_wake()
234 for (i = 0; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
237 for (i = 0; i <= 15; i++) { in pxa25x_mfp_init()
260 unsigned int i, gpio, mask = 0; in keypad_set_wake()
263 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in keypad_set_wake()
269 if (MFP_AF(d->config) == 0) in keypad_set_wake()
280 return 0; in keypad_set_wake()
297 } while (0)
304 for (i = 0; i <= pxa_last_gpio; i++) { in pxa27x_mfp_init()
315 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in pxa27x_mfp_init()
323 for (i = 0; i <= 15; i++) { in pxa27x_mfp_init()
325 if (GPIO_bit(i) & 0x1e4) in pxa27x_mfp_init()
357 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
367 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_suspend()
368 saved_gafr[0][i] = GAFR_L(i); in pxa2xx_mfp_suspend()
379 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
388 return 0; in pxa2xx_mfp_suspend()
395 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_resume()
396 GAFR_L(i) = saved_gafr[0][i]; in pxa2xx_mfp_resume()
420 return 0; in pxa2xx_mfp_init()
432 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) in pxa2xx_mfp_init()
435 return 0; in pxa2xx_mfp_init()