diff options
author | Gordon Smith <gsmith@earthsciencesystems.com> | 2014-05-29 15:58:04 -0400 |
---|---|---|
committer | Anthony Felice <tony.felice@timesys.com> | 2014-05-29 15:58:51 -0400 |
commit | f2a07e38458e4cba85125b92abd5ff8c04275b2e (patch) | |
tree | e4fa057b2725f9818ecdd0120bcd49fb6448e7fa | |
parent | 5e9d9a5a732c65ee5ae51055effad8b6e593770b (diff) |
iomux-mvf: Add UART0-5 pinmux definitions.
Signed-off-by: Anthony Felice <tony.felice@timesys.com>
-rw-r--r-- | arch/arm/plat-mxc/include/mach/iomux-mvf.h | 83 |
1 files changed, 78 insertions, 5 deletions
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mvf.h b/arch/arm/plat-mxc/include/mach/iomux-mvf.h index 8f5b98b89e53..d820dd129b20 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mvf.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mvf.h @@ -358,7 +358,15 @@ typedef enum iomux_config { #define MVF600_PAD34_PTB12_GPIO_BTN4 \ IOMUX_PAD(0x0088, 0x0088, 0, 0x0000, 0, MVF600_BTN_PAD_CTRL) -/*UART1*/ +/* UART0: PTB10, PTB11 – ALT1 */ +#define MVF600_PAD32_PTB10_UART0_TX \ + IOMUX_PAD(0x0080, 0x0080, 1, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD33_PTB11_UART0_RX \ + IOMUX_PAD(0x0084, 0x0084, 1, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART1: PTB4, PTB5 – ALT2 */ #define MVF600_PAD26_PTB4_UART1_TX \ IOMUX_PAD(0x0068, 0x0068, 2, 0x0380, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) @@ -366,11 +374,76 @@ typedef enum iomux_config { IOMUX_PAD(0x006C, 0x006C, 2, 0x037C, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) -#define MVF600_PAD32_PTB10_UART0_TX \ - IOMUX_PAD(0x0080, 0x0080, 1, 0x0000, 0, \ +/* UART1: PTC2, PTC3 – ALT2 */ +#define MVF600_PAD47_PTC2_UART1_TX \ + IOMUX_PAD(0x00bc, 0x00bc, 2, 0x0380, 1, \ MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) -#define MVF600_PAD33_PTB11_UART0_RX \ - IOMUX_PAD(0x0084, 0x0084, 1, 0x0000, 0, \ +#define MVF600_PAD48_PTC3_UART1_RX \ + IOMUX_PAD(0x00c0, 0x00co, 2, 0x037C, 1, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART1: PTB23, PTB24 – ALT2 */ +#define MVF600_PAD93_PTB23_UART1_TX \ + IOMUX_PAD(0x0174, 0x0174, 2, 0x0380, 2, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD94_PTB24_UART1_RX \ + IOMUX_PAD(0x0178, 0x0178, 2, 0x037C, 2, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART2: PTB6, PTB7 – ALT7 */ +#define MVF600_PAD28_PTB6_UART2_TX \ + IOMUX_PAD( 0x0070, 0x0070, 7, 0x038C, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD29_PTB7_UART2_RX \ + IOMUX_PAD( 0x0074, 0x0074, 7, 0x0388, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART2: PTD23, PTD22 – ALT6 */ +#define MVF600_PAD71_PTD23_UART2_TX \ + IOMUX_PAD(0x011C, 0x011C, 6, 0x038C, 1, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD72_PTD22_UART2_RX \ + IOMUX_PAD(0x0120, 0x0120, 6, 0x0388, 1, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART2: PTD0, PTD1 – ALT2 */ +#define MVF600_PAD79_PTD0_UART2_TX \ + IOMUX_PAD(0x013C, 0x013C, 2, 0x038C, 2, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD80_PTD1_UART2_RX \ + IOMUX_PAD(0x0140, 0x0140, 2, 0x0388, 2, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART3: PTA20, PTA21 – ALT6 */ +#define MVF600_PAD10_PTA20_UART3_TX \ + IOMUX_PAD( 0x0028, 0x0028, 6, 0x0394, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD11_PTA21_UART3_RX \ + IOMUX_PAD( 0x002c, 0x002c, 6, 0x0390, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART3: PTA30, PTA31 – ALT7 */ +#define MVF600_PAD20_PTA30_UART3_TX \ + IOMUX_PAD( 0x0050, 0x0050, 7, 0x0394, 1, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD21_PTA31_UART3_RX \ + IOMUX_PAD( 0x0054, 0x0054, 7, 0x0390, 1, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART4: PTA28, PTA29 – ALT4 */ +#define MVF600_PAD18_PTA28_UART4_TX \ + IOMUX_PAD( 0x0048, 0x0048, 4, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD19_PTA29_UART4_RX \ + IOMUX_PAD( 0x004c, 0x004c, 4, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART5: PTC14, PTC15 – ALT4 */ +#define MVF600_PAD59_PTC14_UART5_TX \ + IOMUX_PAD( 0x00ec, 0x00ec, 4, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD60_PTC15_UART5_RX \ + IOMUX_PAD( 0x00f0, 0x00f0, 4, 0x0000, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) /* FlexTimer channel pin */ |