[package] 6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded ...
[openwrt.git] / target / linux / lantiq / patches-2.6.39 / 601-mach-gigasx76x.patch
1 --- a/arch/mips/lantiq/xway/Kconfig
2 +++ b/arch/mips/lantiq/xway/Kconfig
3 @@ -14,6 +14,10 @@
4 bool "Netgear"
5 default y
6
7 +config LANTIQ_MACH_GIGASX76X
8 + bool "GIGASX76X"
9 + default y
10 +
11 endmenu
12
13 endif
14 --- a/arch/mips/lantiq/xway/Makefile
15 +++ b/arch/mips/lantiq/xway/Makefile
16 @@ -7,4 +7,5 @@
17 obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o
18 obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o
19 obj-$(CONFIG_LANTIQ_MACH_NETGEAR) += mach-netgear.o
20 +obj-$(CONFIG_LANTIQ_MACH_GIGASX76X) += mach-gigasx76x.o
21 obj-y += dev-dwc_otg.o
22 --- /dev/null
23 +++ b/arch/mips/lantiq/xway/mach-gigasx76x.c
24 @@ -0,0 +1,113 @@
25 +/*
26 + * This program is free software; you can redistribute it and/or modify it
27 + * under the terms of the GNU General Public License version 2 as published
28 + * by the Free Software Foundation.
29 + *
30 + * Copyright (C) 2011 Andrej Vlašić
31 + * Copyright (C) 2011 Luka Perkov
32 + *
33 + */
34 +
35 +#include <linux/init.h>
36 +#include <linux/platform_device.h>
37 +#include <linux/leds.h>
38 +#include <linux/gpio.h>
39 +#include <linux/gpio_buttons.h>
40 +#include <linux/mtd/mtd.h>
41 +#include <linux/mtd/partitions.h>
42 +#include <linux/mtd/physmap.h>
43 +#include <linux/input.h>
44 +#include <linux/ath5k_platform.h>
45 +#include <linux/pci.h>
46 +#include <linux/phy.h>
47 +
48 +#include <irq.h>
49 +
50 +#include <lantiq_soc.h>
51 +#include <lantiq_platform.h>
52 +
53 +#include "../machtypes.h"
54 +#include "devices.h"
55 +#include "dev-dwc_otg.h"
56 +#include "dev-leds-gpio.h"
57 +
58 +#ifdef CONFIG_MTD_PARTITIONS
59 +static struct mtd_partition gigasx76x_partitions[] =
60 +{
61 + {
62 + .name = "secondary_env",
63 + .offset = 0xe000,
64 + .size = 0x2000,
65 + },
66 + {
67 + .name = "secondary_boot",
68 + .offset = 0x10000,
69 + .size = 0x10000,
70 + },
71 + {
72 + .name = "uboot",
73 + .offset = 0x20000,
74 + .size = 0x30000,
75 + },
76 + {
77 + .name = "linux",
78 + .offset = 0x50000,
79 + .size = 0x7a0000,
80 + },
81 + {
82 + .name = "board_config",
83 + .offset = 0x7f0000,
84 + .size = 0x10000,
85 + },
86 +};
87 +#endif
88 +
89 +static struct gpio_led
90 +gigasx76x_leds_gpio[] __initdata = {
91 + { .name = "soc:green:usb", .gpio = 50, },
92 + { .name = "soc:green:wlan", .gpio = 51, },
93 + { .name = "soc:green:phone2", .gpio = 52, },
94 + { .name = "soc:green:phone1", .gpio = 53, },
95 + { .name = "soc:green:line", .gpio = 54, },
96 + { .name = "soc:green:online", .gpio = 55, },
97 +};
98 +
99 +
100 +static struct physmap_flash_data gigasx76x_flash_data = {
101 +#ifdef CONFIG_MTD_PARTITIONS
102 + .nr_parts = ARRAY_SIZE(gigasx76x_partitions),
103 + .parts = gigasx76x_partitions,
104 +#endif
105 +};
106 +
107 +static struct ltq_pci_data ltq_pci_data = {
108 + .clock = PCI_CLOCK_INT,
109 + .gpio = PCI_GNT1 | PCI_REQ1,
110 + .irq = {
111 + [14] = INT_NUM_IM0_IRL0 + 22,
112 + },
113 +};
114 +
115 +static struct ltq_eth_data ltq_eth_data = {
116 + .mii_mode = PHY_INTERFACE_MODE_MII,
117 +};
118 +
119 +static void __init
120 +gigasx76x_init(void)
121 +{
122 +#define GIGASX76X_USB 29
123 +
124 + ltq_register_gpio_stp();
125 + ltq_register_nor(&gigasx76x_flash_data);
126 + ltq_register_pci(&ltq_pci_data);
127 + ltq_register_etop(&ltq_eth_data);
128 + xway_register_dwc(GIGASX76X_USB);
129 + ltq_register_tapi();
130 + ltq_register_madwifi_eep();
131 + ltq_add_device_leds_gpio(-1, ARRAY_SIZE(gigasx76x_leds_gpio), gigasx76x_leds_gpio);
132 +}
133 +
134 +MIPS_MACHINE(LANTIQ_MACH_GIGASX76X,
135 + "GIGASX76X",
136 + "GIGASX76X - Gigaset SX761,SX762,SX763",
137 + gigasx76x_init);
138 --- a/arch/mips/lantiq/machtypes.h
139 +++ b/arch/mips/lantiq/machtypes.h
140 @@ -35,6 +35,9 @@
141
142 /* Netgear */
143 LANTIQ_MACH_DGN3500B, /* Netgear DGN3500 */
144 +
145 + /* Gigaset */
146 + LANTIQ_MACH_GIGASX76X, /* Gigaset SX76x */
147 };
148
149 #endif
This page took 0.051143 seconds and 5 git commands to generate.