[ARM] pxa/aspenite: add support for console uart
[linux-2.6] / arch / arm / mach-mmp / aspenite.c
1 /*
2  *  linux/arch/arm/mach-mmp/aspenite.c
3  *
4  *  Support for the Marvell PXA168-based Aspenite and Zylonite2
5  *  Development Platform.
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 version 2 as
9  *  publishhed by the Free Software Foundation.
10  */
11
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14
15 #include <asm/mach-types.h>
16 #include <asm/mach/arch.h>
17 #include <mach/addr-map.h>
18 #include <mach/mfp-pxa168.h>
19 #include <mach/pxa168.h>
20
21 #include "common.h"
22
23 static unsigned long common_pin_config[] __initdata = {
24         /* UART1 */
25         GPIO107_UART1_RXD,
26         GPIO108_UART1_TXD,
27 };
28
29 static void __init common_init(void)
30 {
31         mfp_config(ARRAY_AND_SIZE(common_pin_config));
32
33         pxa168_add_uart(1);
34 }
35
36 MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
37         .phys_io        = APB_PHYS_BASE,
38         .boot_params    = 0x00000100,
39         .io_pg_offst    = (APB_VIRT_BASE >> 18) & 0xfffc,
40         .map_io         = pxa_map_io,
41         .init_irq       = pxa168_init_irq,
42         .timer          = &pxa168_timer,
43         .init_machine   = common_init,
44 MACHINE_END
45
46 MACHINE_START(ZYLONITE2, "PXA168-based Zylonite2 Development Platform")
47         .phys_io        = APB_PHYS_BASE,
48         .boot_params    = 0x00000100,
49         .io_pg_offst    = (APB_VIRT_BASE >> 18) & 0xfffc,
50         .map_io         = pxa_map_io,
51         .init_irq       = pxa168_init_irq,
52         .timer          = &pxa168_timer,
53         .init_machine   = common_init,
54 MACHINE_END