diff options
Diffstat (limited to 'drivers/pinctrl/spear/pinctrl-spear3xx.c')
| -rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear3xx.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-spear3xx.c b/drivers/pinctrl/spear/pinctrl-spear3xx.c index 0242378f7cb8..12ee21af766b 100644 --- a/drivers/pinctrl/spear/pinctrl-spear3xx.c +++ b/drivers/pinctrl/spear/pinctrl-spear3xx.c | |||
| @@ -481,7 +481,44 @@ struct spear_function spear3xx_timer_2_3_function = { | |||
| 481 | .ngroups = ARRAY_SIZE(timer_2_3_grps), | 481 | .ngroups = ARRAY_SIZE(timer_2_3_grps), |
| 482 | }; | 482 | }; |
| 483 | 483 | ||
| 484 | /* Define muxreg arrays */ | ||
| 485 | DEFINE_MUXREG(firda_pins, 0, PMX_FIRDA_MASK, 0); | ||
| 486 | DEFINE_MUXREG(i2c_pins, 0, PMX_I2C_MASK, 0); | ||
| 487 | DEFINE_MUXREG(ssp_cs_pins, 0, PMX_SSP_CS_MASK, 0); | ||
| 488 | DEFINE_MUXREG(ssp_pins, 0, PMX_SSP_MASK, 0); | ||
| 489 | DEFINE_MUXREG(mii_pins, 0, PMX_MII_MASK, 0); | ||
| 490 | DEFINE_MUXREG(gpio0_pin0_pins, 0, PMX_GPIO_PIN0_MASK, 0); | ||
| 491 | DEFINE_MUXREG(gpio0_pin1_pins, 0, PMX_GPIO_PIN1_MASK, 0); | ||
| 492 | DEFINE_MUXREG(gpio0_pin2_pins, 0, PMX_GPIO_PIN2_MASK, 0); | ||
| 493 | DEFINE_MUXREG(gpio0_pin3_pins, 0, PMX_GPIO_PIN3_MASK, 0); | ||
| 494 | DEFINE_MUXREG(gpio0_pin4_pins, 0, PMX_GPIO_PIN4_MASK, 0); | ||
| 495 | DEFINE_MUXREG(gpio0_pin5_pins, 0, PMX_GPIO_PIN5_MASK, 0); | ||
| 496 | DEFINE_MUXREG(uart0_ext_pins, 0, PMX_UART0_MODEM_MASK, 0); | ||
| 497 | DEFINE_MUXREG(uart0_pins, 0, PMX_UART0_MASK, 0); | ||
| 498 | DEFINE_MUXREG(timer_0_1_pins, 0, PMX_TIMER_0_1_MASK, 0); | ||
| 499 | DEFINE_MUXREG(timer_2_3_pins, 0, PMX_TIMER_2_3_MASK, 0); | ||
| 500 | |||
| 501 | static struct spear_gpio_pingroup spear3xx_gpio_pingroup[] = { | ||
| 502 | GPIO_PINGROUP(firda_pins), | ||
| 503 | GPIO_PINGROUP(i2c_pins), | ||
| 504 | GPIO_PINGROUP(ssp_cs_pins), | ||
| 505 | GPIO_PINGROUP(ssp_pins), | ||
| 506 | GPIO_PINGROUP(mii_pins), | ||
| 507 | GPIO_PINGROUP(gpio0_pin0_pins), | ||
| 508 | GPIO_PINGROUP(gpio0_pin1_pins), | ||
| 509 | GPIO_PINGROUP(gpio0_pin2_pins), | ||
| 510 | GPIO_PINGROUP(gpio0_pin3_pins), | ||
| 511 | GPIO_PINGROUP(gpio0_pin4_pins), | ||
| 512 | GPIO_PINGROUP(gpio0_pin5_pins), | ||
| 513 | GPIO_PINGROUP(uart0_ext_pins), | ||
| 514 | GPIO_PINGROUP(uart0_pins), | ||
| 515 | GPIO_PINGROUP(timer_0_1_pins), | ||
| 516 | GPIO_PINGROUP(timer_2_3_pins), | ||
| 517 | }; | ||
| 518 | |||
| 484 | struct spear_pinctrl_machdata spear3xx_machdata = { | 519 | struct spear_pinctrl_machdata spear3xx_machdata = { |
| 485 | .pins = spear3xx_pins, | 520 | .pins = spear3xx_pins, |
| 486 | .npins = ARRAY_SIZE(spear3xx_pins), | 521 | .npins = ARRAY_SIZE(spear3xx_pins), |
| 522 | .gpio_pingroups = spear3xx_gpio_pingroup, | ||
| 523 | .ngpio_pingroups = ARRAY_SIZE(spear3xx_gpio_pingroup), | ||
| 487 | }; | 524 | }; |
