aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/teton_bga.c
diff options
context:
space:
mode:
authorMark F. Brown <mark.brown314@gmail.com>2010-09-12 23:51:34 -0400
committerEric Miao <eric.y.miao@gmail.com>2010-10-09 05:07:26 -0400
commit1bbd7089f2effc40c35ffbbc62ad54aefd741633 (patch)
tree08110a49c3c46b174103ca3b75fc6c70fd0c4045 /arch/arm/mach-mmp/teton_bga.c
parent0bd8696119904b5868c7315b644128b16ab06f59 (diff)
ARM: pxa168: added support for Teton BGA platform
Added board defintion, header, and debug UART support. Signed-off-by: Mark F. Brown <mark.brown314@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/teton_bga.c')
-rw-r--r--arch/arm/mach-mmp/teton_bga.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c
new file mode 100644
index 000000000000..4e024c7fb984
--- /dev/null
+++ b/arch/arm/mach-mmp/teton_bga.c
@@ -0,0 +1,51 @@
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
29static unsigned long teton_bga_pin_config[] __initdata = {
30 /* UART1 */
31 GPIO107_UART1_TXD,
32 GPIO108_UART1_RXD,
33};
34
35static 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
43MACHINE_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,
51MACHINE_END