diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-pins.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c new file mode 100644 index 000000000000..edd3a6bc3d23 --- /dev/null +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | * Copyright (C) ST-Ericsson SA 2010 | ||
3 | * | ||
4 | * License terms: GNU General Public License (GPL) version 2 | ||
5 | */ | ||
6 | |||
7 | #include <linux/kernel.h> | ||
8 | #include <linux/init.h> | ||
9 | #include <linux/gpio.h> | ||
10 | |||
11 | #include <plat/pincfg.h> | ||
12 | |||
13 | #include <mach/hardware.h> | ||
14 | |||
15 | #include "pins-db8500.h" | ||
16 | |||
17 | static pin_cfg_t mop500_pins[] = { | ||
18 | /* SSP0 */ | ||
19 | GPIO143_SSP0_CLK, | ||
20 | GPIO144_SSP0_FRM, | ||
21 | GPIO145_SSP0_RXD, | ||
22 | GPIO146_SSP0_TXD, | ||
23 | |||
24 | /* I2C */ | ||
25 | GPIO147_I2C0_SCL, | ||
26 | GPIO148_I2C0_SDA, | ||
27 | GPIO16_I2C1_SCL, | ||
28 | GPIO17_I2C1_SDA, | ||
29 | GPIO10_I2C2_SDA, | ||
30 | GPIO11_I2C2_SCL, | ||
31 | GPIO229_I2C3_SDA, | ||
32 | GPIO230_I2C3_SCL, | ||
33 | |||
34 | /* SKE keypad */ | ||
35 | GPIO153_KP_I7, | ||
36 | GPIO154_KP_I6, | ||
37 | GPIO155_KP_I5, | ||
38 | GPIO156_KP_I4, | ||
39 | GPIO157_KP_O7, | ||
40 | GPIO158_KP_O6, | ||
41 | GPIO159_KP_O5, | ||
42 | GPIO160_KP_O4, | ||
43 | GPIO161_KP_I3, | ||
44 | GPIO162_KP_I2, | ||
45 | GPIO163_KP_I1, | ||
46 | GPIO164_KP_I0, | ||
47 | GPIO165_KP_O3, | ||
48 | GPIO166_KP_O2, | ||
49 | GPIO167_KP_O1, | ||
50 | GPIO168_KP_O0, | ||
51 | |||
52 | /* GPIO_EXP_INT */ | ||
53 | GPIO217_GPIO, | ||
54 | |||
55 | /* STMPE1601 IRQ */ | ||
56 | GPIO218_GPIO | PIN_INPUT_PULLUP, | ||
57 | |||
58 | /* touch screen */ | ||
59 | GPIO84_GPIO | PIN_INPUT_PULLUP, | ||
60 | |||
61 | /* USB OTG */ | ||
62 | GPIO256_USB_NXT | PIN_PULL_DOWN, | ||
63 | GPIO257_USB_STP | PIN_PULL_UP, | ||
64 | GPIO258_USB_XCLK | PIN_PULL_DOWN, | ||
65 | GPIO259_USB_DIR | PIN_PULL_DOWN, | ||
66 | GPIO260_USB_DAT7 | PIN_PULL_DOWN, | ||
67 | GPIO261_USB_DAT6 | PIN_PULL_DOWN, | ||
68 | GPIO262_USB_DAT5 | PIN_PULL_DOWN, | ||
69 | GPIO263_USB_DAT4 | PIN_PULL_DOWN, | ||
70 | GPIO264_USB_DAT3 | PIN_PULL_DOWN, | ||
71 | GPIO265_USB_DAT2 | PIN_PULL_DOWN, | ||
72 | GPIO266_USB_DAT1 | PIN_PULL_DOWN, | ||
73 | GPIO267_USB_DAT0 | PIN_PULL_DOWN, | ||
74 | }; | ||
75 | |||
76 | void __init mop500_pins_init(void) | ||
77 | { | ||
78 | nmk_config_pins(mop500_pins, | ||
79 | ARRAY_SIZE(mop500_pins)); | ||
80 | } | ||