blob: a9efa5cadbe88e8ffd442eb31adc27fc2ffe11db [file] [log] [blame]
Eric Miao49cbe782009-01-20 14:15:18 +08001/*
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>
Eric Miao9c291f02009-02-10 10:35:25 +080013#include <linux/kernel.h>
Eric Miao49cbe782009-01-20 14:15:18 +080014
15#include <asm/mach-types.h>
16#include <asm/mach/arch.h>
17#include <mach/addr-map.h>
Eric Miao9c291f02009-02-10 10:35:25 +080018#include <mach/mfp-pxa168.h>
19#include <mach/pxa168.h>
Eric Miao49cbe782009-01-20 14:15:18 +080020
21#include "common.h"
22
Eric Miao9c291f02009-02-10 10:35:25 +080023static unsigned long common_pin_config[] __initdata = {
24 /* UART1 */
25 GPIO107_UART1_RXD,
26 GPIO108_UART1_TXD,
27};
28
Eric Miao49cbe782009-01-20 14:15:18 +080029static void __init common_init(void)
30{
Eric Miao9c291f02009-02-10 10:35:25 +080031 mfp_config(ARRAY_AND_SIZE(common_pin_config));
32
33 pxa168_add_uart(1);
Eric Miao49cbe782009-01-20 14:15:18 +080034}
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