aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@stericsson.com>2012-06-29 05:03:03 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-07-03 15:51:09 -0400
commita3b0105765f0fd247077b04061060670724f68ec (patch)
tree2df97130e0385d13a2e83516c561f55808dfefc6 /drivers/pinctrl
parent7beea7f3bfd803b09f7d83ff0bac1d6ceb634e84 (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.c12
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 */
514static const unsigned smcs0_b_1_pins[] = { DB8500_PIN_E8 }; 514static const unsigned smcs0_b_1_pins[] = { DB8500_PIN_E8 };
515/* This chip select pin can be "ps1" in alt C so have it separately */
516static const unsigned smcs1_b_1_pins[] = { DB8500_PIN_B14 };
515static const unsigned ipgpio7_b_1_pins[] = { DB8500_PIN_B11 }; 517static const unsigned ipgpio7_b_1_pins[] = { DB8500_PIN_B11 };
516static const unsigned ipgpio2_b_1_pins[] = { DB8500_PIN_C12 }; 518static const unsigned ipgpio2_b_1_pins[] = { DB8500_PIN_C12 };
517static const unsigned ipgpio3_b_1_pins[] = { DB8500_PIN_C11 }; 519static const unsigned ipgpio3_b_1_pins[] = { DB8500_PIN_C11 };
@@ -573,6 +575,7 @@ static const unsigned mc2rstn_c_1_pins[] = { DB8500_PIN_C8 };
573static const unsigned kp_c_1_pins[] = { DB8500_PIN_C9, DB8500_PIN_B11, 575static 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 };
578static const unsigned smps0_c_1_pins[] = { DB8500_PIN_E8 };
576static const unsigned smps1_c_1_pins[] = { DB8500_PIN_B14 }; 579static const unsigned smps1_c_1_pins[] = { DB8500_PIN_B14 };
577static const unsigned u2rxtx_c_3_pins[] = { DB8500_PIN_B17, DB8500_PIN_C16 }; 580static const unsigned u2rxtx_c_3_pins[] = { DB8500_PIN_B17, DB8500_PIN_C16 };
578static const unsigned stmape_c_2_pins[] = { DB8500_PIN_C19, DB8500_PIN_C17, 581static 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",
769DB8500_FUNC_GROUPS(stmmod, "stmmod_b_1", "stmmod_c_1"); 774DB8500_FUNC_GROUPS(stmmod, "stmmod_b_1", "stmmod_c_1");
770DB8500_FUNC_GROUPS(spi3, "spi3_b_1"); 775DB8500_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 */
772DB8500_FUNC_GROUPS(sm, "sm_b_1", "smcs0_b_1", "smcleale_c_1", "smps1_c_1"); 777DB8500_FUNC_GROUPS(sm, "sm_b_1", "smcs0_b_1", "smcs1_b_1", "smcleale_c_1",
778 "smps0_c_1", "smps1_c_1");
773DB8500_FUNC_GROUPS(lcda, "lcdaclk_b_1", "lcda_b_1"); 779DB8500_FUNC_GROUPS(lcda, "lcdaclk_b_1", "lcda_b_1");
774DB8500_FUNC_GROUPS(ddrtrig, "ddrtrig_b_1"); 780DB8500_FUNC_GROUPS(ddrtrig, "ddrtrig_b_1");
775DB8500_FUNC_GROUPS(pwl, "pwl_b_1", "pwl_b_2", "pwl_b_3", "pwl_b_4"); 781DB8500_FUNC_GROUPS(pwl, "pwl_b_1", "pwl_b_2", "pwl_b_3", "pwl_b_4");