Skip to content

Commit cdfc830

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle: "The most notable new addition inside this pull request is the support for MIPS's latest and greatest core called "inter/proAptiv". The patch series describes this core as follows. "The interAptiv is a power-efficient multi-core microprocessor for use in system-on-chip (SoC) applications. The interAptiv combines a multi-threading pipeline with a coherence manager to deliver improved computational throughput and power efficiency. The interAptiv can contain one to four MIPS32R3 interAptiv cores, system level coherence manager with L2 cache, optional coherent I/O port, and optional floating point unit." The platform specific patches touch all 3 Broadcom families. It adds support for the new Broadcom/Netlogix XLP9xx Soc, building a common BCM63XX SMP kernel for all BCM63XX SoCs regardless of core type/count and full gpio button/led descriptions for BCM47xx. The rest of the series are cleanups and bug fixes that are MIPS generic and consist largely of changes that Imgtec/MIPS had published in their linux-mti-3.10.git stable tree. Random other cleanups and patches preparing code to be merged in 3.15" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (139 commits) mips: select ARCH_MIGHT_HAVE_PC_SERIO mips: delete non-required instances of include <linux/init.h> MIPS: KVM: remove shadow_tlb code MIPS: KVM: use common EHINV aware UNIQUE_ENTRYHI mips/ide: flush dcache also if icache does not snoop dcache MIPS: BCM47XX: fix position of cpu_wait disabling MIPS: BCM63XX: select correct MIPS_L1_CACHE_SHIFT value MIPS: update MIPS_L1_CACHE_SHIFT based on MIPS_L1_CACHE_SHIFT_<N> MIPS: introduce MIPS_L1_CACHE_SHIFT_<N> MIPS: ZBOOT: gather string functions into string.c arch/mips/pci: don't check resource with devm_ioremap_resource arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource bcma: gpio: don't cast u32 to unsigned long ssb: gpio: add own IRQ domain MIPS: BCM47XX: fix sparse warnings in board.c MIPS: BCM47XX: add board detection for Linksys WRT54GS V1 MIPS: BCM47XX: fix detection for some boards MIPS: BCM47XX: Enable buttons support on SSB MIPS: BCM47XX: Convert WNDR4500 to new syntax MIPS: BCM47XX: Use "timer" trigger for status LEDs ...
2 parents 04a24ae + b26a21c commit cdfc830

224 files changed

Lines changed: 6635 additions & 3316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/mips/Kconfig‎

Lines changed: 133 additions & 88 deletions
Large diffs are not rendered by default.

‎arch/mips/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*e
114114
cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL $(undef-all) $(predef-le))
115115

116116
cflags-$(CONFIG_CPU_HAS_SMARTMIPS) += $(call cc-option,-msmartmips)
117-
cflags-$(CONFIG_CPU_MICROMIPS) += $(call cc-option,-mmicromips -mno-jals)
117+
cflags-$(CONFIG_CPU_MICROMIPS) += $(call cc-option,-mmicromips)
118118

119119
cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \
120120
-fno-omit-frame-pointer

‎arch/mips/alchemy/common/power.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
* 675 Mass Ave, Cambridge, MA 02139, USA.
3030
*/
3131

32-
#include <linux/init.h>
3332
#include <linux/pm.h>
3433
#include <linux/sysctl.h>
3534
#include <linux/jiffies.h>

‎arch/mips/ar7/time.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* Setting up the clock on the MIPS boards.
1919
*/
2020

21-
#include <linux/init.h>
2221
#include <linux/time.h>
2322
#include <linux/err.h>
2423
#include <linux/clk.h>

‎arch/mips/ath79/common.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define __ATH79_COMMON_H
1616

1717
#include <linux/types.h>
18-
#include <linux/init.h>
1918

2019
#define ATH79_MEM_SIZE_MIN (2 * 1024 * 1024)
2120
#define ATH79_MEM_SIZE_MAX (128 * 1024 * 1024)

‎arch/mips/bcm47xx/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if BCM47XX
22

33
config BCM47XX_SSB
44
bool "SSB Support for Broadcom BCM47XX"
5+
select SYS_HAS_CPU_BMIPS32_3300
56
select SSB
67
select SSB_DRIVER_MIPS
78
select SSB_DRIVER_EXTIF
@@ -11,6 +12,7 @@ config BCM47XX_SSB
1112
select SSB_PCICORE_HOSTMODE if PCI
1213
select SSB_DRIVER_GPIO
1314
select GPIOLIB
15+
select LEDS_GPIO_REGISTER
1416
default y
1517
help
1618
Add support for old Broadcom BCM47xx boards with Sonics Silicon Backplane support.
@@ -20,13 +22,15 @@ config BCM47XX_SSB
2022
config BCM47XX_BCMA
2123
bool "BCMA Support for Broadcom BCM47XX"
2224
select SYS_HAS_CPU_MIPS32_R2
25+
select CPU_MIPSR2_IRQ_VI
2326
select BCMA
2427
select BCMA_HOST_SOC
2528
select BCMA_DRIVER_MIPS
2629
select BCMA_HOST_PCI if PCI
2730
select BCMA_DRIVER_PCI_HOSTMODE if PCI
2831
select BCMA_DRIVER_GPIO
2932
select GPIOLIB
33+
select LEDS_GPIO_REGISTER
3034
default y
3135
help
3236
Add support for new Broadcom BCM47xx boards with Broadcom specific Advanced Microcontroller Bus.

‎arch/mips/bcm47xx/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
#
55

66
obj-y += irq.o nvram.o prom.o serial.o setup.o time.o sprom.o
7-
obj-y += board.o
8-
obj-$(CONFIG_BCM47XX_SSB) += wgt634u.o
7+
obj-y += board.o buttons.o leds.o
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef LINUX_BCM47XX_PRIVATE_H_
2+
#define LINUX_BCM47XX_PRIVATE_H_
3+
4+
#include <linux/kernel.h>
5+
6+
/* buttons.c */
7+
int __init bcm47xx_buttons_register(void);
8+
9+
/* leds.c */
10+
void __init bcm47xx_leds_register(void);
11+
12+
#endif

‎arch/mips/bcm47xx/board.c‎

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,32 @@ static const
3636
struct bcm47xx_board_type_list1 bcm47xx_board_list_model_name[] __initconst = {
3737
{{BCM47XX_BOARD_DLINK_DIR130, "D-Link DIR-130"}, "DIR-130"},
3838
{{BCM47XX_BOARD_DLINK_DIR330, "D-Link DIR-330"}, "DIR-330"},
39-
{ {0}, 0},
39+
{ {0}, NULL},
4040
};
4141

4242
/* model_no */
4343
static const
4444
struct bcm47xx_board_type_list1 bcm47xx_board_list_model_no[] __initconst = {
4545
{{BCM47XX_BOARD_ASUS_WL700GE, "Asus WL700"}, "WL700"},
46-
{ {0}, 0},
46+
{ {0}, NULL},
4747
};
4848

4949
/* machine_name */
5050
static const
5151
struct bcm47xx_board_type_list1 bcm47xx_board_list_machine_name[] __initconst = {
5252
{{BCM47XX_BOARD_LINKSYS_WRTSL54GS, "Linksys WRTSL54GS"}, "WRTSL54GS"},
53-
{ {0}, 0},
53+
{ {0}, NULL},
5454
};
5555

5656
/* hardware_version */
5757
static const
5858
struct bcm47xx_board_type_list1 bcm47xx_board_list_hardware_version[] __initconst = {
59+
{{BCM47XX_BOARD_ASUS_RTN10U, "Asus RT-N10U"}, "RTN10U"},
60+
{{BCM47XX_BOARD_ASUS_RTN12, "Asus RT-N12"}, "RT-N12"},
61+
{{BCM47XX_BOARD_ASUS_RTN12B1, "Asus RT-N12B1"}, "RTN12B1"},
62+
{{BCM47XX_BOARD_ASUS_RTN12C1, "Asus RT-N12C1"}, "RTN12C1"},
63+
{{BCM47XX_BOARD_ASUS_RTN12D1, "Asus RT-N12D1"}, "RTN12D1"},
64+
{{BCM47XX_BOARD_ASUS_RTN12HP, "Asus RT-N12HP"}, "RTN12HP"},
5965
{{BCM47XX_BOARD_ASUS_RTN16, "Asus RT-N16"}, "RT-N16-"},
6066
{{BCM47XX_BOARD_ASUS_WL320GE, "Asus WL320GE"}, "WL320G-"},
6167
{{BCM47XX_BOARD_ASUS_WL330GE, "Asus WL330GE"}, "WL330GE-"},
@@ -66,7 +72,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_hardware_version[] __initcons
6672
{{BCM47XX_BOARD_ASUS_WL520GC, "Asus WL520GC"}, "WL520GC-"},
6773
{{BCM47XX_BOARD_ASUS_WL520GU, "Asus WL520GU"}, "WL520GU-"},
6874
{{BCM47XX_BOARD_BELKIN_F7D4301, "Belkin F7D4301"}, "F7D4301"},
69-
{ {0}, 0},
75+
{ {0}, NULL},
7076
};
7177

7278
/* productid */
@@ -75,19 +81,13 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_productid[] __initconst = {
7581
{{BCM47XX_BOARD_ASUS_RTAC66U, "Asus RT-AC66U"}, "RT-AC66U"},
7682
{{BCM47XX_BOARD_ASUS_RTN10, "Asus RT-N10"}, "RT-N10"},
7783
{{BCM47XX_BOARD_ASUS_RTN10D, "Asus RT-N10D"}, "RT-N10D"},
78-
{{BCM47XX_BOARD_ASUS_RTN10U, "Asus RT-N10U"}, "RT-N10U"},
79-
{{BCM47XX_BOARD_ASUS_RTN12, "Asus RT-N12"}, "RT-N12"},
80-
{{BCM47XX_BOARD_ASUS_RTN12B1, "Asus RT-N12B1"}, "RT-N12B1"},
81-
{{BCM47XX_BOARD_ASUS_RTN12C1, "Asus RT-N12C1"}, "RT-N12C1"},
82-
{{BCM47XX_BOARD_ASUS_RTN12D1, "Asus RT-N12D1"}, "RT-N12D1"},
83-
{{BCM47XX_BOARD_ASUS_RTN12HP, "Asus RT-N12HP"}, "RT-N12HP"},
8484
{{BCM47XX_BOARD_ASUS_RTN15U, "Asus RT-N15U"}, "RT-N15U"},
8585
{{BCM47XX_BOARD_ASUS_RTN16, "Asus RT-N16"}, "RT-N16"},
8686
{{BCM47XX_BOARD_ASUS_RTN53, "Asus RT-N53"}, "RT-N53"},
8787
{{BCM47XX_BOARD_ASUS_RTN66U, "Asus RT-N66U"}, "RT-N66U"},
8888
{{BCM47XX_BOARD_ASUS_WL300G, "Asus WL300G"}, "WL300g"},
8989
{{BCM47XX_BOARD_ASUS_WLHDD, "Asus WLHDD"}, "WLHDD"},
90-
{ {0}, 0},
90+
{ {0}, NULL},
9191
};
9292

9393
/* ModelId */
@@ -97,7 +97,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_ModelId[] __initconst = {
9797
{{BCM47XX_BOARD_MOTOROLA_WE800G, "Motorola WE800G"}, "WE800G"},
9898
{{BCM47XX_BOARD_MOTOROLA_WR850GP, "Motorola WR850GP"}, "WR850GP"},
9999
{{BCM47XX_BOARD_MOTOROLA_WR850GV2V3, "Motorola WR850G"}, "WR850G"},
100-
{ {0}, 0},
100+
{ {0}, NULL},
101101
};
102102

103103
/* melco_id or buf1falo_id */
@@ -112,7 +112,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_melco_id[] __initconst = {
112112
{{BCM47XX_BOARD_BUFFALO_WZR_G300N, "Buffalo WZR-G300N"}, "31120"},
113113
{{BCM47XX_BOARD_BUFFALO_WZR_RS_G54, "Buffalo WZR-RS-G54"}, "30083"},
114114
{{BCM47XX_BOARD_BUFFALO_WZR_RS_G54HP, "Buffalo WZR-RS-G54HP"}, "30103"},
115-
{ {0}, 0},
115+
{ {0}, NULL},
116116
};
117117

118118
/* boot_hw_model, boot_hw_ver */
@@ -143,7 +143,7 @@ struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = {
143143
{{BCM47XX_BOARD_LINKSYS_WRT54G3GV2, "Linksys WRT54G3GV2-VF"}, "WRT54G3GV2-VF", "1.0"},
144144
{{BCM47XX_BOARD_LINKSYS_WRT610NV1, "Linksys WRT610N V1"}, "WRT610N", "1.0"},
145145
{{BCM47XX_BOARD_LINKSYS_WRT610NV2, "Linksys WRT610N V2"}, "WRT610N", "2.0"},
146-
{ {0}, 0},
146+
{ {0}, NULL},
147147
};
148148

149149
/* board_id */
@@ -165,7 +165,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_board_id[] __initconst = {
165165
{{BCM47XX_BOARD_NETGEAR_WNR3500V2, "Netgear WNR3500 V2"}, "U12H127T00_NETGEAR"},
166166
{{BCM47XX_BOARD_NETGEAR_WNR3500V2VC, "Netgear WNR3500 V2vc"}, "U12H127T70_NETGEAR"},
167167
{{BCM47XX_BOARD_NETGEAR_WNR834BV2, "Netgear WNR834B V2"}, "U12H081T00_NETGEAR"},
168-
{ {0}, 0},
168+
{ {0}, NULL},
169169
};
170170

171171
/* boardtype, boardnum, boardrev */
@@ -174,7 +174,9 @@ struct bcm47xx_board_type_list3 bcm47xx_board_list_board[] __initconst = {
174174
{{BCM47XX_BOARD_HUAWEI_E970, "Huawei E970"}, "0x048e", "0x5347", "0x11"},
175175
{{BCM47XX_BOARD_PHICOMM_M1, "Phicomm M1"}, "0x0590", "80", "0x1104"},
176176
{{BCM47XX_BOARD_ZTE_H218N, "ZTE H218N"}, "0x053d", "1234", "0x1305"},
177-
{ {0}, 0},
177+
{{BCM47XX_BOARD_NETGEAR_WNR3500L, "Netgear WNR3500L"}, "0x04CF", "3500", "02"},
178+
{{BCM47XX_BOARD_LINKSYS_WRT54GSV1, "Linksys WRT54GS V1"}, "0x0101", "42", "0x10"},
179+
{ {0}, NULL},
178180
};
179181

180182
static const

0 commit comments

Comments
 (0)