]> bbs.cooldavid.org Git - net-next-2.6.git/blob - arch/arm/mach-mmp/teton_bga.c
ARM: pxa168: added support for Teton BGA platform
[net-next-2.6.git] / arch / arm / mach-mmp / teton_bga.c
1 /*
2  *  linux/arch/arm/mach-mmp/teton_bga.c
3  *
4  *  Support for the Marvell PXA168 Teton BGA Development Platform.
5  *
6  *  Author: Mark F. Brown <mark.brown314@gmail.com>
7  *
8  *  This code is based on aspenite.c
9  *
10  *  This program is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License version 2 as
12  *  publishhed by the Free Software Foundation.
13  */
14
15 #include <linux/init.h>
16 #include <linux/kernel.h>
17 #include <linux/platform_device.h>
18 #include <linux/gpio.h>
19
20 #include <asm/mach-types.h>
21 #include <asm/mach/arch.h>
22 #include <mach/addr-map.h>
23 #include <mach/mfp-pxa168.h>
24 #include <mach/pxa168.h>
25 #include <mach/teton_bga.h>
26
27 #include "common.h"
28
29 static unsigned long teton_bga_pin_config[] __initdata = {
30         /* UART1 */
31         GPIO107_UART1_TXD,
32         GPIO108_UART1_RXD,
33 };
34
35 static void __init teton_bga_init(void)
36 {
37         mfp_config(ARRAY_AND_SIZE(teton_bga_pin_config));
38
39         /* on-chip devices */
40         pxa168_add_uart(1);
41 }
42
43 MACHINE_START(TETON_BGA, "PXA168-based Teton BGA Development Platform")
44         .phys_io        = APB_PHYS_BASE,
45         .io_pg_offst    = (APB_VIRT_BASE >> 18) & 0xfffc,
46         .map_io         = mmp_map_io,
47         .nr_irqs        = IRQ_BOARD_START,
48         .init_irq       = pxa168_init_irq,
49         .timer          = &pxa168_timer,
50         .init_machine   = teton_bga_init,
51 MACHINE_END