Skip to content

Commit 763f969

Browse files
committed
Merge tag 'mips_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS updates from James Hogan: "These are the main MIPS changes for 4.18. Rough overview: - MAINTAINERS: Add Paul Burton as MIPS co-maintainer - Misc: Generic compiler intrinsics, Y2038 improvements, Perf+MT fixes - Platform support: Netgear WNR1000 V3, Microsemi Ocelot integrated switch, Ingenic watchdog cleanups More detailed summary: Maintainers: - Add Paul Burton as MIPS co-maintainer, as I soon won't have access to much MIPS hardware, nor enough time to properly maintain MIPS on my own. Miscellaneous: - Use generic GCC library routines from lib/ - Add notrace to generic ucmpdi2 implementation - Rename compiler intrinsic selects to GENERIC_LIB_* - vmlinuz: Use generic ashldi3 - y2038: Convert update/read_persistent_clock() to *_clock64() - sni: Remove read_persistent_clock() - perf: Fix perf with MT counting other threads - Probe for per-TC perf counters in cpu-probe.c - Use correct VPE ID for VPE tracing Minor cleanups: - Avoid unneeded built-in.a in DTS dirs - sc-debugfs: Re-use kstrtobool_from_user - memset.S: Reinstate delay slot indentation - VPE: Fix spelling "uneeded" -> "Unneeded" Platform support: BCM47xx: - Add support for Netgear WNR1000 V3 - firmware: Support small NVRAM partitions - Use __initdata for LEDs platform data Ingenic: - Watchdog driver & platform code improvements: - Disable clock after stopping counter - Use devm_* functions - Drop module remove function - Move platform reset code to restart handler in driver - JZ4740: Convert watchdog instantiation to DT - JZ4780: Fix watchdog DT node - qi_lb60_defconfig: Enable watchdog driver Microsemi: - Ocelot: Add support for integrated switch - pcb123: Connect phys to ports" * tag 'mips_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (30 commits) MAINTAINERS: Add Paul Burton as MIPS co-maintainer MIPS: ptrace: Make FPU context layout comments match reality MIPS: memset.S: Reinstate delay slot indentation MIPS: perf: Fix perf with MT counting other threads MIPS: perf: Use correct VPE ID when setting up VPE tracing MIPS: perf: More robustly probe for the presence of per-tc counters MIPS: Probe for MIPS MT perf counters per TC MIPS: mscc: Connect phys to ports on ocelot_pcb123 MIPS: mscc: Add switch to ocelot MIPS: JZ4740: Drop old platform reset code MIPS: qi_lb60: Enable the jz4740-wdt driver MIPS: JZ4780: dts: Fix watchdog node MIPS: JZ4740: dts: Add bindings for the jz4740-wdt driver watchdog: JZ4740: Drop module remove function watchdog: JZ4740: Register a restart handler watchdog: JZ4740: Use devm_* functions watchdog: JZ4740: Disable clock after stopping counter MIPS: VPE: Fix spelling mistake: "uneeded" -> "unneeded" MIPS: Re-use kstrtobool_from_user() MIPS: Convert update_persistent_clock() to update_persistent_clock64() ...
2 parents ea8781e + 9ed8b56 commit 763f969

60 files changed

Lines changed: 339 additions & 392 deletions

Some content is hidden

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

‎Documentation/devicetree/bindings/watchdog/ingenic,jz4740-wdt.txt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ Ingenic Watchdog Timer (WDT) Controller for JZ4740 & JZ4780
33
Required properties:
44
compatible: "ingenic,jz4740-watchdog" or "ingenic,jz4780-watchdog"
55
reg: Register address and length for watchdog registers
6+
clocks: phandle to the RTC clock
7+
clock-names: should be "rtc"
68

79
Example:
810

911
watchdog: jz4740-watchdog@10002000 {
1012
compatible = "ingenic,jz4740-watchdog";
11-
reg = <0x10002000 0x100>;
13+
reg = <0x10002000 0x10>;
14+
15+
clocks = <&cgu JZ4740_CLK_RTC>;
16+
clock-names = "rtc";
1217
};

‎MAINTAINERS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9417,10 +9417,12 @@ F: drivers/usb/image/microtek.*
94179417

94189418
MIPS
94199419
M: Ralf Baechle <ralf@linux-mips.org>
9420+
M: Paul Burton <paul.burton@mips.com>
94209421
M: James Hogan <jhogan@kernel.org>
94219422
L: linux-mips@linux-mips.org
94229423
W: http://www.linux-mips.org/
94239424
T: git git://git.linux-mips.org/pub/scm/ralf/linux.git
9425+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git
94249426
Q: http://patchwork.linux-mips.org/project/linux-mips/list/
94259427
S: Supported
94269428
F: Documentation/devicetree/bindings/mips/

‎arch/mips/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ config MIPS
2222
select GENERIC_CPU_AUTOPROBE
2323
select GENERIC_IRQ_PROBE
2424
select GENERIC_IRQ_SHOW
25+
select GENERIC_LIB_ASHLDI3
26+
select GENERIC_LIB_ASHRDI3
27+
select GENERIC_LIB_CMPDI2
28+
select GENERIC_LIB_LSHRDI3
29+
select GENERIC_LIB_UCMPDI2
2530
select GENERIC_PCI_IOMAP
2631
select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
2732
select GENERIC_SMP_IDLE_THREAD

‎arch/mips/bcm47xx/board.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_board_id[] __initconst = {
172172
{{BCM47XX_BOARD_NETGEAR_WNDR4000, "Netgear WNDR4000"}, "U12H181T00_NETGEAR"},
173173
{{BCM47XX_BOARD_NETGEAR_WNDR4500V1, "Netgear WNDR4500 V1"}, "U12H189T00_NETGEAR"},
174174
{{BCM47XX_BOARD_NETGEAR_WNDR4500V2, "Netgear WNDR4500 V2"}, "U12H224T00_NETGEAR"},
175+
{{BCM47XX_BOARD_NETGEAR_WNR1000_V3, "Netgear WNR1000 V3"}, "U12H139T00_NETGEAR"},
176+
{{BCM47XX_BOARD_NETGEAR_WNR1000_V3, "Netgear WNR1000 V3"}, "U12H139T50_NETGEAR"},
175177
{{BCM47XX_BOARD_NETGEAR_WNR2000, "Netgear WNR2000"}, "U12H114T00_NETGEAR"},
176178
{{BCM47XX_BOARD_NETGEAR_WNR3500L, "Netgear WNR3500L"}, "U12H136T99_NETGEAR"},
177179
{{BCM47XX_BOARD_NETGEAR_WNR3500U, "Netgear WNR3500U"}, "U12H136T00_NETGEAR"},

‎arch/mips/bcm47xx/buttons.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,12 @@ bcm47xx_buttons_netgear_wndr4500v1[] __initconst = {
411411
BCM47XX_GPIO_KEY(6, KEY_RESTART),
412412
};
413413

414+
static const struct gpio_keys_button
415+
bcm47xx_buttons_netgear_wnr1000_v3[] __initconst = {
416+
BCM47XX_GPIO_KEY(2, KEY_WPS_BUTTON),
417+
BCM47XX_GPIO_KEY(3, KEY_RESTART),
418+
};
419+
414420
static const struct gpio_keys_button
415421
bcm47xx_buttons_netgear_wnr3500lv1[] __initconst = {
416422
BCM47XX_GPIO_KEY(4, KEY_RESTART),
@@ -670,6 +676,9 @@ int __init bcm47xx_buttons_register(void)
670676
case BCM47XX_BOARD_NETGEAR_WNDR4500V1:
671677
err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1);
672678
break;
679+
case BCM47XX_BOARD_NETGEAR_WNR1000_V3:
680+
err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr1000_v3);
681+
break;
673682
case BCM47XX_BOARD_NETGEAR_WNR3500L:
674683
err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr3500lv1);
675684
break;

‎arch/mips/bcm47xx/leds.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ bcm47xx_leds_netgear_wndr4500v1[] __initconst = {
497497
BCM47XX_GPIO_LED(14, "green", "usb2", 1, LEDS_GPIO_DEFSTATE_OFF),
498498
};
499499

500+
static const struct gpio_led
501+
bcm47xx_leds_netgear_wnr1000_v3[] __initconst = {
502+
BCM47XX_GPIO_LED(0, "blue", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
503+
BCM47XX_GPIO_LED(1, "green", "wps", 0, LEDS_GPIO_DEFSTATE_OFF),
504+
};
505+
500506
static const struct gpio_led
501507
bcm47xx_leds_netgear_wnr3500lv1[] __initconst = {
502508
BCM47XX_GPIO_LED(0, "blue", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF),
@@ -532,7 +538,7 @@ bcm47xx_leds_simpletech_simpleshare[] __initconst = {
532538
* Init
533539
**************************************************/
534540

535-
static struct gpio_led_platform_data bcm47xx_leds_pdata;
541+
static struct gpio_led_platform_data bcm47xx_leds_pdata __initdata;
536542

537543
#define bcm47xx_set_pdata(dev_leds) do { \
538544
bcm47xx_leds_pdata.leds = dev_leds; \
@@ -758,6 +764,9 @@ void __init bcm47xx_leds_register(void)
758764
case BCM47XX_BOARD_NETGEAR_WNDR4500V1:
759765
bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr4500v1);
760766
break;
767+
case BCM47XX_BOARD_NETGEAR_WNR1000_V3:
768+
bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr1000_v3);
769+
break;
761770
case BCM47XX_BOARD_NETGEAR_WNR3500L:
762771
bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr3500lv1);
763772
break;

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ $(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c
4646

4747
vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o
4848

49-
extra-y += ashldi3.c bswapsi.c
50-
$(obj)/ashldi3.o $(obj)/bswapsi.o: KBUILD_CFLAGS += -I$(srctree)/arch/mips/lib
51-
$(obj)/ashldi3.c $(obj)/bswapsi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c
52-
$(call cmd,shipped)
49+
extra-y += ashldi3.c
50+
$(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE
51+
$(call if_changed,shipped)
52+
53+
extra-y += bswapsi.c
54+
$(obj)/bswapsi.c: $(obj)/%.c: $(srctree)/arch/mips/lib/%.c FORCE
55+
$(call if_changed,shipped)
5356

5457
targets := $(notdir $(vmlinuzobjs-y))
5558

‎arch/mips/boot/dts/brcm/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ dtb-$(CONFIG_DT_NONE) += \
3434
bcm97425svmb.dtb \
3535
bcm97435svmb.dtb
3636

37-
obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
37+
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22
dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb
33

4-
obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
4+
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))

‎arch/mips/boot/dts/ingenic/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ dtb-$(CONFIG_JZ4740_QI_LB60) += qi_lb60.dtb
33
dtb-$(CONFIG_JZ4770_GCW0) += gcw0.dtb
44
dtb-$(CONFIG_JZ4780_CI20) += ci20.dtb
55

6-
obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
6+
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))

0 commit comments

Comments
 (0)