2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License version 2 as published
4 * by the Free Software Foundation.
6 * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
9 #include <linux/init.h>
10 #include <linux/platform_device.h>
11 #include <linux/mtd/mtd.h>
12 #include <linux/mtd/partitions.h>
13 #include <linux/mtd/physmap.h>
14 #include <linux/input.h>
15 #include <linux/phy.h>
16 #include <linux/spi/spi.h>
18 #include <lantiq_soc.h>
21 #include "../machtypes.h"
24 static struct ltq_pci_data ltq_pci_data
= {
25 .clock
= PCI_CLOCK_INT
,
26 .gpio
= PCI_GNT1
| PCI_REQ1
,
28 [14] = INT_NUM_IM0_IRL0
+ 22,
32 static struct ltq_eth_data ltq_eth_data
= {
33 .mii_mode
= PHY_INTERFACE_MODE_MII
,
36 struct spi_board_info spi_info
= {
39 .max_speed_hz
= 25000000,
40 .modalias
= "mx25l12805d",
43 struct ltq_spi_platform_data ltq_spi_data
= {
47 static void __init
dgn3500_init(void)
49 ltq_register_pci(<q_pci_data
);
50 ltq_register_etop(<q_eth_data
);
51 ltq_register_spi(<q_spi_data
, &spi_info
, 1);
54 MIPS_MACHINE(LANTIQ_MACH_DGN3500B
,