7 #include <linux/kernel.h>
10 #include <linux/string.h>
17 #include <mach/hardware.h>
30 #define BIAS(a,b) static unsigned long a[] = { b }
60 #define DB8500_MUX_HOG(group,func) \
61 PIN_MAP_MUX_GROUP_HOG_DEFAULT("pinctrl-db8500", group, func)
62 #define DB8500_PIN_HOG(pin,conf) \
63 PIN_MAP_CONFIGS_PIN_HOG_DEFAULT("pinctrl-db8500", pin, conf)
64 #define DB8500_PIN_SLEEP(pin, conf, dev) \
65 PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \
69 #define DB8500_MUX(group,func,dev) \
70 PIN_MAP_MUX_GROUP_DEFAULT(dev, "pinctrl-db8500", group, func)
71 #define DB8500_PIN(pin,conf,dev) \
72 PIN_MAP_CONFIGS_PIN_DEFAULT(dev, "pinctrl-db8500", pin, conf)
73 #define DB8500_PIN_SLEEP(pin, conf, dev) \
74 PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \
77 #define DB8500_PIN_SLEEP(pin,conf,dev) \
78 PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \
150 DB8500_MUX(
"msp1txrx_a_1",
"msp1",
"ux500-msp-i2s.1"),
151 DB8500_MUX(
"msp1_a_1",
"msp1",
"ux500-msp-i2s.1"),
152 DB8500_PIN(
"GPIO33_AF2", out_lo_slpm_nowkup,
"ux500-msp-i2s.1"),
153 DB8500_PIN(
"GPIO34_AE1", in_nopull_slpm_nowkup,
"ux500-msp-i2s.1"),
154 DB8500_PIN(
"GPIO35_AE2", in_nopull_slpm_nowkup,
"ux500-msp-i2s.1"),
155 DB8500_PIN(
"GPIO36_AG2", in_nopull_slpm_nowkup,
"ux500-msp-i2s.1"),
162 DB8500_MUX(
"lcd_d8_d11_a_1",
"lcd",
"mcde-tvout"),
163 DB8500_MUX(
"lcdaclk_b_1",
"lcda",
"mcde-tvout"),
165 DB8500_MUX(
"lcdvsi1_a_1",
"lcd",
"av8100-hdmi"),
201 DB8500_PIN(
"GPIO209_AG15", in_nopull,
"sdi1"),
227 DB8500_PIN(
"GPIO202_AF25", in_nopull,
"sdi4"),
235 DB8500_PIN(
"GPIO257_AE29", out_hi,
"musb-ux500.0"),
238 DB8500_PIN(
"GPIO216_AG12", gpio_out_hi,
"spi2"),
281 DB8500_PIN(
"GPIO153_B17", in_pd_slpm_in_pu,
"ske"),
282 DB8500_PIN(
"GPIO154_C16", in_pd_slpm_in_pu,
"ske"),
283 DB8500_PIN(
"GPIO155_C19", in_pd_slpm_in_pu,
"ske"),
284 DB8500_PIN(
"GPIO156_C17", in_pd_slpm_in_pu,
"ske"),
285 DB8500_PIN(
"GPIO161_D21", in_pd_slpm_in_pu,
"ske"),
286 DB8500_PIN(
"GPIO162_D20", in_pd_slpm_in_pu,
"ske"),
287 DB8500_PIN(
"GPIO163_C20", in_pd_slpm_in_pu,
"ske"),
288 DB8500_PIN(
"GPIO164_B21", in_pd_slpm_in_pu,
"ske"),
289 DB8500_PIN(
"GPIO157_A18", in_pu_slpm_out_lo,
"ske"),
290 DB8500_PIN(
"GPIO158_C18", in_pu_slpm_out_lo,
"ske"),
291 DB8500_PIN(
"GPIO159_B19", in_pu_slpm_out_lo,
"ske"),
292 DB8500_PIN(
"GPIO160_B20", in_pu_slpm_out_lo,
"ske"),
293 DB8500_PIN(
"GPIO165_C21", in_pu_slpm_out_lo,
"ske"),
294 DB8500_PIN(
"GPIO166_A22", in_pu_slpm_out_lo,
"ske"),
295 DB8500_PIN(
"GPIO167_B24", in_pu_slpm_out_lo,
"ske"),
296 DB8500_PIN(
"GPIO168_C22", in_pu_slpm_out_lo,
"ske"),
396 DB8500_PIN(
"GPIO217_AH12", gpio_in_pu_slpm_gpio_nopull,
"gpio-keys.0"),
397 DB8500_PIN(
"GPIO145_C13", gpio_in_pd_slpm_gpio_nopull,
"gpio-keys.0"),
398 DB8500_PIN(
"GPIO139_C9", gpio_in_pu_slpm_gpio_nopull,
"gpio-keys.0"),
405 DB8500_PIN(
"GPIO153_B17", in_pd_slpm_in_pu,
"ske"),
406 DB8500_PIN(
"GPIO154_C16", in_pd_slpm_in_pu,
"ske"),
407 DB8500_PIN(
"GPIO155_C19", in_pd_slpm_in_pu,
"ske"),
408 DB8500_PIN(
"GPIO156_C17", in_pd_slpm_in_pu,
"ske"),
409 DB8500_PIN(
"GPIO161_D21", in_pd_slpm_in_pu,
"ske"),
410 DB8500_PIN(
"GPIO162_D20", in_pd_slpm_in_pu,
"ske"),
411 DB8500_PIN(
"GPIO163_C20", in_pd_slpm_in_pu,
"ske"),
412 DB8500_PIN(
"GPIO164_B21", in_pd_slpm_in_pu,
"ske"),
413 DB8500_PIN(
"GPIO157_A18", in_pu_slpm_out_lo,
"ske"),
414 DB8500_PIN(
"GPIO158_C18", in_pu_slpm_out_lo,
"ske"),
415 DB8500_PIN(
"GPIO159_B19", in_pu_slpm_out_lo,
"ske"),
416 DB8500_PIN(
"GPIO160_B20", in_pu_slpm_out_lo,
"ske"),
417 DB8500_PIN(
"GPIO165_C21", in_pu_slpm_out_lo,
"ske"),
418 DB8500_PIN(
"GPIO166_A22", in_pu_slpm_out_lo,
"ske"),
419 DB8500_PIN(
"GPIO167_B24", in_pu_slpm_out_lo,
"ske"),
420 DB8500_PIN(
"GPIO168_C22", in_pu_slpm_out_lo,
"ske"),
473 static int __init early_pinsfor(
char *
p)
477 if (
strcmp(p,
"u9500-21") == 0)
492 static void __init mop500_href_family_pinmaps_init(
void)
513 mop500_href_family_pinmaps_init();
532 mop500_href_family_pinmaps_init();