1 --- a/arch/mips/lantiq/machtypes.h
2 +++ b/arch/mips/lantiq/machtypes.h
3 @@ -34,6 +34,9 @@ enum lantiq_mach_type {
4 LANTIQ_MACH_ARV752DPW, /* Arcor easybox a802 */
5 LANTIQ_MACH_ARV752DPW22, /* Arcor easybox a803 */
6 LANTIQ_MACH_ARV7518PW, /* ASTORIA */
9 + LANTIQ_MACH_DGN3500B, /* Netgear DGN3500 */
13 --- a/arch/mips/lantiq/xway/Kconfig
14 +++ b/arch/mips/lantiq/xway/Kconfig
15 @@ -10,6 +10,10 @@ config LANTIQ_MACH_ARV45XX
19 +config LANTIQ_MACH_NETGEAR
26 --- a/arch/mips/lantiq/xway/Makefile
27 +++ b/arch/mips/lantiq/xway/Makefile
28 @@ -6,4 +6,5 @@ obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o
29 obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o
30 obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o
31 obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o
32 +obj-$(CONFIG_LANTIQ_MACH_NETGEAR) += mach-netgear.o
33 obj-y += dev-dwc_otg.o
34 --- a/arch/mips/lantiq/xway/devices.h
35 +++ b/arch/mips/lantiq/xway/devices.h
38 #include "../devices.h"
39 #include <linux/phy.h>
40 +#include <linux/spi/spi.h>
42 extern void ltq_register_gpio(void);
43 extern void ltq_register_gpio_stp(void);
44 @@ -18,5 +19,7 @@ extern void ltq_register_ase_asc(void);
45 extern void ltq_register_etop(struct ltq_eth_data *eth);
46 extern void ltq_register_gpio_ebu(unsigned int value);
47 extern void ltq_register_madwifi_eep(unsigned long long addr);
48 +extern void ltq_register_spi(struct ltq_spi_platform_data *pdata,
49 + struct spi_board_info const *info, unsigned n);
53 +++ b/arch/mips/lantiq/xway/mach-netgear.c
56 + * This program is free software; you can redistribute it and/or modify it
57 + * under the terms of the GNU General Public License version 2 as published
58 + * by the Free Software Foundation.
60 + * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
63 +#include <linux/init.h>
64 +#include <linux/platform_device.h>
65 +#include <linux/mtd/mtd.h>
66 +#include <linux/mtd/partitions.h>
67 +#include <linux/mtd/physmap.h>
68 +#include <linux/input.h>
69 +#include <linux/phy.h>
70 +#include <linux/spi/spi.h>
72 +#include <lantiq_soc.h>
75 +#include "../machtypes.h"
78 +static struct ltq_pci_data ltq_pci_data = {
79 + .clock = PCI_CLOCK_INT,
80 + .gpio = PCI_GNT1 | PCI_REQ1,
82 + [14] = INT_NUM_IM0_IRL0 + 22,
86 +static struct ltq_eth_data ltq_eth_data = {
87 + .mii_mode = PHY_INTERFACE_MODE_MII,
90 +struct spi_board_info spi_info = {
93 + .max_speed_hz = 25000000,
94 + .modalias = "mx25l12805d",
97 +struct ltq_spi_platform_data ltq_spi_data = {
98 + .num_chipselect = 4,
101 +static void __init dgn3500_init(void)
103 + ltq_register_pci(<q_pci_data);
104 + ltq_register_etop(<q_eth_data);
105 + ltq_register_spi(<q_spi_data, &spi_info, 1);
108 +MIPS_MACHINE(LANTIQ_MACH_DGN3500B,
110 + "Netgear DGN3500B",