Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112485
b: refs/heads/master
c: 0741794
h: refs/heads/master
i:
  112483: 700b389
v: v3
  • Loading branch information
Gilles Chanteperdrix authored and Sascha Hauer committed Sep 9, 2008
1 parent acc1d09 commit bbe0f67
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfc135632a17b57cc6f97a7dea474a5abcfac36a
refs/heads/master: 0741794c0d4192c45193d5e7f8e87a7bfb79ae0a
23 changes: 23 additions & 0 deletions trunk/arch/arm/mach-mx3/mx31ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <asm/mach/map.h>
#include <mach/common.h>
#include <mach/board-mx31ads.h>
#include <mach/imx-uart.h>
#include <mach/iomux-mx3.h>

/*!
* @file mx31ads.c
Expand Down Expand Up @@ -84,6 +86,26 @@ static inline int mxc_init_extuart(void)
}
#endif

#if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE)
static struct imxuart_platform_data uart_pdata = {
.flags = IMXUART_HAVE_RTSCTS,
};

static inline void mxc_init_imx_uart(void)
{
mxc_iomux_mode(MX31_PIN_CTS1__CTS1);
mxc_iomux_mode(MX31_PIN_RTS1__RTS1);
mxc_iomux_mode(MX31_PIN_TXD1__TXD1);
mxc_iomux_mode(MX31_PIN_RXD1__RXD1);

mxc_register_device(&mxc_uart_device0, &uart_pdata);
}
#else /* !SERIAL_IMX */
static inline void mxc_init_imx_uart(void)
{
}
#endif /* !SERIAL_IMX */

/*!
* This structure defines static mappings for the i.MX31ADS board.
*/
Expand Down Expand Up @@ -126,6 +148,7 @@ void __init mx31ads_map_io(void)
static void __init mxc_board_init(void)
{
mxc_init_extuart();
mxc_init_imx_uart();
}

static void __init mx31ads_timer_init(void)
Expand Down

0 comments on commit bbe0f67

Please sign in to comment.