aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-qong.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-23 05:46:16 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:00:58 -0400
commit16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (patch)
treeb6c14199c6bac7a174c22a3d05eb48689a81df47 /arch/arm/mach-mx3/mach-qong.c
parentd5dac4a69fe571ec12d999174e0425f2641325d4 (diff)
ARM: imx: dynamically register imx-uart devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-qong.c')
-rw-r--r--arch/arm/mach-mx3/mach-qong.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-mx3/mach-qong.c b/arch/arm/mach-mx3/mach-qong.c
index 335b0bf93eb5..d44ac70222a5 100644
--- a/arch/arm/mach-mx3/mach-qong.c
+++ b/arch/arm/mach-mx3/mach-qong.c
@@ -30,8 +30,9 @@
30#include <mach/common.h> 30#include <mach/common.h>
31#include <asm/page.h> 31#include <asm/page.h>
32#include <asm/setup.h> 32#include <asm/setup.h>
33#include <mach/imx-uart.h>
34#include <mach/iomux-mx3.h> 33#include <mach/iomux-mx3.h>
34
35#include "devices-imx31.h"
35#include "devices.h" 36#include "devices.h"
36 37
37/* FPGA defines */ 38/* FPGA defines */
@@ -57,7 +58,7 @@
57 * This file contains the board-specific initialization routines. 58 * This file contains the board-specific initialization routines.
58 */ 59 */
59 60
60static struct imxuart_platform_data uart_pdata = { 61static const struct imxuart_platform_data uart_pdata __initconst = {
61 .flags = IMXUART_HAVE_RTSCTS, 62 .flags = IMXUART_HAVE_RTSCTS,
62}; 63};
63 64
@@ -68,11 +69,11 @@ static int uart_pins[] = {
68 MX31_PIN_RXD1__RXD1 69 MX31_PIN_RXD1__RXD1
69}; 70};
70 71
71static inline void mxc_init_imx_uart(void) 72static inline void __init mxc_init_imx_uart(void)
72{ 73{
73 mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), 74 mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins),
74 "uart-0"); 75 "uart-0");
75 mxc_register_device(&mxc_uart_device0, &uart_pdata); 76 imx31_add_imx_uart0(&uart_pdata);
76} 77}
77 78
78static struct resource dnet_resources[] = { 79static struct resource dnet_resources[] = {