2 * arch/arm/mach-netx/nxdkn.c
4 * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #include <linux/dma-mapping.h>
21 #include <linux/init.h>
22 #include <linux/interrupt.h>
23 #include <linux/mtd/plat-ram.h>
24 #include <linux/platform_device.h>
25 #include <linux/amba/bus.h>
26 #include <linux/amba/clcd.h>
28 #include <mach/hardware.h>
29 #include <asm/mach-types.h>
30 #include <asm/mach/arch.h>
31 #include <asm/hardware/vic.h>
32 #include <mach/netx-regs.h>
37 static struct netxeth_platform_data eth0_platform_data
= {
41 static struct platform_device nxdkn_eth0_device
= {
47 .platform_data
= ð0_platform_data
,
51 static struct netxeth_platform_data eth1_platform_data
= {
55 static struct platform_device nxdkn_eth1_device
= {
61 .platform_data
= ð1_platform_data
,
65 static struct resource netx_uart0_resources
[] = {
69 .flags
= IORESOURCE_MEM
,
72 .start
= (NETX_IRQ_UART0
),
73 .end
= (NETX_IRQ_UART0
),
74 .flags
= IORESOURCE_IRQ
,
78 static struct platform_device netx_uart0_device
= {
81 .num_resources
= ARRAY_SIZE(netx_uart0_resources
),
82 .resource
= netx_uart0_resources
,
85 static struct platform_device
*devices
[] __initdata
= {
91 static void __init
nxdkn_init(void)
93 platform_add_devices(devices
, ARRAY_SIZE(devices
));
96 MACHINE_START(NXDKN
, "Hilscher nxdkn")
98 .map_io
= netx_map_io
,
99 .init_irq
= netx_init_irq
,
100 .handle_irq
= vic_handle_irq
,
101 .timer
= &netx_timer
,
102 .init_machine
= nxdkn_init
,
103 .restart
= netx_restart
,