1 --- a/arch/mips/lantiq/machtypes.h
2 +++ b/arch/mips/lantiq/machtypes.h
3 @@ -33,6 +33,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,3 +6,4 @@ 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
34 +++ b/arch/mips/lantiq/xway/mach-netgear.c
37 + * This program is free software; you can redistribute it and/or modify it
38 + * under the terms of the GNU General Public License version 2 as published
39 + * by the Free Software Foundation.
41 + * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
44 +#include <linux/init.h>
45 +#include <linux/platform_device.h>
46 +#include <linux/mtd/mtd.h>
47 +#include <linux/mtd/partitions.h>
48 +#include <linux/mtd/physmap.h>
49 +#include <linux/input.h>
50 +#include <linux/phy.h>
51 +#include <linux/spi/spi.h>
53 +#include <lantiq_soc.h>
56 +#include "../machtypes.h"
59 +static struct ltq_pci_data ltq_pci_data = {
60 + .clock = PCI_CLOCK_INT,
61 + .gpio = PCI_GNT1 | PCI_REQ1,
63 + [14] = INT_NUM_IM0_IRL0 + 22,
67 +static struct ltq_eth_data ltq_eth_data = {
68 + .mii_mode = PHY_INTERFACE_MODE_MII,
71 +struct spi_board_info spi_info = {
74 + .max_speed_hz = 25000000,
75 + .modalias = "mx25l12805d",
78 +struct ltq_spi_platform_data ltq_spi_data = {
79 + .num_chipselect = 4,
82 +static void __init dgn3500_init(void)
84 + ltq_register_pci(<q_pci_data);
85 + ltq_register_etop(<q_eth_data);
86 + ltq_register_spi(<q_spi_data, &spi_info, 1);
89 +MIPS_MACHINE(LANTIQ_MACH_DGN3500B,