1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-netx/nxdkn.c
5 * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
8 #include <linux/dma-mapping.h>
9 #include <linux/init.h>
10 #include <linux/interrupt.h>
11 #include <linux/mtd/plat-ram.h>
12 #include <linux/platform_device.h>
13 #include <linux/amba/bus.h>
14 #include <linux/amba/clcd.h>
16 #include <mach/hardware.h>
17 #include <asm/mach-types.h>
18 #include <asm/mach/arch.h>
19 #include <mach/netx-regs.h>
20 #include <linux/platform_data/eth-netx.h>
24 static struct netxeth_platform_data eth0_platform_data = {
28 static struct platform_device nxdkn_eth0_device = {
34 .platform_data = ð0_platform_data,
38 static struct netxeth_platform_data eth1_platform_data = {
42 static struct platform_device nxdkn_eth1_device = {
48 .platform_data = ð1_platform_data,
52 static struct resource netx_uart0_resources[] = {
56 .flags = IORESOURCE_MEM,
59 .start = (NETX_IRQ_UART0),
60 .end = (NETX_IRQ_UART0),
61 .flags = IORESOURCE_IRQ,
65 static struct platform_device netx_uart0_device = {
68 .num_resources = ARRAY_SIZE(netx_uart0_resources),
69 .resource = netx_uart0_resources,
72 static struct platform_device *devices[] __initdata = {
78 static void __init nxdkn_init(void)
80 platform_add_devices(devices, ARRAY_SIZE(devices));
83 MACHINE_START(NXDKN, "Hilscher nxdkn")
85 .map_io = netx_map_io,
86 .init_irq = netx_init_irq,
87 .init_time = netx_timer_init,
88 .init_machine = nxdkn_init,
89 .restart = netx_restart,