diff options
author | Bin Shi <Bin.Shi@csr.com> | 2014-08-18 04:49:21 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-08-29 02:38:37 -0400 |
commit | c09f80db583c72f9c6198842cd7e6f71105fdc46 (patch) | |
tree | 7ac1e0a704bfde35c64e97e527adf2070ca0eaca /drivers/pinctrl/sirf | |
parent | 4bee325cd9bc06c5e7b3cc4398f101ed3fa5cc0e (diff) |
pinctrl: sirf: fix lots of "line over 80 characters"
According to key customer's requirement, fix "line over 80
characters".
Signed-off-by: Bin Shi <Bin.Shi@csr.com>
Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sirf')
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-atlas6.c | 67 | ||||
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-prima2.c | 85 | ||||
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-sirf.c | 57 |
3 files changed, 128 insertions, 81 deletions
diff --git a/drivers/pinctrl/sirf/pinctrl-atlas6.c b/drivers/pinctrl/sirf/pinctrl-atlas6.c index c4dd3d5cf9c3..b0bd2c4034c5 100644 --- a/drivers/pinctrl/sirf/pinctrl-atlas6.c +++ b/drivers/pinctrl/sirf/pinctrl-atlas6.c | |||
@@ -134,8 +134,9 @@ static const struct sirfsoc_muxmask lcd_16bits_sirfsoc_muxmask[] = { | |||
134 | .mask = BIT(30) | BIT(31), | 134 | .mask = BIT(30) | BIT(31), |
135 | }, { | 135 | }, { |
136 | .group = 2, | 136 | .group = 2, |
137 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | | 137 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | |
138 | BIT(12) | BIT(13) | BIT(15) | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | 138 | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(15) | |
139 | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | ||
139 | BIT(20) | BIT(21) | BIT(22) | BIT(31), | 140 | BIT(20) | BIT(21) | BIT(22) | BIT(31), |
140 | }, | 141 | }, |
141 | }; | 142 | }; |
@@ -148,14 +149,15 @@ static const struct sirfsoc_padmux lcd_16bits_padmux = { | |||
148 | .funcval = 0, | 149 | .funcval = 0, |
149 | }; | 150 | }; |
150 | 151 | ||
151 | static const unsigned lcd_16bits_pins[] = { 62, 63, 65, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, | 152 | static const unsigned lcd_16bits_pins[] = { 62, 63, 65, 70, 71, 72, 73, 74, 75, |
152 | 84, 85, 86, 95 }; | 153 | 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 95 }; |
153 | 154 | ||
154 | static const struct sirfsoc_muxmask lcd_18bits_muxmask[] = { | 155 | static const struct sirfsoc_muxmask lcd_18bits_muxmask[] = { |
155 | { | 156 | { |
156 | .group = 2, | 157 | .group = 2, |
157 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | | 158 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | |
158 | BIT(12) | BIT(13) | BIT(15) | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | 159 | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(15) | |
160 | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | ||
159 | BIT(20) | BIT(21) | BIT(22) | BIT(31), | 161 | BIT(20) | BIT(21) | BIT(22) | BIT(31), |
160 | }, { | 162 | }, { |
161 | .group = 1, | 163 | .group = 1, |
@@ -174,21 +176,23 @@ static const struct sirfsoc_padmux lcd_18bits_padmux = { | |||
174 | .funcval = 0, | 176 | .funcval = 0, |
175 | }; | 177 | }; |
176 | 178 | ||
177 | static const unsigned lcd_18bits_pins[] = { 16, 17, 62, 63, 65, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, | 179 | static const unsigned lcd_18bits_pins[] = { 16, 17, 62, 63, 65, 70, 71, 72, 73, |
178 | 84, 85, 86, 95 }; | 180 | 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 95 }; |
179 | 181 | ||
180 | static const struct sirfsoc_muxmask lcd_24bits_muxmask[] = { | 182 | static const struct sirfsoc_muxmask lcd_24bits_muxmask[] = { |
181 | { | 183 | { |
182 | .group = 2, | 184 | .group = 2, |
183 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | | 185 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | |
184 | BIT(12) | BIT(13) | BIT(15) | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | 186 | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(15) | |
187 | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | ||
185 | BIT(20) | BIT(21) | BIT(22) | BIT(31), | 188 | BIT(20) | BIT(21) | BIT(22) | BIT(31), |
186 | }, { | 189 | }, { |
187 | .group = 1, | 190 | .group = 1, |
188 | .mask = BIT(30) | BIT(31), | 191 | .mask = BIT(30) | BIT(31), |
189 | }, { | 192 | }, { |
190 | .group = 0, | 193 | .group = 0, |
191 | .mask = BIT(16) | BIT(17) | BIT(18) | BIT(19) | BIT(20) | BIT(21) | BIT(22) | BIT(23), | 194 | .mask = BIT(16) | BIT(17) | BIT(18) | BIT(19) | BIT(20) | |
195 | BIT(21) | BIT(22) | BIT(23), | ||
192 | }, | 196 | }, |
193 | }; | 197 | }; |
194 | 198 | ||
@@ -200,14 +204,16 @@ static const struct sirfsoc_padmux lcd_24bits_padmux = { | |||
200 | .funcval = 0, | 204 | .funcval = 0, |
201 | }; | 205 | }; |
202 | 206 | ||
203 | static const unsigned lcd_24bits_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, 62, 63, 65, 70, 71, 72, 73, 74, 75, 76, 77, 79, | 207 | static const unsigned lcd_24bits_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, 62, |
204 | 80, 81, 82, 83, 84, 85, 86, 95}; | 208 | 63, 65, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, |
209 | 85, 86, 95}; | ||
205 | 210 | ||
206 | static const struct sirfsoc_muxmask lcdrom_muxmask[] = { | 211 | static const struct sirfsoc_muxmask lcdrom_muxmask[] = { |
207 | { | 212 | { |
208 | .group = 2, | 213 | .group = 2, |
209 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | | 214 | .mask = BIT(1) | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | |
210 | BIT(12) | BIT(13) | BIT(15) | BIT(16) | BIT(17) | BIT(18) | BIT(19) | | 215 | BIT(11) | BIT(12) | BIT(13) | BIT(15) | BIT(16) | |
216 | BIT(17) | BIT(18) | BIT(19) | | ||
211 | BIT(20) | BIT(21) | BIT(22) | BIT(31), | 217 | BIT(20) | BIT(21) | BIT(22) | BIT(31), |
212 | }, { | 218 | }, { |
213 | .group = 1, | 219 | .group = 1, |
@@ -226,8 +232,8 @@ static const struct sirfsoc_padmux lcdrom_padmux = { | |||
226 | .funcval = BIT(4), | 232 | .funcval = BIT(4), |
227 | }; | 233 | }; |
228 | 234 | ||
229 | static const unsigned lcdrom_pins[] = { 8, 62, 63, 65, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, | 235 | static const unsigned lcdrom_pins[] = { 8, 62, 63, 65, 70, 71, 72, 73, 74, 75, |
230 | 84, 85, 86, 95}; | 236 | 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 95}; |
231 | 237 | ||
232 | static const struct sirfsoc_muxmask uart0_muxmask[] = { | 238 | static const struct sirfsoc_muxmask uart0_muxmask[] = { |
233 | { | 239 | { |
@@ -716,7 +722,8 @@ static const struct sirfsoc_padmux vip_padmux = { | |||
716 | .funcval = BIT(18), | 722 | .funcval = BIT(18), |
717 | }; | 723 | }; |
718 | 724 | ||
719 | static const unsigned vip_pins[] = { 36, 37, 38, 40, 41, 56, 57, 58, 59, 60, 61 }; | 725 | static const unsigned vip_pins[] = { 36, 37, 38, 40, 41, 56, 57, 58, 59, |
726 | 60, 61 }; | ||
720 | 727 | ||
721 | static const struct sirfsoc_muxmask vip_noupli_muxmask[] = { | 728 | static const struct sirfsoc_muxmask vip_noupli_muxmask[] = { |
722 | { | 729 | { |
@@ -737,7 +744,8 @@ static const struct sirfsoc_padmux vip_noupli_padmux = { | |||
737 | .funcval = BIT(15), | 744 | .funcval = BIT(15), |
738 | }; | 745 | }; |
739 | 746 | ||
740 | static const unsigned vip_noupli_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, 87, 88, 89 }; | 747 | static const unsigned vip_noupli_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, |
748 | 87, 88, 89 }; | ||
741 | 749 | ||
742 | static const struct sirfsoc_muxmask i2c0_muxmask[] = { | 750 | static const struct sirfsoc_muxmask i2c0_muxmask[] = { |
743 | { | 751 | { |
@@ -876,7 +884,8 @@ static const struct sirfsoc_padmux usb0_upli_drvbus_padmux = { | |||
876 | .funcval = 0, | 884 | .funcval = 0, |
877 | }; | 885 | }; |
878 | 886 | ||
879 | static const unsigned usb0_upli_drvbus_pins[] = { 36, 37, 38, 39, 40, 41, 56, 57, 58, 59, 60, 61 }; | 887 | static const unsigned usb0_upli_drvbus_pins[] = { 36, 37, 38, 39, 40, |
888 | 41, 56, 57, 58, 59, 60, 61 }; | ||
880 | 889 | ||
881 | static const struct sirfsoc_muxmask usb1_utmi_drvbus_muxmask[] = { | 890 | static const struct sirfsoc_muxmask usb1_utmi_drvbus_muxmask[] = { |
882 | { | 891 | { |
@@ -1017,7 +1026,8 @@ static const char * const sdmmc2_nowpgrp[] = { "sdmmc2_nowpgrp" }; | |||
1017 | static const char * const usb0_upli_drvbusgrp[] = { "usb0_upli_drvbusgrp" }; | 1026 | static const char * const usb0_upli_drvbusgrp[] = { "usb0_upli_drvbusgrp" }; |
1018 | static const char * const usb1_utmi_drvbusgrp[] = { "usb1_utmi_drvbusgrp" }; | 1027 | static const char * const usb1_utmi_drvbusgrp[] = { "usb1_utmi_drvbusgrp" }; |
1019 | static const char * const usb1_dp_dngrp[] = { "usb1_dp_dngrp" }; | 1028 | static const char * const usb1_dp_dngrp[] = { "usb1_dp_dngrp" }; |
1020 | static const char * const uart1_route_io_usb1grp[] = { "uart1_route_io_usb1grp" }; | 1029 | static const char * const |
1030 | uart1_route_io_usb1grp[] = { "uart1_route_io_usb1grp" }; | ||
1021 | static const char * const pulse_countgrp[] = { "pulse_countgrp" }; | 1031 | static const char * const pulse_countgrp[] = { "pulse_countgrp" }; |
1022 | static const char * const i2sgrp[] = { "i2sgrp" }; | 1032 | static const char * const i2sgrp[] = { "i2sgrp" }; |
1023 | static const char * const i2s_no_dingrp[] = { "i2s_no_dingrp" }; | 1033 | static const char * const i2s_no_dingrp[] = { "i2s_no_dingrp" }; |
@@ -1038,7 +1048,8 @@ static const struct sirfsoc_pmx_func sirfsoc_pmx_functions[] = { | |||
1038 | uart0_nostreamctrl_padmux), | 1048 | uart0_nostreamctrl_padmux), |
1039 | SIRFSOC_PMX_FUNCTION("uart1", uart1grp, uart1_padmux), | 1049 | SIRFSOC_PMX_FUNCTION("uart1", uart1grp, uart1_padmux), |
1040 | SIRFSOC_PMX_FUNCTION("uart2", uart2grp, uart2_padmux), | 1050 | SIRFSOC_PMX_FUNCTION("uart2", uart2grp, uart2_padmux), |
1041 | SIRFSOC_PMX_FUNCTION("uart2_nostreamctrl", uart2_nostreamctrlgrp, uart2_nostreamctrl_padmux), | 1051 | SIRFSOC_PMX_FUNCTION("uart2_nostreamctrl", |
1052 | uart2_nostreamctrlgrp, uart2_nostreamctrl_padmux), | ||
1042 | SIRFSOC_PMX_FUNCTION("usp0", usp0grp, usp0_padmux), | 1053 | SIRFSOC_PMX_FUNCTION("usp0", usp0grp, usp0_padmux), |
1043 | SIRFSOC_PMX_FUNCTION("usp0_uart_nostreamctrl", | 1054 | SIRFSOC_PMX_FUNCTION("usp0_uart_nostreamctrl", |
1044 | usp0_uart_nostreamctrl_grp, | 1055 | usp0_uart_nostreamctrl_grp, |
@@ -1068,11 +1079,15 @@ static const struct sirfsoc_pmx_func sirfsoc_pmx_functions[] = { | |||
1068 | SIRFSOC_PMX_FUNCTION("sdmmc2", sdmmc2grp, sdmmc2_padmux), | 1079 | SIRFSOC_PMX_FUNCTION("sdmmc2", sdmmc2grp, sdmmc2_padmux), |
1069 | SIRFSOC_PMX_FUNCTION("sdmmc3", sdmmc3grp, sdmmc3_padmux), | 1080 | SIRFSOC_PMX_FUNCTION("sdmmc3", sdmmc3grp, sdmmc3_padmux), |
1070 | SIRFSOC_PMX_FUNCTION("sdmmc5", sdmmc5grp, sdmmc5_padmux), | 1081 | SIRFSOC_PMX_FUNCTION("sdmmc5", sdmmc5grp, sdmmc5_padmux), |
1071 | SIRFSOC_PMX_FUNCTION("sdmmc2_nowp", sdmmc2_nowpgrp, sdmmc2_nowp_padmux), | 1082 | SIRFSOC_PMX_FUNCTION("sdmmc2_nowp", |
1072 | SIRFSOC_PMX_FUNCTION("usb0_upli_drvbus", usb0_upli_drvbusgrp, usb0_upli_drvbus_padmux), | 1083 | sdmmc2_nowpgrp, sdmmc2_nowp_padmux), |
1073 | SIRFSOC_PMX_FUNCTION("usb1_utmi_drvbus", usb1_utmi_drvbusgrp, usb1_utmi_drvbus_padmux), | 1084 | SIRFSOC_PMX_FUNCTION("usb0_upli_drvbus", |
1085 | usb0_upli_drvbusgrp, usb0_upli_drvbus_padmux), | ||
1086 | SIRFSOC_PMX_FUNCTION("usb1_utmi_drvbus", | ||
1087 | usb1_utmi_drvbusgrp, usb1_utmi_drvbus_padmux), | ||
1074 | SIRFSOC_PMX_FUNCTION("usb1_dp_dn", usb1_dp_dngrp, usb1_dp_dn_padmux), | 1088 | SIRFSOC_PMX_FUNCTION("usb1_dp_dn", usb1_dp_dngrp, usb1_dp_dn_padmux), |
1075 | SIRFSOC_PMX_FUNCTION("uart1_route_io_usb1", uart1_route_io_usb1grp, uart1_route_io_usb1_padmux), | 1089 | SIRFSOC_PMX_FUNCTION("uart1_route_io_usb1", |
1090 | uart1_route_io_usb1grp, uart1_route_io_usb1_padmux), | ||
1076 | SIRFSOC_PMX_FUNCTION("pulse_count", pulse_countgrp, pulse_count_padmux), | 1091 | SIRFSOC_PMX_FUNCTION("pulse_count", pulse_countgrp, pulse_count_padmux), |
1077 | SIRFSOC_PMX_FUNCTION("i2s", i2sgrp, i2s_padmux), | 1092 | SIRFSOC_PMX_FUNCTION("i2s", i2sgrp, i2s_padmux), |
1078 | SIRFSOC_PMX_FUNCTION("i2s_no_din", i2s_no_dingrp, i2s_no_din_padmux), | 1093 | SIRFSOC_PMX_FUNCTION("i2s_no_din", i2s_no_dingrp, i2s_no_din_padmux), |
diff --git a/drivers/pinctrl/sirf/pinctrl-prima2.c b/drivers/pinctrl/sirf/pinctrl-prima2.c index 8aa76f0776d7..fda2547f205e 100644 --- a/drivers/pinctrl/sirf/pinctrl-prima2.c +++ b/drivers/pinctrl/sirf/pinctrl-prima2.c | |||
@@ -135,8 +135,9 @@ static const struct pinctrl_pin_desc sirfsoc_pads[] = { | |||
135 | static const struct sirfsoc_muxmask lcd_16bits_sirfsoc_muxmask[] = { | 135 | static const struct sirfsoc_muxmask lcd_16bits_sirfsoc_muxmask[] = { |
136 | { | 136 | { |
137 | .group = 3, | 137 | .group = 3, |
138 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7) | BIT(8) | | 138 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | |
139 | BIT(9) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | 139 | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | |
140 | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | ||
140 | BIT(17) | BIT(18), | 141 | BIT(17) | BIT(18), |
141 | }, { | 142 | }, { |
142 | .group = 2, | 143 | .group = 2, |
@@ -152,14 +153,15 @@ static const struct sirfsoc_padmux lcd_16bits_padmux = { | |||
152 | .funcval = 0, | 153 | .funcval = 0, |
153 | }; | 154 | }; |
154 | 155 | ||
155 | static const unsigned lcd_16bits_pins[] = { 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, | 156 | static const unsigned lcd_16bits_pins[] = { 95, 96, 97, 98, 99, 100, 101, 102, |
156 | 105, 106, 107, 108, 109, 110, 111, 112, 113, 114 }; | 157 | 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114 }; |
157 | 158 | ||
158 | static const struct sirfsoc_muxmask lcd_18bits_muxmask[] = { | 159 | static const struct sirfsoc_muxmask lcd_18bits_muxmask[] = { |
159 | { | 160 | { |
160 | .group = 3, | 161 | .group = 3, |
161 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7) | BIT(8) | | 162 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | |
162 | BIT(9) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | 163 | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | |
164 | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | ||
163 | BIT(17) | BIT(18), | 165 | BIT(17) | BIT(18), |
164 | }, { | 166 | }, { |
165 | .group = 2, | 167 | .group = 2, |
@@ -178,21 +180,23 @@ static const struct sirfsoc_padmux lcd_18bits_padmux = { | |||
178 | .funcval = 0, | 180 | .funcval = 0, |
179 | }; | 181 | }; |
180 | 182 | ||
181 | static const unsigned lcd_18bits_pins[] = { 16, 17, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, | 183 | static const unsigned lcd_18bits_pins[] = { 16, 17, 95, 96, 97, 98, 99, 100, |
182 | 105, 106, 107, 108, 109, 110, 111, 112, 113, 114}; | 184 | 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114}; |
183 | 185 | ||
184 | static const struct sirfsoc_muxmask lcd_24bits_muxmask[] = { | 186 | static const struct sirfsoc_muxmask lcd_24bits_muxmask[] = { |
185 | { | 187 | { |
186 | .group = 3, | 188 | .group = 3, |
187 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7) | BIT(8) | | 189 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | |
188 | BIT(9) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | 190 | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | |
191 | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | ||
189 | BIT(17) | BIT(18), | 192 | BIT(17) | BIT(18), |
190 | }, { | 193 | }, { |
191 | .group = 2, | 194 | .group = 2, |
192 | .mask = BIT(31), | 195 | .mask = BIT(31), |
193 | }, { | 196 | }, { |
194 | .group = 0, | 197 | .group = 0, |
195 | .mask = BIT(16) | BIT(17) | BIT(18) | BIT(19) | BIT(20) | BIT(21) | BIT(22) | BIT(23), | 198 | .mask = BIT(16) | BIT(17) | BIT(18) | BIT(19) | BIT(20) | |
199 | BIT(21) | BIT(22) | BIT(23), | ||
196 | }, | 200 | }, |
197 | }; | 201 | }; |
198 | 202 | ||
@@ -204,14 +208,16 @@ static const struct sirfsoc_padmux lcd_24bits_padmux = { | |||
204 | .funcval = 0, | 208 | .funcval = 0, |
205 | }; | 209 | }; |
206 | 210 | ||
207 | static const unsigned lcd_24bits_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, | 211 | static const unsigned lcd_24bits_pins[] = { 16, 17, 18, 19, 20, 21, 22, 23, |
208 | 105, 106, 107, 108, 109, 110, 111, 112, 113, 114 }; | 212 | 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, |
213 | 110, 111, 112, 113, 114 }; | ||
209 | 214 | ||
210 | static const struct sirfsoc_muxmask lcdrom_muxmask[] = { | 215 | static const struct sirfsoc_muxmask lcdrom_muxmask[] = { |
211 | { | 216 | { |
212 | .group = 3, | 217 | .group = 3, |
213 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7) | BIT(8) | | 218 | .mask = BIT(0) | BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | |
214 | BIT(9) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | 219 | BIT(6) | BIT(7) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | |
220 | BIT(12) | BIT(13) | BIT(14) | BIT(15) | BIT(16) | | ||
215 | BIT(17) | BIT(18), | 221 | BIT(17) | BIT(18), |
216 | }, { | 222 | }, { |
217 | .group = 2, | 223 | .group = 2, |
@@ -230,8 +236,8 @@ static const struct sirfsoc_padmux lcdrom_padmux = { | |||
230 | .funcval = BIT(4), | 236 | .funcval = BIT(4), |
231 | }; | 237 | }; |
232 | 238 | ||
233 | static const unsigned lcdrom_pins[] = { 23, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, | 239 | static const unsigned lcdrom_pins[] = { 23, 95, 96, 97, 98, 99, 100, 101, 102, |
234 | 105, 106, 107, 108, 109, 110, 111, 112, 113, 114 }; | 240 | 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114 }; |
235 | 241 | ||
236 | static const struct sirfsoc_muxmask uart0_muxmask[] = { | 242 | static const struct sirfsoc_muxmask uart0_muxmask[] = { |
237 | { | 243 | { |
@@ -685,7 +691,8 @@ static const struct sirfsoc_padmux vip_padmux = { | |||
685 | .funcval = 0, | 691 | .funcval = 0, |
686 | }; | 692 | }; |
687 | 693 | ||
688 | static const unsigned vip_pins[] = { 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89 }; | 694 | static const unsigned vip_pins[] = { 79, 80, 81, 82, 83, 84, 85, 86, 87, |
695 | 88, 89 }; | ||
689 | 696 | ||
690 | static const struct sirfsoc_muxmask i2c0_muxmask[] = { | 697 | static const struct sirfsoc_muxmask i2c0_muxmask[] = { |
691 | { | 698 | { |
@@ -735,7 +742,8 @@ static const struct sirfsoc_padmux viprom_padmux = { | |||
735 | .funcval = BIT(0), | 742 | .funcval = BIT(0), |
736 | }; | 743 | }; |
737 | 744 | ||
738 | static const unsigned viprom_pins[] = { 12, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89 }; | 745 | static const unsigned viprom_pins[] = { 12, 79, 80, 81, 82, 83, 84, 85, 86, |
746 | 87, 88, 89 }; | ||
739 | 747 | ||
740 | static const struct sirfsoc_muxmask pwm0_muxmask[] = { | 748 | static const struct sirfsoc_muxmask pwm0_muxmask[] = { |
741 | { | 749 | { |
@@ -936,16 +944,19 @@ static const char * const uart1grp[] = { "uart1grp" }; | |||
936 | static const char * const uart2grp[] = { "uart2grp" }; | 944 | static const char * const uart2grp[] = { "uart2grp" }; |
937 | static const char * const uart2_nostreamctrlgrp[] = { "uart2_nostreamctrlgrp" }; | 945 | static const char * const uart2_nostreamctrlgrp[] = { "uart2_nostreamctrlgrp" }; |
938 | static const char * const usp0grp[] = { "usp0grp" }; | 946 | static const char * const usp0grp[] = { "usp0grp" }; |
939 | static const char * const usp0_uart_nostreamctrl_grp[] = | 947 | static const char * const usp0_uart_nostreamctrl_grp[] = { |
940 | { "usp0_uart_nostreamctrl_grp" }; | 948 | "usp0_uart_nostreamctrl_grp" |
949 | }; | ||
941 | static const char * const usp0_only_utfs_grp[] = { "usp0_only_utfs_grp" }; | 950 | static const char * const usp0_only_utfs_grp[] = { "usp0_only_utfs_grp" }; |
942 | static const char * const usp0_only_urfs_grp[] = { "usp0_only_urfs_grp" }; | 951 | static const char * const usp0_only_urfs_grp[] = { "usp0_only_urfs_grp" }; |
943 | static const char * const usp1grp[] = { "usp1grp" }; | 952 | static const char * const usp1grp[] = { "usp1grp" }; |
944 | static const char * const usp1_uart_nostreamctrl_grp[] = | 953 | static const char * const usp1_uart_nostreamctrl_grp[] = { |
945 | { "usp1_uart_nostreamctrl_grp" }; | 954 | "usp1_uart_nostreamctrl_grp" |
955 | }; | ||
946 | static const char * const usp2grp[] = { "usp2grp" }; | 956 | static const char * const usp2grp[] = { "usp2grp" }; |
947 | static const char * const usp2_uart_nostreamctrl_grp[] = | 957 | static const char * const usp2_uart_nostreamctrl_grp[] = { |
948 | { "usp2_uart_nostreamctrl_grp" }; | 958 | "usp2_uart_nostreamctrl_grp" |
959 | }; | ||
949 | static const char * const i2c0grp[] = { "i2c0grp" }; | 960 | static const char * const i2c0grp[] = { "i2c0grp" }; |
950 | static const char * const i2c1grp[] = { "i2c1grp" }; | 961 | static const char * const i2c1grp[] = { "i2c1grp" }; |
951 | static const char * const pwm0grp[] = { "pwm0grp" }; | 962 | static const char * const pwm0grp[] = { "pwm0grp" }; |
@@ -966,7 +977,8 @@ static const char * const sdmmc5grp[] = { "sdmmc5grp" }; | |||
966 | static const char * const usb0_utmi_drvbusgrp[] = { "usb0_utmi_drvbusgrp" }; | 977 | static const char * const usb0_utmi_drvbusgrp[] = { "usb0_utmi_drvbusgrp" }; |
967 | static const char * const usb1_utmi_drvbusgrp[] = { "usb1_utmi_drvbusgrp" }; | 978 | static const char * const usb1_utmi_drvbusgrp[] = { "usb1_utmi_drvbusgrp" }; |
968 | static const char * const usb1_dp_dngrp[] = { "usb1_dp_dngrp" }; | 979 | static const char * const usb1_dp_dngrp[] = { "usb1_dp_dngrp" }; |
969 | static const char * const uart1_route_io_usb1grp[] = { "uart1_route_io_usb1grp" }; | 980 | static const char * const |
981 | uart1_route_io_usb1grp[] = { "uart1_route_io_usb1grp" }; | ||
970 | static const char * const pulse_countgrp[] = { "pulse_countgrp" }; | 982 | static const char * const pulse_countgrp[] = { "pulse_countgrp" }; |
971 | static const char * const i2sgrp[] = { "i2sgrp" }; | 983 | static const char * const i2sgrp[] = { "i2sgrp" }; |
972 | static const char * const ac97grp[] = { "ac97grp" }; | 984 | static const char * const ac97grp[] = { "ac97grp" }; |
@@ -981,15 +993,19 @@ static const struct sirfsoc_pmx_func sirfsoc_pmx_functions[] = { | |||
981 | SIRFSOC_PMX_FUNCTION("lcd_24bits", lcd_24bitsgrp, lcd_24bits_padmux), | 993 | SIRFSOC_PMX_FUNCTION("lcd_24bits", lcd_24bitsgrp, lcd_24bits_padmux), |
982 | SIRFSOC_PMX_FUNCTION("lcdrom", lcdromgrp, lcdrom_padmux), | 994 | SIRFSOC_PMX_FUNCTION("lcdrom", lcdromgrp, lcdrom_padmux), |
983 | SIRFSOC_PMX_FUNCTION("uart0", uart0grp, uart0_padmux), | 995 | SIRFSOC_PMX_FUNCTION("uart0", uart0grp, uart0_padmux), |
984 | SIRFSOC_PMX_FUNCTION("uart0_nostreamctrl", uart0_nostreamctrlgrp, uart0_nostreamctrl_padmux), | 996 | SIRFSOC_PMX_FUNCTION("uart0_nostreamctrl", |
997 | uart0_nostreamctrlgrp, uart0_nostreamctrl_padmux), | ||
985 | SIRFSOC_PMX_FUNCTION("uart1", uart1grp, uart1_padmux), | 998 | SIRFSOC_PMX_FUNCTION("uart1", uart1grp, uart1_padmux), |
986 | SIRFSOC_PMX_FUNCTION("uart2", uart2grp, uart2_padmux), | 999 | SIRFSOC_PMX_FUNCTION("uart2", uart2grp, uart2_padmux), |
987 | SIRFSOC_PMX_FUNCTION("uart2_nostreamctrl", uart2_nostreamctrlgrp, uart2_nostreamctrl_padmux), | 1000 | SIRFSOC_PMX_FUNCTION("uart2_nostreamctrl", |
1001 | uart2_nostreamctrlgrp, uart2_nostreamctrl_padmux), | ||
988 | SIRFSOC_PMX_FUNCTION("usp0", usp0grp, usp0_padmux), | 1002 | SIRFSOC_PMX_FUNCTION("usp0", usp0grp, usp0_padmux), |
989 | SIRFSOC_PMX_FUNCTION("usp0_uart_nostreamctrl", | 1003 | SIRFSOC_PMX_FUNCTION("usp0_uart_nostreamctrl", |
990 | usp0_uart_nostreamctrl_grp, usp0_uart_nostreamctrl_padmux), | 1004 | usp0_uart_nostreamctrl_grp, usp0_uart_nostreamctrl_padmux), |
991 | SIRFSOC_PMX_FUNCTION("usp0_only_utfs", usp0_only_utfs_grp, usp0_only_utfs_padmux), | 1005 | SIRFSOC_PMX_FUNCTION("usp0_only_utfs", |
992 | SIRFSOC_PMX_FUNCTION("usp0_only_urfs", usp0_only_urfs_grp, usp0_only_urfs_padmux), | 1006 | usp0_only_utfs_grp, usp0_only_utfs_padmux), |
1007 | SIRFSOC_PMX_FUNCTION("usp0_only_urfs", | ||
1008 | usp0_only_urfs_grp, usp0_only_urfs_padmux), | ||
993 | SIRFSOC_PMX_FUNCTION("usp1", usp1grp, usp1_padmux), | 1009 | SIRFSOC_PMX_FUNCTION("usp1", usp1grp, usp1_padmux), |
994 | SIRFSOC_PMX_FUNCTION("usp1_uart_nostreamctrl", | 1010 | SIRFSOC_PMX_FUNCTION("usp1_uart_nostreamctrl", |
995 | usp1_uart_nostreamctrl_grp, usp1_uart_nostreamctrl_padmux), | 1011 | usp1_uart_nostreamctrl_grp, usp1_uart_nostreamctrl_padmux), |
@@ -1013,10 +1029,13 @@ static const struct sirfsoc_pmx_func sirfsoc_pmx_functions[] = { | |||
1013 | SIRFSOC_PMX_FUNCTION("sdmmc3", sdmmc3grp, sdmmc3_padmux), | 1029 | SIRFSOC_PMX_FUNCTION("sdmmc3", sdmmc3grp, sdmmc3_padmux), |
1014 | SIRFSOC_PMX_FUNCTION("sdmmc4", sdmmc4grp, sdmmc4_padmux), | 1030 | SIRFSOC_PMX_FUNCTION("sdmmc4", sdmmc4grp, sdmmc4_padmux), |
1015 | SIRFSOC_PMX_FUNCTION("sdmmc5", sdmmc5grp, sdmmc5_padmux), | 1031 | SIRFSOC_PMX_FUNCTION("sdmmc5", sdmmc5grp, sdmmc5_padmux), |
1016 | SIRFSOC_PMX_FUNCTION("usb0_utmi_drvbus", usb0_utmi_drvbusgrp, usb0_utmi_drvbus_padmux), | 1032 | SIRFSOC_PMX_FUNCTION("usb0_utmi_drvbus", |
1017 | SIRFSOC_PMX_FUNCTION("usb1_utmi_drvbus", usb1_utmi_drvbusgrp, usb1_utmi_drvbus_padmux), | 1033 | usb0_utmi_drvbusgrp, usb0_utmi_drvbus_padmux), |
1034 | SIRFSOC_PMX_FUNCTION("usb1_utmi_drvbus", | ||
1035 | usb1_utmi_drvbusgrp, usb1_utmi_drvbus_padmux), | ||
1018 | SIRFSOC_PMX_FUNCTION("usb1_dp_dn", usb1_dp_dngrp, usb1_dp_dn_padmux), | 1036 | SIRFSOC_PMX_FUNCTION("usb1_dp_dn", usb1_dp_dngrp, usb1_dp_dn_padmux), |
1019 | SIRFSOC_PMX_FUNCTION("uart1_route_io_usb1", uart1_route_io_usb1grp, uart1_route_io_usb1_padmux), | 1037 | SIRFSOC_PMX_FUNCTION("uart1_route_io_usb1", |
1038 | uart1_route_io_usb1grp, uart1_route_io_usb1_padmux), | ||
1020 | SIRFSOC_PMX_FUNCTION("pulse_count", pulse_countgrp, pulse_count_padmux), | 1039 | SIRFSOC_PMX_FUNCTION("pulse_count", pulse_countgrp, pulse_count_padmux), |
1021 | SIRFSOC_PMX_FUNCTION("i2s", i2sgrp, i2s_padmux), | 1040 | SIRFSOC_PMX_FUNCTION("i2s", i2sgrp, i2s_padmux), |
1022 | SIRFSOC_PMX_FUNCTION("ac97", ac97grp, ac97_padmux), | 1041 | SIRFSOC_PMX_FUNCTION("ac97", ac97grp, ac97_padmux), |
diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c index 08d1f5a9601a..45f93f952a39 100644 --- a/drivers/pinctrl/sirf/pinctrl-sirf.c +++ b/drivers/pinctrl/sirf/pinctrl-sirf.c | |||
@@ -58,17 +58,18 @@ static const char *sirfsoc_get_group_name(struct pinctrl_dev *pctldev, | |||
58 | return sirfsoc_pin_groups[selector].name; | 58 | return sirfsoc_pin_groups[selector].name; |
59 | } | 59 | } |
60 | 60 | ||
61 | static int sirfsoc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, | 61 | static int sirfsoc_get_group_pins(struct pinctrl_dev *pctldev, |
62 | const unsigned **pins, | 62 | unsigned selector, |
63 | unsigned *num_pins) | 63 | const unsigned **pins, |
64 | unsigned *num_pins) | ||
64 | { | 65 | { |
65 | *pins = sirfsoc_pin_groups[selector].pins; | 66 | *pins = sirfsoc_pin_groups[selector].pins; |
66 | *num_pins = sirfsoc_pin_groups[selector].num_pins; | 67 | *num_pins = sirfsoc_pin_groups[selector].num_pins; |
67 | return 0; | 68 | return 0; |
68 | } | 69 | } |
69 | 70 | ||
70 | static void sirfsoc_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, | 71 | static void sirfsoc_pin_dbg_show(struct pinctrl_dev *pctldev, |
71 | unsigned offset) | 72 | struct seq_file *s, unsigned offset) |
72 | { | 73 | { |
73 | seq_printf(s, " " DRIVER_NAME); | 74 | seq_printf(s, " " DRIVER_NAME); |
74 | } | 75 | } |
@@ -138,22 +139,25 @@ static struct pinctrl_ops sirfsoc_pctrl_ops = { | |||
138 | static struct sirfsoc_pmx_func *sirfsoc_pmx_functions; | 139 | static struct sirfsoc_pmx_func *sirfsoc_pmx_functions; |
139 | static int sirfsoc_pmxfunc_cnt; | 140 | static int sirfsoc_pmxfunc_cnt; |
140 | 141 | ||
141 | static void sirfsoc_pinmux_endisable(struct sirfsoc_pmx *spmx, unsigned selector, | 142 | static void sirfsoc_pinmux_endisable(struct sirfsoc_pmx *spmx, |
142 | bool enable) | 143 | unsigned selector, bool enable) |
143 | { | 144 | { |
144 | int i; | 145 | int i; |
145 | const struct sirfsoc_padmux *mux = sirfsoc_pmx_functions[selector].padmux; | 146 | const struct sirfsoc_padmux *mux = |
147 | sirfsoc_pmx_functions[selector].padmux; | ||
146 | const struct sirfsoc_muxmask *mask = mux->muxmask; | 148 | const struct sirfsoc_muxmask *mask = mux->muxmask; |
147 | 149 | ||
148 | for (i = 0; i < mux->muxmask_counts; i++) { | 150 | for (i = 0; i < mux->muxmask_counts; i++) { |
149 | u32 muxval; | 151 | u32 muxval; |
150 | if (!spmx->is_marco) { | 152 | if (!spmx->is_marco) { |
151 | muxval = readl(spmx->gpio_virtbase + SIRFSOC_GPIO_PAD_EN(mask[i].group)); | 153 | muxval = readl(spmx->gpio_virtbase + |
154 | SIRFSOC_GPIO_PAD_EN(mask[i].group)); | ||
152 | if (enable) | 155 | if (enable) |
153 | muxval = muxval & ~mask[i].mask; | 156 | muxval = muxval & ~mask[i].mask; |
154 | else | 157 | else |
155 | muxval = muxval | mask[i].mask; | 158 | muxval = muxval | mask[i].mask; |
156 | writel(muxval, spmx->gpio_virtbase + SIRFSOC_GPIO_PAD_EN(mask[i].group)); | 159 | writel(muxval, spmx->gpio_virtbase + |
160 | SIRFSOC_GPIO_PAD_EN(mask[i].group)); | ||
157 | } else { | 161 | } else { |
158 | if (enable) | 162 | if (enable) |
159 | writel(mask[i].mask, spmx->gpio_virtbase + | 163 | writel(mask[i].mask, spmx->gpio_virtbase + |
@@ -197,9 +201,10 @@ static const char *sirfsoc_pinmux_get_func_name(struct pinctrl_dev *pctldev, | |||
197 | return sirfsoc_pmx_functions[selector].name; | 201 | return sirfsoc_pmx_functions[selector].name; |
198 | } | 202 | } |
199 | 203 | ||
200 | static int sirfsoc_pinmux_get_groups(struct pinctrl_dev *pctldev, unsigned selector, | 204 | static int sirfsoc_pinmux_get_groups(struct pinctrl_dev *pctldev, |
201 | const char * const **groups, | 205 | unsigned selector, |
202 | unsigned * const num_groups) | 206 | const char * const **groups, |
207 | unsigned * const num_groups) | ||
203 | { | 208 | { |
204 | *groups = sirfsoc_pmx_functions[selector].groups; | 209 | *groups = sirfsoc_pmx_functions[selector].groups; |
205 | *num_groups = sirfsoc_pmx_functions[selector].num_groups; | 210 | *num_groups = sirfsoc_pmx_functions[selector].num_groups; |
@@ -218,9 +223,11 @@ static int sirfsoc_pinmux_request_gpio(struct pinctrl_dev *pmxdev, | |||
218 | spmx = pinctrl_dev_get_drvdata(pmxdev); | 223 | spmx = pinctrl_dev_get_drvdata(pmxdev); |
219 | 224 | ||
220 | if (!spmx->is_marco) { | 225 | if (!spmx->is_marco) { |
221 | muxval = readl(spmx->gpio_virtbase + SIRFSOC_GPIO_PAD_EN(group)); | 226 | muxval = readl(spmx->gpio_virtbase + |
227 | SIRFSOC_GPIO_PAD_EN(group)); | ||
222 | muxval = muxval | (1 << (offset - range->pin_base)); | 228 | muxval = muxval | (1 << (offset - range->pin_base)); |
223 | writel(muxval, spmx->gpio_virtbase + SIRFSOC_GPIO_PAD_EN(group)); | 229 | writel(muxval, spmx->gpio_virtbase + |
230 | SIRFSOC_GPIO_PAD_EN(group)); | ||
224 | } else { | 231 | } else { |
225 | writel(1 << (offset - range->pin_base), spmx->gpio_virtbase + | 232 | writel(1 << (offset - range->pin_base), spmx->gpio_virtbase + |
226 | SIRFSOC_GPIO_PAD_EN(group)); | 233 | SIRFSOC_GPIO_PAD_EN(group)); |
@@ -518,24 +525,29 @@ static int sirfsoc_gpio_irq_type(struct irq_data *d, unsigned type) | |||
518 | case IRQ_TYPE_NONE: | 525 | case IRQ_TYPE_NONE: |
519 | break; | 526 | break; |
520 | case IRQ_TYPE_EDGE_RISING: | 527 | case IRQ_TYPE_EDGE_RISING: |
521 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | 528 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | |
529 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | ||
522 | val &= ~SIRFSOC_GPIO_CTL_INTR_LOW_MASK; | 530 | val &= ~SIRFSOC_GPIO_CTL_INTR_LOW_MASK; |
523 | break; | 531 | break; |
524 | case IRQ_TYPE_EDGE_FALLING: | 532 | case IRQ_TYPE_EDGE_FALLING: |
525 | val &= ~SIRFSOC_GPIO_CTL_INTR_HIGH_MASK; | 533 | val &= ~SIRFSOC_GPIO_CTL_INTR_HIGH_MASK; |
526 | val |= SIRFSOC_GPIO_CTL_INTR_LOW_MASK | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | 534 | val |= SIRFSOC_GPIO_CTL_INTR_LOW_MASK | |
535 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | ||
527 | break; | 536 | break; |
528 | case IRQ_TYPE_EDGE_BOTH: | 537 | case IRQ_TYPE_EDGE_BOTH: |
529 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | SIRFSOC_GPIO_CTL_INTR_LOW_MASK | | 538 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | |
530 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | 539 | SIRFSOC_GPIO_CTL_INTR_LOW_MASK | |
540 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK; | ||
531 | break; | 541 | break; |
532 | case IRQ_TYPE_LEVEL_LOW: | 542 | case IRQ_TYPE_LEVEL_LOW: |
533 | val &= ~(SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK); | 543 | val &= ~(SIRFSOC_GPIO_CTL_INTR_HIGH_MASK | |
544 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK); | ||
534 | val |= SIRFSOC_GPIO_CTL_INTR_LOW_MASK; | 545 | val |= SIRFSOC_GPIO_CTL_INTR_LOW_MASK; |
535 | break; | 546 | break; |
536 | case IRQ_TYPE_LEVEL_HIGH: | 547 | case IRQ_TYPE_LEVEL_HIGH: |
537 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK; | 548 | val |= SIRFSOC_GPIO_CTL_INTR_HIGH_MASK; |
538 | val &= ~(SIRFSOC_GPIO_CTL_INTR_LOW_MASK | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK); | 549 | val &= ~(SIRFSOC_GPIO_CTL_INTR_LOW_MASK | |
550 | SIRFSOC_GPIO_CTL_INTR_TYPE_MASK); | ||
539 | break; | 551 | break; |
540 | } | 552 | } |
541 | 553 | ||
@@ -694,7 +706,8 @@ static inline void sirfsoc_gpio_set_output(struct sirfsoc_gpio_chip *sgpio, | |||
694 | spin_unlock_irqrestore(&bank->lock, flags); | 706 | spin_unlock_irqrestore(&bank->lock, flags); |
695 | } | 707 | } |
696 | 708 | ||
697 | static int sirfsoc_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int value) | 709 | static int sirfsoc_gpio_direction_output(struct gpio_chip *chip, |
710 | unsigned gpio, int value) | ||
698 | { | 711 | { |
699 | struct sirfsoc_gpio_chip *sgpio = to_sirfsoc_gpio(chip); | 712 | struct sirfsoc_gpio_chip *sgpio = to_sirfsoc_gpio(chip); |
700 | struct sirfsoc_gpio_bank *bank = sirfsoc_gpio_to_bank(sgpio, gpio); | 713 | struct sirfsoc_gpio_bank *bank = sirfsoc_gpio_to_bank(sgpio, gpio); |