mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 17:26:39 +07:00
2cb003c57e
Numerous includes of asm/hardware/vic.h aren't needed, so remove them. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ryan Mallon <rmallon@gmail.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Hubert Feurstein <hubert.feurstein@contec.at> Cc: Alessandro Rubini <rubini@unipv.it> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: STEricsson <STEricsson_nomadik_linux@list.st.com> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Acked-By: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: linux-samsung-soc@vger.kernel.org Cc: patches@opensource.wolfsonmicro.com Acked-by: Arnd Bergmann <arnd@arndb.de>
103 lines
2.4 KiB
C
103 lines
2.4 KiB
C
/*
|
|
* 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 <mach/hardware.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <mach/netx-regs.h>
|
|
#include <linux/platform_data/eth-netx.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 = ð0_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 = ð1_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")
|
|
.atag_offset = 0x100,
|
|
.map_io = netx_map_io,
|
|
.init_irq = netx_init_irq,
|
|
.timer = &netx_timer,
|
|
.init_machine = nxdkn_init,
|
|
.restart = netx_restart,
|
|
MACHINE_END
|