diff options
author | Robert Marklund <robert.marklund@stericsson.com> | 2011-06-21 03:39:13 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-06-23 06:04:56 -0400 |
commit | c41fac8aa9cb9ca31a5b3d9ce1f3b0026b83c16d (patch) | |
tree | 5d506284e902ac22b1d4570097b97d13bbbcee15 | |
parent | 885d0fe40fb97d7f394c24ac9c88721015f852b3 (diff) |
mach-ux500: Add pin configuration for snowball board
This sets up a few GPIO pins and some pinmuxing on platform boot
for the Snowball board. Based on work from Mathieu J. Poirier
<mathieu.poirier@linaro.org>.
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index fd4cf1ca5efd..7013d003b8fd 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -228,6 +228,46 @@ static pin_cfg_t mop500_pins_hrefv60[] = { | |||
228 | 228 | ||
229 | }; | 229 | }; |
230 | 230 | ||
231 | static pin_cfg_t snowball_pins[] = { | ||
232 | /* SSP0, to AB8500 */ | ||
233 | GPIO143_SSP0_CLK, | ||
234 | GPIO144_SSP0_FRM, | ||
235 | GPIO145_SSP0_RXD | PIN_PULL_DOWN, | ||
236 | GPIO146_SSP0_TXD, | ||
237 | |||
238 | /* MMC0: MicroSD card */ | ||
239 | GPIO21_MC0_DAT31DIR | PIN_OUTPUT_HIGH, | ||
240 | |||
241 | /* MMC2: LAN */ | ||
242 | GPIO86_SM_ADQ0, | ||
243 | GPIO87_SM_ADQ1, | ||
244 | GPIO88_SM_ADQ2, | ||
245 | GPIO89_SM_ADQ3, | ||
246 | GPIO90_SM_ADQ4, | ||
247 | GPIO91_SM_ADQ5, | ||
248 | GPIO92_SM_ADQ6, | ||
249 | GPIO93_SM_ADQ7, | ||
250 | |||
251 | GPIO94_SM_ADVn, | ||
252 | GPIO95_SM_CS0n, | ||
253 | GPIO96_SM_OEn, | ||
254 | GPIO97_SM_WEn, | ||
255 | |||
256 | GPIO128_SM_CKO, | ||
257 | GPIO130_SM_FBCLK, | ||
258 | GPIO131_SM_ADQ8, | ||
259 | GPIO132_SM_ADQ9, | ||
260 | GPIO133_SM_ADQ10, | ||
261 | GPIO134_SM_ADQ11, | ||
262 | GPIO135_SM_ADQ12, | ||
263 | GPIO136_SM_ADQ13, | ||
264 | GPIO137_SM_ADQ14, | ||
265 | GPIO138_SM_ADQ15, | ||
266 | |||
267 | /* RSTn_LAN */ | ||
268 | GPIO141_GPIO | PIN_OUTPUT_HIGH, | ||
269 | }; | ||
270 | |||
231 | void __init mop500_pins_init(void) | 271 | void __init mop500_pins_init(void) |
232 | { | 272 | { |
233 | nmk_config_pins(mop500_pins_common, | 273 | nmk_config_pins(mop500_pins_common, |
@@ -235,6 +275,9 @@ void __init mop500_pins_init(void) | |||
235 | if (machine_is_hrefv60()) | 275 | if (machine_is_hrefv60()) |
236 | nmk_config_pins(mop500_pins_hrefv60, | 276 | nmk_config_pins(mop500_pins_hrefv60, |
237 | ARRAY_SIZE(mop500_pins_hrefv60)); | 277 | ARRAY_SIZE(mop500_pins_hrefv60)); |
278 | else if (machine_is_snowball()) | ||
279 | nmk_config_pins(snowball_pins, | ||
280 | ARRAY_SIZE(snowball_pins)); | ||
238 | else | 281 | else |
239 | nmk_config_pins(mop500_pins_default, | 282 | nmk_config_pins(mop500_pins_default, |
240 | ARRAY_SIZE(mop500_pins_default)); | 283 | ARRAY_SIZE(mop500_pins_default)); |