diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-11-13 09:59:40 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-26 15:01:55 -0500 |
commit | a12f703c5a27e2061fd0ea77200e5e2f8cfee54b (patch) | |
tree | 7fe922b21ee34e0c1a1ea6971adc91d1f92df695 /arch/arm/mach-ux500 | |
parent | a45cb698a7db6c623214a5345a32a4ce724ca560 (diff) |
ARM: ux500: move MUSB pin config to device tree
This moves the MUSB pin control table out of the board file
and into the device tree. Tie the config to the on-chip MUSB
device rather than the ab8500-usb device which is off-chip.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index c032392294a0..a6d431bd0659 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -30,7 +30,6 @@ BIAS(pd, PIN_PULL_DOWN); | |||
30 | BIAS(in_nopull, PIN_INPUT_NOPULL); | 30 | BIAS(in_nopull, PIN_INPUT_NOPULL); |
31 | BIAS(in_pu, PIN_INPUT_PULLUP); | 31 | BIAS(in_pu, PIN_INPUT_PULLUP); |
32 | BIAS(in_pd, PIN_INPUT_PULLDOWN); | 32 | BIAS(in_pd, PIN_INPUT_PULLDOWN); |
33 | BIAS(out_hi, PIN_OUTPUT_HIGH); | ||
34 | BIAS(out_lo, PIN_OUTPUT_LOW); | 33 | BIAS(out_lo, PIN_OUTPUT_LOW); |
35 | 34 | ||
36 | BIAS(abx500_out_lo, PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0)); | 35 | BIAS(abx500_out_lo, PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0)); |
@@ -47,18 +46,12 @@ BIAS(gpio_out_lo, PIN_OUTPUT_LOW|PIN_GPIOMODE_ENABLED); | |||
47 | /* Sleep modes */ | 46 | /* Sleep modes */ |
48 | BIAS(slpm_in_wkup_pdis, PIN_SLEEPMODE_ENABLED| | 47 | BIAS(slpm_in_wkup_pdis, PIN_SLEEPMODE_ENABLED| |
49 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | 48 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); |
50 | BIAS(slpm_in_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| | ||
51 | PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); | ||
52 | BIAS(slpm_wkup_pdis, PIN_SLEEPMODE_ENABLED| | 49 | BIAS(slpm_wkup_pdis, PIN_SLEEPMODE_ENABLED| |
53 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | 50 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); |
54 | BIAS(slpm_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| | ||
55 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); | ||
56 | BIAS(slpm_out_lo_pdis, PIN_SLEEPMODE_ENABLED| | 51 | BIAS(slpm_out_lo_pdis, PIN_SLEEPMODE_ENABLED| |
57 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_DISABLE|PIN_SLPM_PDIS_DISABLED); | 52 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_DISABLE|PIN_SLPM_PDIS_DISABLED); |
58 | BIAS(slpm_out_lo_wkup_pdis, PIN_SLEEPMODE_ENABLED| | 53 | BIAS(slpm_out_lo_wkup_pdis, PIN_SLEEPMODE_ENABLED| |
59 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | 54 | PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); |
60 | BIAS(slpm_out_hi_wkup_pdis, PIN_SLEEPMODE_ENABLED|PIN_SLPM_OUTPUT_HIGH| | ||
61 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); | ||
62 | BIAS(slpm_in_pu_wkup_pdis_en, PIN_SLEEPMODE_ENABLED|PIN_SLPM_INPUT_PULLUP| | 55 | BIAS(slpm_in_pu_wkup_pdis_en, PIN_SLEEPMODE_ENABLED|PIN_SLPM_INPUT_PULLUP| |
63 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); | 56 | PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); |
64 | 57 | ||
@@ -349,24 +342,6 @@ static struct pinctrl_map __initdata mop500_family_pinmap[] = { | |||
349 | /* LCD VSI1 sleep state */ | 342 | /* LCD VSI1 sleep state */ |
350 | DB8500_PIN_SLEEP("GPIO69_E2", slpm_in_wkup_pdis, "0-0070"), | 343 | DB8500_PIN_SLEEP("GPIO69_E2", slpm_in_wkup_pdis, "0-0070"), |
351 | 344 | ||
352 | /* Mux in USB pins, drive STP high */ | ||
353 | /* USB default state */ | ||
354 | DB8500_MUX("usb_a_1", "usb", "ab8500-usb.0"), | ||
355 | DB8500_PIN("GPIO257_AE29", out_hi, "ab8500-usb.0"), /* STP */ | ||
356 | /* USB sleep state */ | ||
357 | DB8500_PIN_SLEEP("GPIO256_AF28", slpm_wkup_pdis_en, "ab8500-usb.0"), /* NXT */ | ||
358 | DB8500_PIN_SLEEP("GPIO257_AE29", slpm_out_hi_wkup_pdis, "ab8500-usb.0"), /* STP */ | ||
359 | DB8500_PIN_SLEEP("GPIO258_AD29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* XCLK */ | ||
360 | DB8500_PIN_SLEEP("GPIO259_AC29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* DIR */ | ||
361 | DB8500_PIN_SLEEP("GPIO260_AD28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT7 */ | ||
362 | DB8500_PIN_SLEEP("GPIO261_AD26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT6 */ | ||
363 | DB8500_PIN_SLEEP("GPIO262_AE26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT5 */ | ||
364 | DB8500_PIN_SLEEP("GPIO263_AG29", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT4 */ | ||
365 | DB8500_PIN_SLEEP("GPIO264_AE27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT3 */ | ||
366 | DB8500_PIN_SLEEP("GPIO265_AD27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT2 */ | ||
367 | DB8500_PIN_SLEEP("GPIO266_AC28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT1 */ | ||
368 | DB8500_PIN_SLEEP("GPIO267_AC27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT0 */ | ||
369 | |||
370 | /* Mux in SPI2 pins on the "other C1" altfunction */ | 345 | /* Mux in SPI2 pins on the "other C1" altfunction */ |
371 | DB8500_MUX("spi2_oc1_2", "spi2", "spi2"), | 346 | DB8500_MUX("spi2_oc1_2", "spi2", "spi2"), |
372 | DB8500_PIN("GPIO216_AG12", gpio_out_hi, "spi2"), /* FRM */ | 347 | DB8500_PIN("GPIO216_AG12", gpio_out_hi, "spi2"), /* FRM */ |