aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pinctrl/qcom/pinctrl-msm8660.c68
1 files changed, 46 insertions, 22 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm8660.c b/drivers/pinctrl/qcom/pinctrl-msm8660.c
index 98eb0e33df84..5591d093bf78 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm8660.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm8660.c
@@ -506,6 +506,7 @@ enum msm8660_functions {
506 MSM_MUX_usb_fs2_oe_n, 506 MSM_MUX_usb_fs2_oe_n,
507 MSM_MUX_vfe, 507 MSM_MUX_vfe,
508 MSM_MUX_vsens_alarm, 508 MSM_MUX_vsens_alarm,
509 MSM_MUX_ebi2cs,
509 MSM_MUX_ebi2, 510 MSM_MUX_ebi2,
510 MSM_MUX__, 511 MSM_MUX__,
511}; 512};
@@ -697,13 +698,35 @@ static const char * const vfe_groups[] = {
697static const char * const vsens_alarm_groups[] = { 698static const char * const vsens_alarm_groups[] = {
698 "gpio127" 699 "gpio127"
699}; 700};
701static const char * const ebi2cs_groups[] = {
702 "gpio39", /* CS1A */
703 "gpio40", /* CS2A */
704 "gpio123", /* CS1B */
705 "gpio124", /* CS2B */
706 "gpio131", /* CS5 */
707 "gpio132", /* CS4 */
708 "gpio133", /* CS3 */
709 "gpio134", /* CS0 */
710};
700static const char * const ebi2_groups[] = { 711static const char * const ebi2_groups[] = {
701 "gpio39", "gpio40", "gpio123", "gpio124", "gpio125", "gpio126", 712 /* ADDR9 & ADDR8 */
702 "gpio127", "gpio128", "gpio129", "gpio130", "gpio132", "gpio133", 713 "gpio37", "gpio38",
703 "gpio134", "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", 714 /* ADDR7 - ADDR 0 */
704 "gpio140", "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", 715 "gpio123", "gpio124", "gpio125", "gpio126",
705 "gpio146", "gpio147", "gpio148", "gpio149", "gpio150", "gpio151", 716 "gpio127", "gpio128", "gpio129", "gpio130",
706 "gpio153", "gpio157" 717 /* (muxed address+data) AD15 - AD0 */
718 "gpio135", "gpio136", "gpio137", "gpio138", "gpio139",
719 "gpio140", "gpio141", "gpio142", "gpio143", "gpio144",
720 "gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
721 "gpio150",
722 "gpio151", /* OE output enable */
723 "gpio152", /* clock */
724 "gpio153", /* ADV */
725 "gpio154", /* WAIT (input) */
726 "gpio155", /* UB Upper Byte Enable */
727 "gpio156", /* LB Lower Byte Enable */
728 "gpio157", /* WE Write Enable */
729 "gpio158", /* busy */
707}; 730};
708 731
709static const struct msm_function msm8660_functions[] = { 732static const struct msm_function msm8660_functions[] = {
@@ -758,7 +781,8 @@ static const struct msm_function msm8660_functions[] = {
758 FUNCTION(usb_fs2_oe_n), 781 FUNCTION(usb_fs2_oe_n),
759 FUNCTION(vfe), 782 FUNCTION(vfe),
760 FUNCTION(vsens_alarm), 783 FUNCTION(vsens_alarm),
761 FUNCTION(ebi2), 784 FUNCTION(ebi2cs), /* for EBI2 chip selects */
785 FUNCTION(ebi2), /* for general EBI2 pins */
762}; 786};
763 787
764static const struct msm_pingroup msm8660_groups[] = { 788static const struct msm_pingroup msm8660_groups[] = {
@@ -799,10 +823,10 @@ static const struct msm_pingroup msm8660_groups[] = {
799 PINGROUP(34, gsbi1, _, _, _, _, _, _), 823 PINGROUP(34, gsbi1, _, _, _, _, _, _),
800 PINGROUP(35, gsbi1, _, _, _, _, _, _), 824 PINGROUP(35, gsbi1, _, _, _, _, _, _),
801 PINGROUP(36, gsbi1, _, _, _, _, _, _), 825 PINGROUP(36, gsbi1, _, _, _, _, _, _),
802 PINGROUP(37, gsbi2, _, _, _, _, _, _), 826 PINGROUP(37, gsbi2, ebi2, _, _, _, _, _),
803 PINGROUP(38, gsbi2, _, _, _, _, _, _), 827 PINGROUP(38, gsbi2, ebi2, _, _, _, _, _),
804 PINGROUP(39, gsbi2, ebi2, mdp_vsync, _, _, _, _), 828 PINGROUP(39, gsbi2, ebi2cs, mdp_vsync, _, _, _, _),
805 PINGROUP(40, gsbi2, ebi2, _, _, _, _, _), 829 PINGROUP(40, gsbi2, ebi2cs, _, _, _, _, _),
806 PINGROUP(41, gsbi3, mdp_vsync, _, _, _, _, _), 830 PINGROUP(41, gsbi3, mdp_vsync, _, _, _, _, _),
807 PINGROUP(42, gsbi3, vfe, _, _, _, _, _), 831 PINGROUP(42, gsbi3, vfe, _, _, _, _, _),
808 PINGROUP(43, gsbi3, _, _, _, _, _, _), 832 PINGROUP(43, gsbi3, _, _, _, _, _, _),
@@ -885,18 +909,18 @@ static const struct msm_pingroup msm8660_groups[] = {
885 PINGROUP(120, i2s, _, _, _, _, _, _), 909 PINGROUP(120, i2s, _, _, _, _, _, _),
886 PINGROUP(121, i2s, _, _, _, _, _, _), 910 PINGROUP(121, i2s, _, _, _, _, _, _),
887 PINGROUP(122, i2s, gp_clk_1b, _, _, _, _, _), 911 PINGROUP(122, i2s, gp_clk_1b, _, _, _, _, _),
888 PINGROUP(123, ebi2, gsbi2_spi_cs1_n, _, _, _, _, _), 912 PINGROUP(123, ebi2, gsbi2_spi_cs1_n, ebi2cs, _, _, _, _),
889 PINGROUP(124, ebi2, gsbi2_spi_cs2_n, _, _, _, _, _), 913 PINGROUP(124, ebi2, gsbi2_spi_cs2_n, ebi2cs, _, _, _, _),
890 PINGROUP(125, ebi2, gsbi2_spi_cs3_n, _, _, _, _, _), 914 PINGROUP(125, ebi2, gsbi2_spi_cs3_n, _, _, _, _, _),
891 PINGROUP(126, ebi2, _, _, _, _, _, _), 915 PINGROUP(126, ebi2, _, _, _, _, _, _),
892 PINGROUP(127, ebi2, vsens_alarm, _, _, _, _, _), 916 PINGROUP(127, ebi2, vsens_alarm, _, _, _, _, _),
893 PINGROUP(128, ebi2, _, _, _, _, _, _), 917 PINGROUP(128, ebi2, _, _, _, _, _, _),
894 PINGROUP(129, ebi2, _, _, _, _, _, _), 918 PINGROUP(129, ebi2, _, _, _, _, _, _),
895 PINGROUP(130, ebi2, _, _, _, _, _, _), 919 PINGROUP(130, ebi2, _, _, _, _, _, _),
896 PINGROUP(131, _, _, _, _, _, _, _), 920 PINGROUP(131, ebi2cs, _, _, _, _, _, _),
897 PINGROUP(132, ebi2, _, _, _, _, _, _), 921 PINGROUP(132, ebi2cs, _, _, _, _, _, _),
898 PINGROUP(133, ebi2, _, _, _, _, _, _), 922 PINGROUP(133, ebi2cs, _, _, _, _, _, _),
899 PINGROUP(134, ebi2, _, _, _, _, _, _), 923 PINGROUP(134, ebi2cs, _, _, _, _, _, _),
900 PINGROUP(135, ebi2, _, _, _, _, _, _), 924 PINGROUP(135, ebi2, _, _, _, _, _, _),
901 PINGROUP(136, ebi2, _, _, _, _, _, _), 925 PINGROUP(136, ebi2, _, _, _, _, _, _),
902 PINGROUP(137, ebi2, _, _, _, _, _, _), 926 PINGROUP(137, ebi2, _, _, _, _, _, _),
@@ -914,13 +938,13 @@ static const struct msm_pingroup msm8660_groups[] = {
914 PINGROUP(149, ebi2, sdc2, _, _, _, _, _), 938 PINGROUP(149, ebi2, sdc2, _, _, _, _, _),
915 PINGROUP(150, ebi2, sdc2, _, _, _, _, _), 939 PINGROUP(150, ebi2, sdc2, _, _, _, _, _),
916 PINGROUP(151, ebi2, sdc2, _, _, _, _, _), 940 PINGROUP(151, ebi2, sdc2, _, _, _, _, _),
917 PINGROUP(152, _, sdc2, _, _, _, _, _), 941 PINGROUP(152, ebi2, sdc2, _, _, _, _, _),
918 PINGROUP(153, ebi2, _, _, _, _, _, _), 942 PINGROUP(153, ebi2, _, _, _, _, _, _),
919 PINGROUP(154, _, _, _, _, _, _, _), 943 PINGROUP(154, ebi2, _, _, _, _, _, _),
920 PINGROUP(155, _, _, _, _, _, _, _), 944 PINGROUP(155, ebi2, _, _, _, _, _, _),
921 PINGROUP(156, _, _, _, _, _, _, _), 945 PINGROUP(156, ebi2, _, _, _, _, _, _),
922 PINGROUP(157, ebi2, _, _, _, _, _, _), 946 PINGROUP(157, ebi2, _, _, _, _, _, _),
923 PINGROUP(158, _, _, _, _, _, _, _), 947 PINGROUP(158, ebi2, _, _, _, _, _, _),
924 PINGROUP(159, sdc1, _, _, _, _, _, _), 948 PINGROUP(159, sdc1, _, _, _, _, _, _),
925 PINGROUP(160, sdc1, _, _, _, _, _, _), 949 PINGROUP(160, sdc1, _, _, _, _, _, _),
926 PINGROUP(161, sdc1, _, _, _, _, _, _), 950 PINGROUP(161, sdc1, _, _, _, _, _, _),