diff options
author | Tony Lindgren <tony@atomide.com> | 2008-03-20 10:56:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-04-14 12:57:13 -0400 |
commit | f7337a199acffa9f12fa9d88253d33bfb56ef14a (patch) | |
tree | e2f85689743bea108274fb88e4dafd433b8010e5 | |
parent | dd89dd98cb9ae28f9e4c4d2c08be427a1f941c54 (diff) |
ARM: OMAP2: Add new pin multiplexing configurations
Add new pin multiplexing configurations
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 44 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/mux.h | 45 |
2 files changed, 84 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 71cff46a8b71..5cba3a2a2392 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -79,7 +79,12 @@ MUX_CFG_24XX("AA12_242X_GPIO17", 0x0e9, 3, 0, 0, 1) | |||
79 | MUX_CFG_24XX("AA8_242X_GPIO58", 0x0ea, 3, 0, 0, 1) | 79 | MUX_CFG_24XX("AA8_242X_GPIO58", 0x0ea, 3, 0, 0, 1) |
80 | MUX_CFG_24XX("Y20_24XX_GPIO60", 0x12c, 3, 0, 0, 1) | 80 | MUX_CFG_24XX("Y20_24XX_GPIO60", 0x12c, 3, 0, 0, 1) |
81 | MUX_CFG_24XX("W4__24XX_GPIO74", 0x0f2, 3, 0, 0, 1) | 81 | MUX_CFG_24XX("W4__24XX_GPIO74", 0x0f2, 3, 0, 0, 1) |
82 | MUX_CFG_24XX("N15_24XX_GPIO85", 0x103, 3, 0, 0, 1) | ||
82 | MUX_CFG_24XX("M15_24XX_GPIO92", 0x10a, 3, 0, 0, 1) | 83 | MUX_CFG_24XX("M15_24XX_GPIO92", 0x10a, 3, 0, 0, 1) |
84 | MUX_CFG_24XX("P20_24XX_GPIO93", 0x10b, 3, 0, 0, 1) | ||
85 | MUX_CFG_24XX("P18_24XX_GPIO95", 0x10d, 3, 0, 0, 1) | ||
86 | MUX_CFG_24XX("M18_24XX_GPIO96", 0x10e, 3, 0, 0, 1) | ||
87 | MUX_CFG_24XX("L14_24XX_GPIO97", 0x10f, 3, 0, 0, 1) | ||
83 | MUX_CFG_24XX("J15_24XX_GPIO99", 0x113, 3, 1, 1, 1) | 88 | MUX_CFG_24XX("J15_24XX_GPIO99", 0x113, 3, 1, 1, 1) |
84 | MUX_CFG_24XX("V14_24XX_GPIO117", 0x128, 3, 1, 0, 1) | 89 | MUX_CFG_24XX("V14_24XX_GPIO117", 0x128, 3, 1, 0, 1) |
85 | MUX_CFG_24XX("P14_24XX_GPIO125", 0x140, 3, 1, 1, 1) | 90 | MUX_CFG_24XX("P14_24XX_GPIO125", 0x140, 3, 1, 1, 1) |
@@ -104,9 +109,6 @@ MUX_CFG_24XX("G4_242X_DMAREQ3", 0x073, 2, 0, 0, 1) | |||
104 | MUX_CFG_24XX("D3_242X_DMAREQ4", 0x072, 2, 0, 0, 1) | 109 | MUX_CFG_24XX("D3_242X_DMAREQ4", 0x072, 2, 0, 0, 1) |
105 | MUX_CFG_24XX("E3_242X_DMAREQ5", 0x071, 2, 0, 0, 1) | 110 | MUX_CFG_24XX("E3_242X_DMAREQ5", 0x071, 2, 0, 0, 1) |
106 | 111 | ||
107 | /* TSC IRQ */ | ||
108 | MUX_CFG_24XX("P20_24XX_TSC_IRQ", 0x108, 0, 0, 0, 1) | ||
109 | |||
110 | /* UART3 */ | 112 | /* UART3 */ |
111 | MUX_CFG_24XX("K15_24XX_UART3_TX", 0x118, 0, 0, 0, 1) | 113 | MUX_CFG_24XX("K15_24XX_UART3_TX", 0x118, 0, 0, 0, 1) |
112 | MUX_CFG_24XX("K14_24XX_UART3_RX", 0x119, 0, 0, 0, 1) | 114 | MUX_CFG_24XX("K14_24XX_UART3_RX", 0x119, 0, 0, 0, 1) |
@@ -169,6 +171,42 @@ MUX_CFG_24XX("B3__24XX_KBR5", 0x30, 3, 1, 1, 1) | |||
169 | MUX_CFG_24XX("AA4_24XX_KBC2", 0xe7, 3, 0, 0, 1) | 171 | MUX_CFG_24XX("AA4_24XX_KBC2", 0xe7, 3, 0, 0, 1) |
170 | MUX_CFG_24XX("B13_24XX_KBC6", 0x110, 3, 0, 0, 1) | 172 | MUX_CFG_24XX("B13_24XX_KBC6", 0x110, 3, 0, 0, 1) |
171 | 173 | ||
174 | /* 2430 USB */ | ||
175 | MUX_CFG_24XX("AD9_2430_USB0_PUEN", 0x133, 4, 0, 0, 1) | ||
176 | MUX_CFG_24XX("Y11_2430_USB0_VP", 0x134, 4, 0, 0, 1) | ||
177 | MUX_CFG_24XX("AD7_2430_USB0_VM", 0x135, 4, 0, 0, 1) | ||
178 | MUX_CFG_24XX("AE7_2430_USB0_RCV", 0x136, 4, 0, 0, 1) | ||
179 | MUX_CFG_24XX("AD4_2430_USB0_TXEN", 0x137, 4, 0, 0, 1) | ||
180 | MUX_CFG_24XX("AF9_2430_USB0_SE0", 0x138, 4, 0, 0, 1) | ||
181 | MUX_CFG_24XX("AE6_2430_USB0_DAT", 0x139, 4, 0, 0, 1) | ||
182 | MUX_CFG_24XX("AD24_2430_USB1_SE0", 0x107, 2, 0, 0, 1) | ||
183 | MUX_CFG_24XX("AB24_2430_USB1_RCV", 0x108, 2, 0, 0, 1) | ||
184 | MUX_CFG_24XX("Y25_2430_USB1_TXEN", 0x109, 2, 0, 0, 1) | ||
185 | MUX_CFG_24XX("AA26_2430_USB1_DAT", 0x10A, 2, 0, 0, 1) | ||
186 | |||
187 | /* 2430 HS-USB */ | ||
188 | MUX_CFG_24XX("AD9_2430_USB0HS_DATA3", 0x133, 0, 0, 0, 1) | ||
189 | MUX_CFG_24XX("Y11_2430_USB0HS_DATA4", 0x134, 0, 0, 0, 1) | ||
190 | MUX_CFG_24XX("AD7_2430_USB0HS_DATA5", 0x135, 0, 0, 0, 1) | ||
191 | MUX_CFG_24XX("AE7_2430_USB0HS_DATA6", 0x136, 0, 0, 0, 1) | ||
192 | MUX_CFG_24XX("AD4_2430_USB0HS_DATA2", 0x137, 0, 0, 0, 1) | ||
193 | MUX_CFG_24XX("AF9_2430_USB0HS_DATA0", 0x138, 0, 0, 0, 1) | ||
194 | MUX_CFG_24XX("AE6_2430_USB0HS_DATA1", 0x139, 0, 0, 0, 1) | ||
195 | MUX_CFG_24XX("AE8_2430_USB0HS_CLK", 0x13A, 0, 0, 0, 1) | ||
196 | MUX_CFG_24XX("AD8_2430_USB0HS_DIR", 0x13B, 0, 0, 0, 1) | ||
197 | MUX_CFG_24XX("AE5_2430_USB0HS_STP", 0x13c, 0, 1, 1, 1) | ||
198 | MUX_CFG_24XX("AE9_2430_USB0HS_NXT", 0x13D, 0, 0, 0, 1) | ||
199 | MUX_CFG_24XX("AC7_2430_USB0HS_DATA7", 0x13E, 0, 0, 0, 1) | ||
200 | |||
201 | /* 2430 McBSP */ | ||
202 | MUX_CFG_24XX("AC10_2430_MCBSP2_FSX", 0x012E, 1, 0, 0, 1) | ||
203 | MUX_CFG_24XX("AD16_2430_MCBSP2_CLX", 0x012F, 1, 0, 0, 1) | ||
204 | MUX_CFG_24XX("AE13_2430_MCBSP2_DX", 0x0130, 1, 0, 0, 1) | ||
205 | MUX_CFG_24XX("AD13_2430_MCBSP2_DR", 0x0131, 1, 0, 0, 1) | ||
206 | MUX_CFG_24XX("AC10_2430_MCBSP2_FSX_OFF",0x012E, 0, 0, 0, 1) | ||
207 | MUX_CFG_24XX("AD16_2430_MCBSP2_CLX_OFF",0x012F, 0, 0, 0, 1) | ||
208 | MUX_CFG_24XX("AE13_2430_MCBSP2_DX_OFF", 0x0130, 0, 0, 0, 1) | ||
209 | MUX_CFG_24XX("AD13_2430_MCBSP2_DR_OFF", 0x0131, 0, 0, 0, 1) | ||
172 | }; | 210 | }; |
173 | 211 | ||
174 | #ifdef CONFIG_ARCH_OMAP24XX | 212 | #ifdef CONFIG_ARCH_OMAP24XX |
diff --git a/include/asm-arm/arch-omap/mux.h b/include/asm-arm/arch-omap/mux.h index 0edc6ce91b33..68dd93685f69 100644 --- a/include/asm-arm/arch-omap/mux.h +++ b/include/asm-arm/arch-omap/mux.h | |||
@@ -469,7 +469,12 @@ enum omap24xx_index { | |||
469 | AA8_242X_GPIO58, | 469 | AA8_242X_GPIO58, |
470 | Y20_24XX_GPIO60, | 470 | Y20_24XX_GPIO60, |
471 | W4__24XX_GPIO74, | 471 | W4__24XX_GPIO74, |
472 | N15_24XX_GPIO85, | ||
472 | M15_24XX_GPIO92, | 473 | M15_24XX_GPIO92, |
474 | P20_24XX_GPIO93, | ||
475 | P18_24XX_GPIO95, | ||
476 | M18_24XX_GPIO96, | ||
477 | L14_24XX_GPIO97, | ||
473 | J15_24XX_GPIO99, | 478 | J15_24XX_GPIO99, |
474 | V14_24XX_GPIO117, | 479 | V14_24XX_GPIO117, |
475 | P14_24XX_GPIO125, | 480 | P14_24XX_GPIO125, |
@@ -494,8 +499,6 @@ enum omap24xx_index { | |||
494 | D3_242X_DMAREQ4, | 499 | D3_242X_DMAREQ4, |
495 | E3_242X_DMAREQ5, | 500 | E3_242X_DMAREQ5, |
496 | 501 | ||
497 | P20_24XX_TSC_IRQ, | ||
498 | |||
499 | /* UART3 */ | 502 | /* UART3 */ |
500 | K15_24XX_UART3_TX, | 503 | K15_24XX_UART3_TX, |
501 | K14_24XX_UART3_RX, | 504 | K14_24XX_UART3_RX, |
@@ -557,6 +560,44 @@ enum omap24xx_index { | |||
557 | B3__24XX_KBR5, | 560 | B3__24XX_KBR5, |
558 | AA4_24XX_KBC2, | 561 | AA4_24XX_KBC2, |
559 | B13_24XX_KBC6, | 562 | B13_24XX_KBC6, |
563 | |||
564 | /* 2430 USB */ | ||
565 | AD9_2430_USB0_PUEN, | ||
566 | Y11_2430_USB0_VP, | ||
567 | AD7_2430_USB0_VM, | ||
568 | AE7_2430_USB0_RCV, | ||
569 | AD4_2430_USB0_TXEN, | ||
570 | AF9_2430_USB0_SE0, | ||
571 | AE6_2430_USB0_DAT, | ||
572 | AD24_2430_USB1_SE0, | ||
573 | AB24_2430_USB1_RCV, | ||
574 | Y25_2430_USB1_TXEN, | ||
575 | AA26_2430_USB1_DAT, | ||
576 | |||
577 | /* 2430 HS-USB */ | ||
578 | AD9_2430_USB0HS_DATA3, | ||
579 | Y11_2430_USB0HS_DATA4, | ||
580 | AD7_2430_USB0HS_DATA5, | ||
581 | AE7_2430_USB0HS_DATA6, | ||
582 | AD4_2430_USB0HS_DATA2, | ||
583 | AF9_2430_USB0HS_DATA0, | ||
584 | AE6_2430_USB0HS_DATA1, | ||
585 | AE8_2430_USB0HS_CLK, | ||
586 | AD8_2430_USB0HS_DIR, | ||
587 | AE5_2430_USB0HS_STP, | ||
588 | AE9_2430_USB0HS_NXT, | ||
589 | AC7_2430_USB0HS_DATA7, | ||
590 | |||
591 | /* 2430 McBSP */ | ||
592 | AC10_2430_MCBSP2_FSX, | ||
593 | AD16_2430_MCBSP2_CLX, | ||
594 | AE13_2430_MCBSP2_DX, | ||
595 | AD13_2430_MCBSP2_DR, | ||
596 | AC10_2430_MCBSP2_FSX_OFF, | ||
597 | AD16_2430_MCBSP2_CLX_OFF, | ||
598 | AE13_2430_MCBSP2_DX_OFF, | ||
599 | AD13_2430_MCBSP2_DR_OFF, | ||
600 | |||
560 | }; | 601 | }; |
561 | 602 | ||
562 | struct omap_mux_cfg { | 603 | struct omap_mux_cfg { |