diff options
author | Patrice Chotard <patrice.chotard@stericsson.com> | 2012-06-29 05:03:03 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-07-03 15:51:09 -0400 |
commit | a3b0105765f0fd247077b04061060670724f68ec (patch) | |
tree | 2df97130e0385d13a2e83516c561f55808dfefc6 /drivers/pinctrl | |
parent | 7beea7f3bfd803b09f7d83ff0bac1d6ceb634e84 (diff) |
pinctrl/nomadik: add pin group smcs1 and smps0
Add smcs1_b_1_pins as DB8500_PIN_B14 can be SM_CS1 in alt B
Add smps0_c_1_pins as DB8500_PIN_E8 can be SM_PS0 in alt C
Signed-off-by: Patrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik-db8500.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-nomadik-db8500.c b/drivers/pinctrl/pinctrl-nomadik-db8500.c index 4f2a82c66300..9e7f379b84d8 100644 --- a/drivers/pinctrl/pinctrl-nomadik-db8500.c +++ b/drivers/pinctrl/pinctrl-nomadik-db8500.c | |||
@@ -509,9 +509,11 @@ static const unsigned sm_b_1_pins[] = { DB8500_PIN_C6, DB8500_PIN_B3, | |||
509 | DB8500_PIN_D9, DB8500_PIN_A5, DB8500_PIN_B4, DB8500_PIN_C8, | 509 | DB8500_PIN_D9, DB8500_PIN_A5, DB8500_PIN_B4, DB8500_PIN_C8, |
510 | DB8500_PIN_A12, DB8500_PIN_C10, DB8500_PIN_B10, DB8500_PIN_B9, | 510 | DB8500_PIN_A12, DB8500_PIN_C10, DB8500_PIN_B10, DB8500_PIN_B9, |
511 | DB8500_PIN_A9, DB8500_PIN_C7, DB8500_PIN_A7, DB8500_PIN_C5, | 511 | DB8500_PIN_A9, DB8500_PIN_C7, DB8500_PIN_A7, DB8500_PIN_C5, |
512 | DB8500_PIN_C9, DB8500_PIN_B14 }; | 512 | DB8500_PIN_C9 }; |
513 | /* This chip select pin can be "ps0" in alt B so have it separately */ | 513 | /* This chip select pin can be "ps0" in alt C so have it separately */ |
514 | static const unsigned smcs0_b_1_pins[] = { DB8500_PIN_E8 }; | 514 | static const unsigned smcs0_b_1_pins[] = { DB8500_PIN_E8 }; |
515 | /* This chip select pin can be "ps1" in alt C so have it separately */ | ||
516 | static const unsigned smcs1_b_1_pins[] = { DB8500_PIN_B14 }; | ||
515 | static const unsigned ipgpio7_b_1_pins[] = { DB8500_PIN_B11 }; | 517 | static const unsigned ipgpio7_b_1_pins[] = { DB8500_PIN_B11 }; |
516 | static const unsigned ipgpio2_b_1_pins[] = { DB8500_PIN_C12 }; | 518 | static const unsigned ipgpio2_b_1_pins[] = { DB8500_PIN_C12 }; |
517 | static const unsigned ipgpio3_b_1_pins[] = { DB8500_PIN_C11 }; | 519 | static const unsigned ipgpio3_b_1_pins[] = { DB8500_PIN_C11 }; |
@@ -573,6 +575,7 @@ static const unsigned mc2rstn_c_1_pins[] = { DB8500_PIN_C8 }; | |||
573 | static const unsigned kp_c_1_pins[] = { DB8500_PIN_C9, DB8500_PIN_B11, | 575 | static const unsigned kp_c_1_pins[] = { DB8500_PIN_C9, DB8500_PIN_B11, |
574 | DB8500_PIN_C12, DB8500_PIN_C11, DB8500_PIN_D17, DB8500_PIN_D16, | 576 | DB8500_PIN_C12, DB8500_PIN_C11, DB8500_PIN_D17, DB8500_PIN_D16, |
575 | DB8500_PIN_C23, DB8500_PIN_D23 }; | 577 | DB8500_PIN_C23, DB8500_PIN_D23 }; |
578 | static const unsigned smps0_c_1_pins[] = { DB8500_PIN_E8 }; | ||
576 | static const unsigned smps1_c_1_pins[] = { DB8500_PIN_B14 }; | 579 | static const unsigned smps1_c_1_pins[] = { DB8500_PIN_B14 }; |
577 | static const unsigned u2rxtx_c_3_pins[] = { DB8500_PIN_B17, DB8500_PIN_C16 }; | 580 | static const unsigned u2rxtx_c_3_pins[] = { DB8500_PIN_B17, DB8500_PIN_C16 }; |
578 | static const unsigned stmape_c_2_pins[] = { DB8500_PIN_C19, DB8500_PIN_C17, | 581 | static const unsigned stmape_c_2_pins[] = { DB8500_PIN_C19, DB8500_PIN_C17, |
@@ -654,6 +657,7 @@ static const struct nmk_pingroup nmk_db8500_groups[] = { | |||
654 | DB8500_PIN_GROUP(kp_b_1, NMK_GPIO_ALT_B), | 657 | DB8500_PIN_GROUP(kp_b_1, NMK_GPIO_ALT_B), |
655 | DB8500_PIN_GROUP(sm_b_1, NMK_GPIO_ALT_B), | 658 | DB8500_PIN_GROUP(sm_b_1, NMK_GPIO_ALT_B), |
656 | DB8500_PIN_GROUP(smcs0_b_1, NMK_GPIO_ALT_B), | 659 | DB8500_PIN_GROUP(smcs0_b_1, NMK_GPIO_ALT_B), |
660 | DB8500_PIN_GROUP(smcs1_b_1, NMK_GPIO_ALT_B), | ||
657 | DB8500_PIN_GROUP(ipgpio7_b_1, NMK_GPIO_ALT_B), | 661 | DB8500_PIN_GROUP(ipgpio7_b_1, NMK_GPIO_ALT_B), |
658 | DB8500_PIN_GROUP(ipgpio2_b_1, NMK_GPIO_ALT_B), | 662 | DB8500_PIN_GROUP(ipgpio2_b_1, NMK_GPIO_ALT_B), |
659 | DB8500_PIN_GROUP(ipgpio3_b_1, NMK_GPIO_ALT_B), | 663 | DB8500_PIN_GROUP(ipgpio3_b_1, NMK_GPIO_ALT_B), |
@@ -694,6 +698,7 @@ static const struct nmk_pingroup nmk_db8500_groups[] = { | |||
694 | DB8500_PIN_GROUP(mc5_c_1, NMK_GPIO_ALT_C), | 698 | DB8500_PIN_GROUP(mc5_c_1, NMK_GPIO_ALT_C), |
695 | DB8500_PIN_GROUP(mc2rstn_c_1, NMK_GPIO_ALT_C), | 699 | DB8500_PIN_GROUP(mc2rstn_c_1, NMK_GPIO_ALT_C), |
696 | DB8500_PIN_GROUP(kp_c_1, NMK_GPIO_ALT_C), | 700 | DB8500_PIN_GROUP(kp_c_1, NMK_GPIO_ALT_C), |
701 | DB8500_PIN_GROUP(smps0_c_1, NMK_GPIO_ALT_C), | ||
697 | DB8500_PIN_GROUP(smps1_c_1, NMK_GPIO_ALT_C), | 702 | DB8500_PIN_GROUP(smps1_c_1, NMK_GPIO_ALT_C), |
698 | DB8500_PIN_GROUP(u2rxtx_c_3, NMK_GPIO_ALT_C), | 703 | DB8500_PIN_GROUP(u2rxtx_c_3, NMK_GPIO_ALT_C), |
699 | DB8500_PIN_GROUP(stmape_c_2, NMK_GPIO_ALT_C), | 704 | DB8500_PIN_GROUP(stmape_c_2, NMK_GPIO_ALT_C), |
@@ -769,7 +774,8 @@ DB8500_FUNC_GROUPS(uartmod, "uartmodtx_b_1", "uartmodrx_b_1", "uartmodrx_b_2", | |||
769 | DB8500_FUNC_GROUPS(stmmod, "stmmod_b_1", "stmmod_c_1"); | 774 | DB8500_FUNC_GROUPS(stmmod, "stmmod_b_1", "stmmod_c_1"); |
770 | DB8500_FUNC_GROUPS(spi3, "spi3_b_1"); | 775 | DB8500_FUNC_GROUPS(spi3, "spi3_b_1"); |
771 | /* Select between CS0 on alt B or PS1 on alt C */ | 776 | /* Select between CS0 on alt B or PS1 on alt C */ |
772 | DB8500_FUNC_GROUPS(sm, "sm_b_1", "smcs0_b_1", "smcleale_c_1", "smps1_c_1"); | 777 | DB8500_FUNC_GROUPS(sm, "sm_b_1", "smcs0_b_1", "smcs1_b_1", "smcleale_c_1", |
778 | "smps0_c_1", "smps1_c_1"); | ||
773 | DB8500_FUNC_GROUPS(lcda, "lcdaclk_b_1", "lcda_b_1"); | 779 | DB8500_FUNC_GROUPS(lcda, "lcdaclk_b_1", "lcda_b_1"); |
774 | DB8500_FUNC_GROUPS(ddrtrig, "ddrtrig_b_1"); | 780 | DB8500_FUNC_GROUPS(ddrtrig, "ddrtrig_b_1"); |
775 | DB8500_FUNC_GROUPS(pwl, "pwl_b_1", "pwl_b_2", "pwl_b_3", "pwl_b_4"); | 781 | DB8500_FUNC_GROUPS(pwl, "pwl_b_1", "pwl_b_2", "pwl_b_3", "pwl_b_4"); |