[ARM] pxa/aspenite: add support for console uart
[deliverable/linux.git] / arch / arm / mach-mmp / aspenite.c
CommitLineData
49cbe786
EM
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>
9c291f0f 13#include <linux/kernel.h>
49cbe786
EM
14
15#include <asm/mach-types.h>
16#include <asm/mach/arch.h>
17#include <mach/addr-map.h>
9c291f0f
EM
18#include <mach/mfp-pxa168.h>
19#include <mach/pxa168.h>
49cbe786
EM
20
21#include "common.h"
22
9c291f0f
EM
23static unsigned long common_pin_config[] __initdata = {
24 /* UART1 */
25 GPIO107_UART1_RXD,
26 GPIO108_UART1_TXD,
27};
28
49cbe786
EM
29static void __init common_init(void)
30{
9c291f0f
EM
31 mfp_config(ARRAY_AND_SIZE(common_pin_config));
32
33 pxa168_add_uart(1);
49cbe786
EM
34}
35
36MACHINE_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,
44MACHINE_END
45
46MACHINE_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,
54MACHINE_END
This page took 0.02824 seconds and 5 git commands to generate.