ARM: imx: merge plat-mxc into mach-imx
[deliverable/linux.git] / arch / arm / mach-imx / mach-bug.c
CommitLineData
ea7ee4ca
DGC
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
ea7ee4ca
DGC
22#include <mach/hardware.h>
23#include <mach/common.h>
24
25#include <asm/mach/time.h>
26#include <asm/mach/arch.h>
27#include <asm/mach-types.h>
28
29#include "devices-imx31.h"
267dd34c 30#include "iomux-mx3.h"
ea7ee4ca
DGC
31
32static const struct imxuart_platform_data uart_pdata __initconst = {
33 .flags = IMXUART_HAVE_RTSCTS,
34};
35
36static 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
43static void __init bug_board_init(void)
44{
b78d8e59
SG
45 imx31_soc_init();
46
ea7ee4ca
DGC
47 mxc_iomux_setup_multiple_pins(bug_pins,
48 ARRAY_SIZE(bug_pins), "uart-4");
49 imx31_add_imx_uart4(&uart_pdata);
50}
51
52static void __init bug_timer_init(void)
53{
54 mx31_clocks_init(26000000);
55}
56
57static struct sys_timer bug_timer = {
58 .init = bug_timer_init,
59};
60
61MACHINE_START(BUG, "BugLabs BUGBase")
62 .map_io = mx31_map_io,
63 .init_early = imx31_init_early,
64 .init_irq = mx31_init_irq,
ffa2ea3f 65 .handle_irq = imx31_handle_irq,
ea7ee4ca
DGC
66 .timer = &bug_timer,
67 .init_machine = bug_board_init,
65ea7884 68 .restart = mxc_restart,
ea7ee4ca 69MACHINE_END
This page took 0.115126 seconds and 5 git commands to generate.