diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-pins.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index 0a3f30df1eb8..152ae38cd18c 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -48,8 +48,12 @@ BIAS(slpm_in_nopull_wkup, PIN_SLEEPMODE_ENABLED| | |||
48 | PIN_SLPM_DIR_INPUT|PIN_SLPM_PULL_NONE|PIN_SLPM_WAKEUP_ENABLE); | 48 | PIN_SLPM_DIR_INPUT|PIN_SLPM_PULL_NONE|PIN_SLPM_WAKEUP_ENABLE); |
49 | BIAS(slpm_in_wkup_pdis, PIN_SLEEPMODE_ENABLED| | 49 | BIAS(slpm_in_wkup_pdis, PIN_SLEEPMODE_ENABLED| |
50 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | 50 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); |
51 | BIAS(slpm_in_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| | ||
52 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); | ||
51 | BIAS(slpm_wkup_pdis, PIN_SLEEPMODE_ENABLED| | 53 | BIAS(slpm_wkup_pdis, PIN_SLEEPMODE_ENABLED| |
52 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | 54 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); |
55 | BIAS(slpm_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| | ||
56 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); | ||
53 | BIAS(slpm_out_lo_pdis, PIN_SLEEPMODE_ENABLED| | 57 | BIAS(slpm_out_lo_pdis, PIN_SLEEPMODE_ENABLED| |
54 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_DISABLE|PIN_SLPM_PDIS_DISABLED); | 58 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_DISABLE|PIN_SLPM_PDIS_DISABLED); |
55 | BIAS(slpm_out_lo_wkup, PIN_SLEEPMODE_ENABLED| | 59 | BIAS(slpm_out_lo_wkup, PIN_SLEEPMODE_ENABLED| |
@@ -78,9 +82,6 @@ BIAS(out_wkup_pdis, PIN_SLPM_DIR_OUTPUT|PIN_SLPM_WAKEUP_ENABLE| | |||
78 | PIN_MAP_MUX_GROUP_HOG_DEFAULT("pinctrl-db8500", group, func) | 82 | PIN_MAP_MUX_GROUP_HOG_DEFAULT("pinctrl-db8500", group, func) |
79 | #define DB8500_PIN_HOG(pin,conf) \ | 83 | #define DB8500_PIN_HOG(pin,conf) \ |
80 | PIN_MAP_CONFIGS_PIN_HOG_DEFAULT("pinctrl-db8500", pin, conf) | 84 | PIN_MAP_CONFIGS_PIN_HOG_DEFAULT("pinctrl-db8500", pin, conf) |
81 | #define DB8500_PIN_SLEEP(pin, conf, dev) \ | ||
82 | PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_SLEEP, "pinctrl-db8500", \ | ||
83 | pin, conf) | ||
84 | 85 | ||
85 | /* These are default states associated with device and changed runtime */ | 86 | /* These are default states associated with device and changed runtime */ |
86 | #define DB8500_MUX(group,func,dev) \ | 87 | #define DB8500_MUX(group,func,dev) \ |
@@ -309,8 +310,23 @@ static struct pinctrl_map __initdata mop500_family_pinmap[] = { | |||
309 | DB8500_PIN_SLEEP("GPIO207_AJ23", slpm_in_wkup_pdis, "sdi4"), /* DAT4 */ | 310 | DB8500_PIN_SLEEP("GPIO207_AJ23", slpm_in_wkup_pdis, "sdi4"), /* DAT4 */ |
310 | 311 | ||
311 | /* Mux in USB pins, drive STP high */ | 312 | /* Mux in USB pins, drive STP high */ |
312 | DB8500_MUX("usb_a_1", "usb", "musb-ux500.0"), | 313 | /* USB default state */ |
313 | DB8500_PIN("GPIO257_AE29", out_hi, "musb-ux500.0"), /* STP */ | 314 | DB8500_MUX("usb_a_1", "usb", "ab8500-usb.0"), |
315 | DB8500_PIN("GPIO257_AE29", out_hi, "ab8500-usb.0"), /* STP */ | ||
316 | /* USB sleep state */ | ||
317 | DB8500_PIN_SLEEP("GPIO256_AF28", slpm_wkup_pdis_en, "ab8500-usb.0"), /* NXT */ | ||
318 | DB8500_PIN_SLEEP("GPIO257_AE29", slpm_out_hi_wkup_pdis, "ab8500-usb.0"), /* STP */ | ||
319 | DB8500_PIN_SLEEP("GPIO258_AD29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* XCLK */ | ||
320 | DB8500_PIN_SLEEP("GPIO259_AC29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* DIR */ | ||
321 | DB8500_PIN_SLEEP("GPIO260_AD28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT7 */ | ||
322 | DB8500_PIN_SLEEP("GPIO261_AD26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT6 */ | ||
323 | DB8500_PIN_SLEEP("GPIO262_AE26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT5 */ | ||
324 | DB8500_PIN_SLEEP("GPIO263_AG29", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT4 */ | ||
325 | DB8500_PIN_SLEEP("GPIO264_AE27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT3 */ | ||
326 | DB8500_PIN_SLEEP("GPIO265_AD27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT2 */ | ||
327 | DB8500_PIN_SLEEP("GPIO266_AC28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT1 */ | ||
328 | DB8500_PIN_SLEEP("GPIO267_AC27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT0 */ | ||
329 | |||
314 | /* Mux in SPI2 pins on the "other C1" altfunction */ | 330 | /* Mux in SPI2 pins on the "other C1" altfunction */ |
315 | DB8500_MUX("spi2_oc1_2", "spi2", "spi2"), | 331 | DB8500_MUX("spi2_oc1_2", "spi2", "spi2"), |
316 | DB8500_PIN("GPIO216_AG12", gpio_out_hi, "spi2"), /* FRM */ | 332 | DB8500_PIN("GPIO216_AG12", gpio_out_hi, "spi2"), /* FRM */ |
@@ -318,9 +334,9 @@ static struct pinctrl_map __initdata mop500_family_pinmap[] = { | |||
318 | DB8500_PIN("GPIO215_AH13", out_lo, "spi2"), /* TXD */ | 334 | DB8500_PIN("GPIO215_AH13", out_lo, "spi2"), /* TXD */ |
319 | DB8500_PIN("GPIO217_AH12", out_lo, "spi2"), /* CLK */ | 335 | DB8500_PIN("GPIO217_AH12", out_lo, "spi2"), /* CLK */ |
320 | /* SPI2 idle state */ | 336 | /* SPI2 idle state */ |
321 | DB8500_PIN_SLEEP("GPIO218_AH11", slpm_in_wkup_pdis, "spi2"), /* RXD */ | 337 | DB8500_PIN_IDLE("GPIO218_AH11", slpm_in_wkup_pdis, "spi2"), /* RXD */ |
322 | DB8500_PIN_SLEEP("GPIO215_AH13", slpm_out_lo_wkup_pdis, "spi2"), /* TXD */ | 338 | DB8500_PIN_IDLE("GPIO215_AH13", slpm_out_lo_wkup_pdis, "spi2"), /* TXD */ |
323 | DB8500_PIN_SLEEP("GPIO217_AH12", slpm_wkup_pdis, "spi2"), /* CLK */ | 339 | DB8500_PIN_IDLE("GPIO217_AH12", slpm_wkup_pdis, "spi2"), /* CLK */ |
324 | /* SPI2 sleep state */ | 340 | /* SPI2 sleep state */ |
325 | DB8500_PIN_SLEEP("GPIO216_AG12", slpm_in_wkup_pdis, "spi2"), /* FRM */ | 341 | DB8500_PIN_SLEEP("GPIO216_AG12", slpm_in_wkup_pdis, "spi2"), /* FRM */ |
326 | DB8500_PIN_SLEEP("GPIO218_AH11", slpm_in_wkup_pdis, "spi2"), /* RXD */ | 342 | DB8500_PIN_SLEEP("GPIO218_AH11", slpm_in_wkup_pdis, "spi2"), /* RXD */ |
@@ -747,6 +763,8 @@ static struct pinctrl_map __initdata snowball_pinmap[] = { | |||
747 | DB8500_PIN_HOG("GPIO21_AB3", out_hi), | 763 | DB8500_PIN_HOG("GPIO21_AB3", out_hi), |
748 | /* Mux in "SM" which is used for the SMSC911x Ethernet adapter */ | 764 | /* Mux in "SM" which is used for the SMSC911x Ethernet adapter */ |
749 | DB8500_MUX_HOG("sm_b_1", "sm"), | 765 | DB8500_MUX_HOG("sm_b_1", "sm"), |
766 | /* User LED */ | ||
767 | DB8500_PIN_HOG("GPIO142_C11", gpio_out_hi), | ||
750 | /* Drive RSTn_LAN high */ | 768 | /* Drive RSTn_LAN high */ |
751 | DB8500_PIN_HOG("GPIO141_C12", gpio_out_hi), | 769 | DB8500_PIN_HOG("GPIO141_C12", gpio_out_hi), |
752 | /* Accelerometer/Magnetometer */ | 770 | /* Accelerometer/Magnetometer */ |