2009-01-20 06:15:18 +00:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/mach-mmp/aspenite.c
|
|
|
|
*
|
|
|
|
* Support for the Marvell PXA168-based Aspenite and Zylonite2
|
|
|
|
* Development Platform.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* publishhed by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
2009-02-10 02:35:25 +00:00
|
|
|
#include <linux/kernel.h>
|
2009-01-20 06:15:18 +00:00
|
|
|
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <mach/addr-map.h>
|
2009-02-10 02:35:25 +00:00
|
|
|
#include <mach/mfp-pxa168.h>
|
|
|
|
#include <mach/pxa168.h>
|
2009-01-20 06:15:18 +00:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2009-02-10 02:35:25 +00:00
|
|
|
static unsigned long common_pin_config[] __initdata = {
|
|
|
|
/* UART1 */
|
|
|
|
GPIO107_UART1_RXD,
|
|
|
|
GPIO108_UART1_TXD,
|
|
|
|
};
|
|
|
|
|
2009-01-20 06:15:18 +00:00
|
|
|
static void __init common_init(void)
|
|
|
|
{
|
2009-02-10 02:35:25 +00:00
|
|
|
mfp_config(ARRAY_AND_SIZE(common_pin_config));
|
|
|
|
|
|
|
|
pxa168_add_uart(1);
|
2009-01-20 06:15:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
|
|
|
|
.phys_io = APB_PHYS_BASE,
|
|
|
|
.boot_params = 0x00000100,
|
|
|
|
.io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
|
|
|
|
.map_io = pxa_map_io,
|
|
|
|
.init_irq = pxa168_init_irq,
|
|
|
|
.timer = &pxa168_timer,
|
|
|
|
.init_machine = common_init,
|
|
|
|
MACHINE_END
|
|
|
|
|
|
|
|
MACHINE_START(ZYLONITE2, "PXA168-based Zylonite2 Development Platform")
|
|
|
|
.phys_io = APB_PHYS_BASE,
|
|
|
|
.boot_params = 0x00000100,
|
|
|
|
.io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
|
|
|
|
.map_io = pxa_map_io,
|
|
|
|
.init_irq = pxa168_init_irq,
|
|
|
|
.timer = &pxa168_timer,
|
|
|
|
.init_machine = common_init,
|
|
|
|
MACHINE_END
|