diff options
author | Valentin Longchamp <valentin.longchamp@epfl.ch> | 2009-04-22 04:55:50 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-05-07 10:17:35 -0400 |
commit | 56c7a45bee7313d49dd58465492cdbd49fea8e16 (patch) | |
tree | 27b1b86e9fa6e2971c21b1fcd8c25983b96b39b4 /arch/arm/mach-mx3 | |
parent | f801079b2b8790a9f096151e2ca1d1239a24d9e4 (diff) |
mx31moboard: setup all pins (v2)
As suggested by Sascha, here we setup all the pins that we are using in
the current (and currently reviewed) drivers for mx31moboard system.
changes since v1: changed I2C1 pin names
Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard-devboard.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard-marxbot.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard.c | 21 |
3 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c index 718702f1ebe6..59b3a744c560 100644 --- a/arch/arm/mach-mx3/mx31moboard-devboard.c +++ b/arch/arm/mach-mx3/mx31moboard-devboard.c | |||
@@ -31,6 +31,11 @@ static unsigned int devboard_pins[] = { | |||
31 | /* UART1 */ | 31 | /* UART1 */ |
32 | MX31_PIN_CTS2__CTS2, MX31_PIN_RTS2__RTS2, | 32 | MX31_PIN_CTS2__CTS2, MX31_PIN_RTS2__RTS2, |
33 | MX31_PIN_TXD2__TXD2, MX31_PIN_RXD2__RXD2, | 33 | MX31_PIN_TXD2__TXD2, MX31_PIN_RXD2__RXD2, |
34 | /* SDHC2 */ | ||
35 | MX31_PIN_PC_PWRON__SD2_DATA3, MX31_PIN_PC_VS1__SD2_DATA2, | ||
36 | MX31_PIN_PC_READY__SD2_DATA1, MX31_PIN_PC_WAIT_B__SD2_DATA0, | ||
37 | MX31_PIN_PC_CD2_B__SD2_CLK, MX31_PIN_PC_CD1_B__SD2_CMD, | ||
38 | MX31_PIN_ATA_DIOR__GPIO3_28, MX31_PIN_ATA_DIOW__GPIO3_29, | ||
34 | }; | 39 | }; |
35 | 40 | ||
36 | static struct imxuart_platform_data uart_pdata = { | 41 | static struct imxuart_platform_data uart_pdata = { |
diff --git a/arch/arm/mach-mx3/mx31moboard-marxbot.c b/arch/arm/mach-mx3/mx31moboard-marxbot.c index f5ea114e3248..daeb1e97da20 100644 --- a/arch/arm/mach-mx3/mx31moboard-marxbot.c +++ b/arch/arm/mach-mx3/mx31moboard-marxbot.c | |||
@@ -27,10 +27,32 @@ | |||
27 | 27 | ||
28 | #include "devices.h" | 28 | #include "devices.h" |
29 | 29 | ||
30 | static unsigned int marxbot_pins[] = { | ||
31 | /* SDHC2 */ | ||
32 | MX31_PIN_PC_PWRON__SD2_DATA3, MX31_PIN_PC_VS1__SD2_DATA2, | ||
33 | MX31_PIN_PC_READY__SD2_DATA1, MX31_PIN_PC_WAIT_B__SD2_DATA0, | ||
34 | MX31_PIN_PC_CD2_B__SD2_CLK, MX31_PIN_PC_CD1_B__SD2_CMD, | ||
35 | MX31_PIN_ATA_DIOR__GPIO3_28, MX31_PIN_ATA_DIOW__GPIO3_29, | ||
36 | /* CSI */ | ||
37 | MX31_PIN_CSI_D4__CSI_D4, MX31_PIN_CSI_D5__CSI_D5, | ||
38 | MX31_PIN_CSI_D6__CSI_D6, MX31_PIN_CSI_D7__CSI_D7, | ||
39 | MX31_PIN_CSI_D8__CSI_D8, MX31_PIN_CSI_D9__CSI_D9, | ||
40 | MX31_PIN_CSI_D10__CSI_D10, MX31_PIN_CSI_D11__CSI_D11, | ||
41 | MX31_PIN_CSI_D12__CSI_D12, MX31_PIN_CSI_D13__CSI_D13, | ||
42 | MX31_PIN_CSI_D14__CSI_D14, MX31_PIN_CSI_D15__CSI_D15, | ||
43 | MX31_PIN_CSI_HSYNC__CSI_HSYNC, MX31_PIN_CSI_MCLK__CSI_MCLK, | ||
44 | MX31_PIN_CSI_PIXCLK__CSI_PIXCLK, MX31_PIN_CSI_VSYNC__CSI_VSYNC, | ||
45 | MX31_PIN_GPIO3_0__GPIO3_0, MX31_PIN_GPIO3_1__GPIO3_1, | ||
46 | MX31_PIN_TXD2__GPIO1_28, | ||
47 | }; | ||
48 | |||
30 | /* | 49 | /* |
31 | * system init for baseboard usage. Will be called by mx31moboard init. | 50 | * system init for baseboard usage. Will be called by mx31moboard init. |
32 | */ | 51 | */ |
33 | void __init mx31moboard_marxbot_init(void) | 52 | void __init mx31moboard_marxbot_init(void) |
34 | { | 53 | { |
35 | printk(KERN_INFO "Initializing mx31marxbot peripherals\n"); | 54 | printk(KERN_INFO "Initializing mx31marxbot peripherals\n"); |
55 | |||
56 | mxc_iomux_setup_multiple_pins(marxbot_pins, ARRAY_SIZE(marxbot_pins), | ||
57 | "marxbot"); | ||
36 | } | 58 | } |
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c index 623df170a69d..60a51459d583 100644 --- a/arch/arm/mach-mx3/mx31moboard.c +++ b/arch/arm/mach-mx3/mx31moboard.c | |||
@@ -42,6 +42,27 @@ static unsigned int moboard_pins[] = { | |||
42 | /* UART4 */ | 42 | /* UART4 */ |
43 | MX31_PIN_PC_RST__CTS5, MX31_PIN_PC_VS2__RTS5, | 43 | MX31_PIN_PC_RST__CTS5, MX31_PIN_PC_VS2__RTS5, |
44 | MX31_PIN_PC_BVD2__TXD5, MX31_PIN_PC_BVD1__RXD5, | 44 | MX31_PIN_PC_BVD2__TXD5, MX31_PIN_PC_BVD1__RXD5, |
45 | /* I2C0 */ | ||
46 | MX31_PIN_I2C_DAT__I2C1_SDA, MX31_PIN_I2C_CLK__I2C1_SCL, | ||
47 | /* I2C1 */ | ||
48 | MX31_PIN_DCD_DTE1__I2C2_SDA, MX31_PIN_RI_DTE1__I2C2_SCL, | ||
49 | /* SDHC1 */ | ||
50 | MX31_PIN_SD1_DATA3__SD1_DATA3, MX31_PIN_SD1_DATA2__SD1_DATA2, | ||
51 | MX31_PIN_SD1_DATA1__SD1_DATA1, MX31_PIN_SD1_DATA0__SD1_DATA0, | ||
52 | MX31_PIN_SD1_CLK__SD1_CLK, MX31_PIN_SD1_CMD__SD1_CMD, | ||
53 | MX31_PIN_ATA_CS0__GPIO3_26, MX31_PIN_ATA_CS1__GPIO3_27, | ||
54 | /* USB OTG */ | ||
55 | MX31_PIN_USBOTG_DATA0__USBOTG_DATA0, | ||
56 | MX31_PIN_USBOTG_DATA1__USBOTG_DATA1, | ||
57 | MX31_PIN_USBOTG_DATA2__USBOTG_DATA2, | ||
58 | MX31_PIN_USBOTG_DATA3__USBOTG_DATA3, | ||
59 | MX31_PIN_USBOTG_DATA4__USBOTG_DATA4, | ||
60 | MX31_PIN_USBOTG_DATA5__USBOTG_DATA5, | ||
61 | MX31_PIN_USBOTG_DATA6__USBOTG_DATA6, | ||
62 | MX31_PIN_USBOTG_DATA7__USBOTG_DATA7, | ||
63 | MX31_PIN_USBOTG_CLK__USBOTG_CLK, MX31_PIN_USBOTG_DIR__USBOTG_DIR, | ||
64 | MX31_PIN_USBOTG_NXT__USBOTG_NXT, MX31_PIN_USBOTG_STP__USBOTG_STP, | ||
65 | MX31_PIN_USB_OC__GPIO1_30, | ||
45 | }; | 66 | }; |
46 | 67 | ||
47 | static struct physmap_flash_data mx31moboard_flash_data = { | 68 | static struct physmap_flash_data mx31moboard_flash_data = { |