diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-03-17 04:40:29 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-05-19 07:11:38 -0400 |
commit | 27ad4bf72a27c80c121b2349174e6b41b2e3afd8 (patch) | |
tree | 864ddd4e58386f22c9fda4457ebc5bb23d790792 /arch/arm/mach-imx/mach-bug.c | |
parent | 7fc92c6092d7208e53d35cda32a9181aae396adf (diff) |
ARM: imx: move mx3 support to mach-imx
Fixing a few "please, no space before tabs" and "empty line at end of
file" warnings on the way.
LAKML-Reference: 1299271882-2130-6-git-send-email-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-bug.c')
-rw-r--r-- | arch/arm/mach-imx/mach-bug.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-bug.c b/arch/arm/mach-imx/mach-bug.c new file mode 100644 index 000000000000..42e4f078a19c --- /dev/null +++ b/arch/arm/mach-imx/mach-bug.c | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2000 Deep Blue Solutions Ltd | ||
3 | * Copyright (C) 2002 Shane Nay (shane@minirl.com) | ||
4 | * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved. | ||
5 | * Copyright 2011 Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | */ | ||
17 | |||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | |||
22 | #include <mach/iomux-mx3.h> | ||
23 | #include <mach/hardware.h> | ||
24 | #include <mach/common.h> | ||
25 | |||
26 | #include <asm/mach/time.h> | ||
27 | #include <asm/mach/arch.h> | ||
28 | #include <asm/mach-types.h> | ||
29 | |||
30 | #include "devices-imx31.h" | ||
31 | |||
32 | static const struct imxuart_platform_data uart_pdata __initconst = { | ||
33 | .flags = IMXUART_HAVE_RTSCTS, | ||
34 | }; | ||
35 | |||
36 | static const unsigned int bug_pins[] __initconst = { | ||
37 | MX31_PIN_PC_RST__CTS5, | ||
38 | MX31_PIN_PC_VS2__RTS5, | ||
39 | MX31_PIN_PC_BVD2__TXD5, | ||
40 | MX31_PIN_PC_BVD1__RXD5, | ||
41 | }; | ||
42 | |||
43 | static void __init bug_board_init(void) | ||
44 | { | ||
45 | mxc_iomux_setup_multiple_pins(bug_pins, | ||
46 | ARRAY_SIZE(bug_pins), "uart-4"); | ||
47 | imx31_add_imx_uart4(&uart_pdata); | ||
48 | } | ||
49 | |||
50 | static void __init bug_timer_init(void) | ||
51 | { | ||
52 | mx31_clocks_init(26000000); | ||
53 | } | ||
54 | |||
55 | static struct sys_timer bug_timer = { | ||
56 | .init = bug_timer_init, | ||
57 | }; | ||
58 | |||
59 | MACHINE_START(BUG, "BugLabs BUGBase") | ||
60 | .map_io = mx31_map_io, | ||
61 | .init_early = imx31_init_early, | ||
62 | .init_irq = mx31_init_irq, | ||
63 | .timer = &bug_timer, | ||
64 | .init_machine = bug_board_init, | ||
65 | MACHINE_END | ||