Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 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> |
Eric Miao | 9c291f0 | 2009-02-10 10:35:25 +0800 | [diff] [blame^] | 13 | #include <linux/kernel.h> |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 14 | |
| 15 | #include <asm/mach-types.h> |
| 16 | #include <asm/mach/arch.h> |
| 17 | #include <mach/addr-map.h> |
Eric Miao | 9c291f0 | 2009-02-10 10:35:25 +0800 | [diff] [blame^] | 18 | #include <mach/mfp-pxa168.h> |
| 19 | #include <mach/pxa168.h> |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 20 | |
| 21 | #include "common.h" |
| 22 | |
Eric Miao | 9c291f0 | 2009-02-10 10:35:25 +0800 | [diff] [blame^] | 23 | static unsigned long common_pin_config[] __initdata = { |
| 24 | /* UART1 */ |
| 25 | GPIO107_UART1_RXD, |
| 26 | GPIO108_UART1_TXD, |
| 27 | }; |
| 28 | |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 29 | static void __init common_init(void) |
| 30 | { |
Eric Miao | 9c291f0 | 2009-02-10 10:35:25 +0800 | [diff] [blame^] | 31 | mfp_config(ARRAY_AND_SIZE(common_pin_config)); |
| 32 | |
| 33 | pxa168_add_uart(1); |
Eric Miao | 49cbe78 | 2009-01-20 14:15:18 +0800 | [diff] [blame] | 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 |