ubus: update to latest version, includes a small bugfix for object call replies
[openwrt.git] / target / linux / lantiq / patches-3.0 / 460-mach-dgn3500.patch
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 */
7 +
8 +       /* Netgear */
9 +       LANTIQ_MACH_DGN3500B,           /* Netgear DGN3500 */
10  };
11  
12  #endif
13 --- a/arch/mips/lantiq/xway/Kconfig
14 +++ b/arch/mips/lantiq/xway/Kconfig
15 @@ -10,6 +10,10 @@ config LANTIQ_MACH_ARV45XX
16         bool "ARV45XX"
17         default y
18  
19 +config LANTIQ_MACH_NETGEAR
20 +       bool "Netgear"
21 +       default y
22 +
23  endmenu
24  
25  endif
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
33 --- /dev/null
34 +++ b/arch/mips/lantiq/xway/mach-netgear.c
35 @@ -0,0 +1,57 @@
36 +/*
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.
40 + *
41 + *  Copyright (C) 2010 John Crispin <blogic@openwrt.org>
42 + */
43 +
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>
52 +
53 +#include <lantiq_soc.h>
54 +#include <irq.h>
55 +
56 +#include "../machtypes.h"
57 +#include "devices.h"
58 +
59 +static struct ltq_pci_data ltq_pci_data = {
60 +       .clock  = PCI_CLOCK_INT,
61 +       .gpio   = PCI_GNT1 | PCI_REQ1,
62 +       .irq    = {
63 +               [14] = INT_NUM_IM0_IRL0 + 22,
64 +       },
65 +};
66 +
67 +static struct ltq_eth_data ltq_eth_data = {
68 +       .mii_mode = PHY_INTERFACE_MODE_MII,
69 +};
70 +
71 +struct spi_board_info spi_info = {
72 +       .bus_num        = 0,
73 +       .chip_select    = 3,
74 +       .max_speed_hz   = 25000000,
75 +       .modalias       = "mx25l12805d",
76 +};
77 +
78 +struct ltq_spi_platform_data ltq_spi_data = {
79 +       .num_chipselect = 4,
80 +};
81 +
82 +static void __init dgn3500_init(void)
83 +{
84 +       ltq_register_pci(&ltq_pci_data);
85 +       ltq_register_etop(&ltq_eth_data);
86 +       ltq_register_spi(&ltq_spi_data, &spi_info, 1);
87 +}
88 +
89 +MIPS_MACHINE(LANTIQ_MACH_DGN3500B,
90 +            "DGN3500B",
91 +            "Netgear DGN3500B",
92 +             dgn3500_init);