Lines Matching +full:0 +full:x40e00000

27 #define PGSR(x)		__REG2(0x40F00020, (x) << 2)
28 #define __GAFR(u, x) __REG2((u) ? 0x40E00058 : 0x40E00054, (x) << 3)
29 #define GAFR_L(x) __GAFR(0, x)
32 #define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
33 #define GPLR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5))
34 #define GPDR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x0c)
35 #define GPSR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x18)
36 #define GPCR(x) __REG2(0x40E00000, BANK_OFF((x) >> 5) + 0x24)
46 unsigned int mux_mask; /* bit mask of muxed gpio bits, 0 if no mux */
58 int uorl = !!(gpio & 0x10); /* GAFRx_U or GAFRx_L ? */ in __mfp_config_gpio()
59 int shft = (gpio & 0xf) << 1; in __mfp_config_gpio()
61 int is_out = (c & MFP_DIR_OUT) ? 1 : 0; in __mfp_config_gpio()
67 gafr = (uorl == 0) ? GAFR_L(bank) : GAFR_U(bank); in __mfp_config_gpio()
68 gafr = (gafr & ~(0x3 << shft)) | (fn << shft); in __mfp_config_gpio()
70 if (uorl == 0) in __mfp_config_gpio()
118 return 0; in __mfp_config_gpio()
139 for (i = 0, c = mfp_cfgs; i < num; i++, c++) { in pxa2xx_mfp_config()
142 if (gpio < 0) in pxa2xx_mfp_config()
160 if (gpio < 0) in pxa2xx_mfp_set_lpm()
189 if (d->keypad_gpio && (MFP_AF(d->config) == 0) && in gpio_set_wake()
195 return 0; in gpio_set_wake()
221 return 0; in gpio_set_wake()
231 for (i = 0; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
234 for (i = 0; i <= 15; i++) { in pxa25x_mfp_init()
257 unsigned int i, gpio, mask = 0; in keypad_set_wake()
260 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in keypad_set_wake()
266 if (MFP_AF(d->config) == 0) in keypad_set_wake()
277 return 0; in keypad_set_wake()
294 } while (0)
301 for (i = 0; i <= pxa_last_gpio; i++) { in pxa27x_mfp_init()
312 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in pxa27x_mfp_init()
320 for (i = 0; i <= 15; i++) { in pxa27x_mfp_init()
322 if (GPIO_bit(i) & 0x1e4) in pxa27x_mfp_init()
354 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
364 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_suspend()
365 saved_gafr[0][i] = GAFR_L(i); in pxa2xx_mfp_suspend()
376 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
385 return 0; in pxa2xx_mfp_suspend()
392 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_resume()
393 GAFR_L(i) = saved_gafr[0][i]; in pxa2xx_mfp_resume()
417 return 0; in pxa2xx_mfp_init()
429 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) in pxa2xx_mfp_init()
432 return 0; in pxa2xx_mfp_init()