This adds support for Comtrend 5365. I am sending this again due to the removal
of kernel 2.6.39 support.
1/4: Kernel 3.0 Patch
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Index: target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
(revisión: 30003)
+++ target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
(copia de trabajo)
@@ -15,7 +15,7 @@
@@ -61,6 +61,10 @@ struct board_info {
/* Buttons */
- struct gpio_button buttons[2];
+ struct gpio_button buttons[4];
+
+ /* Additional platform devices */
+ struct platform_device **devs;
Index: target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
(revisión: 0)
+++ target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
(revisión: 0)
@@ -0,0 +1,78 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -1009,6 +1009,67 @@
+ },
+ };
+
++static struct board_info __initdata board_96348A_122 = {
++ .name = "96348A-122",
++ .expected_cpu_id = 0x6348,
++
++ .has_uart0 = 1,
++ .has_enet1 = 1,
++ .has_pci = 1,
++
++ .enet1 = {
++ .force_speed_100 = 1,
++ .force_duplex_full = 1,
++ },
++
++ .has_ohci0 = 1,
++
++ .leds = {
++ {
++ .name = "power",
++ .gpio = 0,
++ .active_low = 1,
++ .default_trigger = "default-on",
++ },
++ {
++ .name = "alarm",
++ .gpio = 2,
++ .active_low = 1,
++ },
++ {
++ .name = "wps",
++ .gpio = 6,
++ .active_low = 1,
++ },
++ },
++ .buttons = {
++ {
++ .desc = "reset",
++ .gpio = 33,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = KEY_RESTART,
++ .threshold = 3,
++ },
++ {
++ .desc = "wifi",
++ .gpio = 34,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = BTN_0,
++ .threshold = 3,
++ },
++ {
++ .desc = "wps",
++ .gpio = 35,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = KEY_WPS_BUTTON,
++ .threshold = 3,
++ },
++ },
++};
++
+ #endif
+
+ /*
+@@ -2068,6 +2129,7 @@
+ &board_V2500V_BB,
+ &board_V2110,
+ &board_ct536_ct5621,
++ &board_96348A_122,
+ #endif
+
+ #ifdef CONFIG_BCM63XX_CPU_6358
Index: target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch (revisión:
30003)
+++ target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch (copia de
trabajo)
@@ -92,7 +92,7 @@
struct gpio_led leds[5];
+
+ /* Buttons */
-+ struct gpio_button buttons[2];
++ struct gpio_button buttons[4];
};
#endif /* ! BOARD_BCM963XX_H_ */
Index: target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
(revisión: 30003)
+++ target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
(copia de trabajo)
@@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2108,7 +2108,7 @@ static void __init nb4_nvram_fixup(void)
+@@ -2170,7 +2170,7 @@ static void __init nb4_nvram_fixup(void)
* bcm4318 WLAN work
*/
#ifdef CONFIG_SSB_PCIHOST
@@ -9,7 +9,7 @@
.revision = 0x02,
.board_rev = 0x17,
.country_code = 0x0,
-@@ -2128,6 +2128,7 @@ static struct ssb_sprom bcm63xx_sprom =
+@@ -2190,6 +2190,7 @@ static struct ssb_sprom bcm63xx_sprom =
.boardflags_lo = 0x2848,
.boardflags_hi = 0x0000,
};
Index: target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
(revisión: 30003)
+++ target/linux/brcm63xx/patches-3.0/200-extended-platform-devices.patch
(copia de trabajo)
@@ -15,7 +15,7 @@
@@ -61,6 +61,10 @@ struct board_info {
/* Buttons */
- struct gpio_button buttons[2];
+ struct gpio_button buttons[4];
+
+ /* Additional platform devices */
+ struct platform_device **devs;
Index: target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
(revisión: 0)
+++ target/linux/brcm63xx/patches-3.0/457-board_96348A-122.patch
(revisión: 0)
@@ -0,0 +1,78 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -1009,6 +1009,67 @@
+ },
+ };
+
++static struct board_info __initdata board_96348A_122 = {
++ .name = "96348A-122",
++ .expected_cpu_id = 0x6348,
++
++ .has_uart0 = 1,
++ .has_enet1 = 1,
++ .has_pci = 1,
++
++ .enet1 = {
++ .force_speed_100 = 1,
++ .force_duplex_full = 1,
++ },
++
++ .has_ohci0 = 1,
++
++ .leds = {
++ {
++ .name = "power",
++ .gpio = 0,
++ .active_low = 1,
++ .default_trigger = "default-on",
++ },
++ {
++ .name = "alarm",
++ .gpio = 2,
++ .active_low = 1,
++ },
++ {
++ .name = "wps",
++ .gpio = 6,
++ .active_low = 1,
++ },
++ },
++ .buttons = {
++ {
++ .desc = "reset",
++ .gpio = 33,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = KEY_RESTART,
++ .threshold = 3,
++ },
++ {
++ .desc = "wifi",
++ .gpio = 34,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = BTN_0,
++ .threshold = 3,
++ },
++ {
++ .desc = "wps",
++ .gpio = 35,
++ .active_low = 1,
++ .type = EV_KEY,
++ .code = KEY_WPS_BUTTON,
++ .threshold = 3,
++ },
++ },
++};
++
+ #endif
+
+ /*
+@@ -2068,6 +2129,7 @@
+ &board_V2500V_BB,
+ &board_V2110,
+ &board_ct536_ct5621,
++ &board_96348A_122,
+ #endif
+
+ #ifdef CONFIG_BCM63XX_CPU_6358
Index: target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch (revisión:
30003)
+++ target/linux/brcm63xx/patches-3.0/100-reset_buttons.patch (copia de
trabajo)
@@ -92,7 +92,7 @@
struct gpio_led leds[5];
+
+ /* Buttons */
-+ struct gpio_button buttons[2];
++ struct gpio_button buttons[4];
};
#endif /* ! BOARD_BCM963XX_H_ */
Index: target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
===================================================================
--- target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
(revisión: 30003)
+++ target/linux/brcm63xx/patches-3.0/977-ssb_export_fallback_sprom.patch
(copia de trabajo)
@@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2108,7 +2108,7 @@ static void __init nb4_nvram_fixup(void)
+@@ -2170,7 +2170,7 @@ static void __init nb4_nvram_fixup(void)
* bcm4318 WLAN work
*/
#ifdef CONFIG_SSB_PCIHOST
@@ -9,7 +9,7 @@
.revision = 0x02,
.board_rev = 0x17,
.country_code = 0x0,
-@@ -2128,6 +2128,7 @@ static struct ssb_sprom bcm63xx_sprom =
+@@ -2190,6 +2190,7 @@ static struct ssb_sprom bcm63xx_sprom =
.boardflags_lo = 0x2848,
.boardflags_hi = 0x0000,
};_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel