Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28078
b: refs/heads/master
c: 693532d
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Russell King committed Jun 19, 2006
1 parent 6615ed1 commit 475fa52
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e77da68a6107ee47323fec5dfb3a93ebbc809e2
refs/heads/master: 693532dcff871543639743e9c2e2b99c492f8f8d
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-netx/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
menu "NetX Implementations"
depends on ARCH_NETX

config MACH_NXDKN
bool "Enable Hilscher nxdkn Eval Board support"
depends on ARCH_NETX
help
Board support for the Hilscher NetX Eval Board

endmenu
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-netx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

obj-y += time.o generic.o pfifo.o xc.o

# Specific board support
obj-$(CONFIG_MACH_NXDKN) += nxdkn.o

103 changes: 103 additions & 0 deletions trunk/arch/arm/mach-netx/nxdkn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* arch/arm/mach-netx/nxdkn.c
*
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
* 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 published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/mtd/plat-ram.h>
#include <linux/platform_device.h>
#include <linux/amba/bus.h>
#include <linux/amba/clcd.h>

#include <asm/hardware.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/arch/netx-regs.h>
#include <asm/arch/eth.h>

#include "generic.h"

static struct netxeth_platform_data eth0_platform_data = {
.xcno = 0,
};

static struct platform_device nxdkn_eth0_device = {
.name = "netx-eth",
.id = 0,
.num_resources = 0,
.resource = NULL,
.dev = {
.platform_data = &eth0_platform_data,
}
};

static struct netxeth_platform_data eth1_platform_data = {
.xcno = 1,
};

static struct platform_device nxdkn_eth1_device = {
.name = "netx-eth",
.id = 1,
.num_resources = 0,
.resource = NULL,
.dev = {
.platform_data = &eth1_platform_data,
}
};

static struct resource netx_uart0_resources[] = {
[0] = {
.start = 0x00100A00,
.end = 0x00100A3F,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = (NETX_IRQ_UART0),
.end = (NETX_IRQ_UART0),
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device netx_uart0_device = {
.name = "netx-uart",
.id = 0,
.num_resources = ARRAY_SIZE(netx_uart0_resources),
.resource = netx_uart0_resources,
};

static struct platform_device *devices[] __initdata = {
&nxdkn_eth0_device,
&nxdkn_eth1_device,
&netx_uart0_device,
};

static void __init nxdkn_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
}

MACHINE_START(NXDKN, "Hilscher nxdkn")
.phys_io = 0x00100000,
.io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc,
.boot_params = 0x80000100,
.map_io = netx_map_io,
.init_irq = netx_init_irq,
.timer = &netx_timer,
.init_machine = nxdkn_init,
MACHINE_END

0 comments on commit 475fa52

Please sign in to comment.