Skip to content

Commit 892204e

Browse files
committed
Merge tag 'mips_4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips
Pull MIPS updates from James Hogan: "These are the main MIPS changes for 4.15. Fixes: - ralink: Fix MT7620 PCI build issues (4.5) - Disable cmpxchg64() and HAVE_VIRT_CPU_ACCOUNTING_GEN for 32-bit SMP (4.1) - Fix MIPS64 FP save/restore on 32-bit kernels (4.0) - ptrace: Pick up ptrace/seccomp changed syscall numbers (3.19) - ralink: Fix MT7628 pinmux (3.19) - BCM47XX: Fix LED inversion on WRT54GSv1 (3.17) - Fix n32 core dumping as o32 since regset support (3.13) - ralink: Drop obsolete USB_ARCH_HAS_HCD select Build system: - Default to "generic" (multiplatform) system type instead of IP22 - Use generic little endian MIPS32 r2 configuration as default defconfig instead of ip22_defconfig FPU emulation: - Fix exception generation for certain R6 FPU instructions SMP: - Allow __cpu_number_map to be larger than NR_CPUS for sparse CPU id spaces Miscellaneous: - Add iomem resource for kernel bss section for kexec/kdump - Atomics: Nudge writes on bit unlock - DT files: Standardise "ok" -> "okay" Minor cleanups: - Define virt_to_pfn() - Make thread_saved_pc static - Simplify 32-bit sign extension in __read_64bit_c0_split() - DMA: Use vma_pages() helper - FPU emulation: Replace unsigned with unsigned int - MM: Removed unused lastpfn - Alchemy: Make clk_ops const - Lasat: Use setup_timer() helper - ralink: Use BIT() in MT7620 PCI driver Platform support: BMIPS: - Enable HARDIRQS_SW_RESEND Broadcom BCM63XX: - Add clkdev lookup support - Update clk driver, UART driver, DTs to handle named refclk from DTs - Split apart various clocks to more closely match hardware - Add ethernet clocks Cavium Octeon: - Remove usage of cvmx_wait() in favour of __delay() ImgTec Pistachio: - DT: Drop deprecated dwmmc num-slots property Ingenic JZ4780: - Add NFS root to Ci20 defconfig - Add watchdog to Ci20 DT & defconfig, and allow building of watchdog driver with this SoC Generic (multiplatform): - Migrate xilfpga (MIPSfpga) platform to the generic platform Lantiq xway: - Fix ASC0/ASC1 clocks" * tag 'mips_4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips: (46 commits) MIPS: Add iomem resource for kernel bss section. MIPS: cmpxchg64() and HAVE_VIRT_CPU_ACCOUNTING_GEN don't work for 32-bit SMP MIPS: BMIPS: Enable HARDIRQS_SW_RESEND MIPS: pci: Make use of the BIT() macro inside the mt7620 driver MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver MIPS: pci: Remove duplicate define in mt7620 driver MIPS: ralink: Fix typo in mt7628 pinmux function MIPS: ralink: Fix MT7628 pinmux MIPS: Fix odd fp register warnings with MIPS64r2 watchdog: jz4780: Allow selection of jz4740-wdt driver MIPS/ptrace: Update syscall nr on register changes MIPS/ptrace: Pick up ptrace/seccomp changed syscalls MIPS: Fix an n32 core file generation regset support regression MIPS: Fix MIPS64 FP save/restore on 32-bit kernels MIPS: page.h: Define virt_to_pfn() MIPS: Xilfpga: Switch to using generic defconfigs MIPS: generic: Add support for MIPSfpga MIPS: Set defconfig target to a generic system for 32r2el MIPS: Kconfig: Set default MIPS system type as generic MIPS: DTS: Remove num-slots from Pistachio SoC ...
2 parents c9b012e + e0c5f36 commit 892204e

72 files changed

Lines changed: 514 additions & 436 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/serial/brcm,bcm6345-uart.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Required properties:
1111
- clocks: Clock driving the hardware; used to figure out the baud rate
1212
divisor.
1313

14+
15+
Optional properties:
16+
17+
- clock-names: Should be "refclk".
18+
1419
Example:
1520

1621
uart0: serial@14e00520 {
@@ -19,6 +24,7 @@ Example:
1924
interrupt-parent = <&periph_intc>;
2025
interrupts = <2>;
2126
clocks = <&periph_clk>;
27+
clock-names = "refclk";
2228
};
2329

2430
clocks {

‎arch/mips/Kbuild.platforms‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ platforms += sibyte
3434
platforms += sni
3535
platforms += txx9
3636
platforms += vr41xx
37-
platforms += xilfpga
3837

3938
# include the platform specific files
4039
include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))

‎arch/mips/Kconfig‎

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ config MIPS
6565
select HAVE_PERF_EVENTS
6666
select HAVE_REGS_AND_STACK_ACCESS_API
6767
select HAVE_SYSCALL_TRACEPOINTS
68-
select HAVE_VIRT_CPU_ACCOUNTING_GEN
68+
select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
6969
select IRQ_FORCED_THREADING
7070
select MODULES_USE_ELF_RELA if MODULES && 64BIT
7171
select MODULES_USE_ELF_REL if MODULES
@@ -78,7 +78,7 @@ menu "Machine selection"
7878

7979
choice
8080
prompt "System type"
81-
default SGI_IP22
81+
default MIPS_GENERIC
8282

8383
config MIPS_GENERIC
8484
bool "Generic board-agnostic MIPS kernel"
@@ -233,6 +233,7 @@ config BMIPS_GENERIC
233233
select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
234234
select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
235235
select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
236+
select HARDIRQS_SW_RESEND
236237
help
237238
Build a generic DT-based kernel image that boots on select
238239
BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
@@ -276,6 +277,7 @@ config BCM63XX
276277
select GPIOLIB
277278
select HAVE_CLK
278279
select MIPS_L1_CACHE_SHIFT_4
280+
select CLKDEV_LOOKUP
279281
help
280282
Support for BCM63XX based boards
281283

@@ -468,29 +470,6 @@ config MACH_PISTACHIO
468470
help
469471
This enables support for the IMG Pistachio SoC platform.
470472

471-
config MACH_XILFPGA
472-
bool "MIPSfpga Xilinx based boards"
473-
select BOOT_ELF32
474-
select BOOT_RAW
475-
select BUILTIN_DTB
476-
select CEVT_R4K
477-
select COMMON_CLK
478-
select CSRC_R4K
479-
select GPIOLIB
480-
select IRQ_MIPS_CPU
481-
select LIBFDT
482-
select MIPS_CPU_SCACHE
483-
select SYS_HAS_EARLY_PRINTK
484-
select SYS_HAS_CPU_MIPS32_R2
485-
select SYS_SUPPORTS_32BIT_KERNEL
486-
select SYS_SUPPORTS_LITTLE_ENDIAN
487-
select SYS_SUPPORTS_ZBOOT_UART16550
488-
select USE_OF
489-
select USE_GENERIC_EARLY_PRINTK_8250
490-
select XILINX_INTC
491-
help
492-
This enables support for the IMG University Program MIPSfpga platform.
493-
494473
config MIPS_MALTA
495474
bool "MIPS Malta board"
496475
select ARCH_MAY_HAVE_PC_FDC
@@ -916,7 +895,8 @@ config CAVIUM_OCTEON_SOC
916895
select USE_OF
917896
select ARCH_SPARSEMEM_ENABLE
918897
select SYS_SUPPORTS_SMP
919-
select NR_CPUS_DEFAULT_16
898+
select NR_CPUS_DEFAULT_64
899+
select MIPS_NR_CPU_NR_MAP_1024
920900
select BUILTIN_DTB
921901
select MTD_COMPLEX_MAPPINGS
922902
select SYS_SUPPORTS_RELOCATABLE
@@ -1034,7 +1014,6 @@ source "arch/mips/loongson32/Kconfig"
10341014
source "arch/mips/loongson64/Kconfig"
10351015
source "arch/mips/netlogic/Kconfig"
10361016
source "arch/mips/paravirt/Kconfig"
1037-
source "arch/mips/xilfpga/Kconfig"
10381017

10391018
endmenu
10401019

@@ -2726,6 +2705,15 @@ config NR_CPUS
27262705
config MIPS_PERF_SHARED_TC_COUNTERS
27272706
bool
27282707

2708+
config MIPS_NR_CPU_NR_MAP_1024
2709+
bool
2710+
2711+
config MIPS_NR_CPU_NR_MAP
2712+
int
2713+
depends on SMP
2714+
default 1024 if MIPS_NR_CPU_NR_MAP_1024
2715+
default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
2716+
27292717
#
27302718
# Timer Interrupt Frequency Configuration
27312719
#

‎arch/mips/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
archscripts: scripts_basic
1616
$(Q)$(MAKE) $(build)=arch/mips/boot/tools relocs
1717

18-
KBUILD_DEFCONFIG := ip22_defconfig
18+
KBUILD_DEFCONFIG := 32r2el_defconfig
1919

2020
#
2121
# Select the object file format to substitute into the linker script.
@@ -544,3 +544,7 @@ sead3_defconfig:
544544
.PHONY: sead3micro_defconfig
545545
sead3micro_defconfig:
546546
$(Q)$(MAKE) -f $(srctree)/Makefile micro32r2el_defconfig BOARDS=sead-3
547+
548+
.PHONY: xilfpga_defconfig
549+
xilfpga_defconfig:
550+
$(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=xilfpga

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void __init alchemy_set_lpj(void)
143143
preset_lpj /= 2 * HZ;
144144
}
145145

146-
static struct clk_ops alchemy_clkops_cpu = {
146+
static const struct clk_ops alchemy_clkops_cpu = {
147147
.recalc_rate = alchemy_clk_cpu_recalc,
148148
};
149149

@@ -224,7 +224,7 @@ static long alchemy_clk_aux_roundr(struct clk_hw *hw,
224224
return (*parent_rate) * mult;
225225
}
226226

227-
static struct clk_ops alchemy_clkops_aux = {
227+
static const struct clk_ops alchemy_clkops_aux = {
228228
.recalc_rate = alchemy_clk_aux_recalc,
229229
.set_rate = alchemy_clk_aux_setr,
230230
.round_rate = alchemy_clk_aux_roundr,
@@ -576,7 +576,7 @@ static int alchemy_clk_fgv1_detr(struct clk_hw *hw,
576576
}
577577

578578
/* Au1000, Au1100, Au15x0, Au12x0 */
579-
static struct clk_ops alchemy_clkops_fgenv1 = {
579+
static const struct clk_ops alchemy_clkops_fgenv1 = {
580580
.recalc_rate = alchemy_clk_fgv1_recalc,
581581
.determine_rate = alchemy_clk_fgv1_detr,
582582
.set_rate = alchemy_clk_fgv1_setr,
@@ -717,7 +717,7 @@ static int alchemy_clk_fgv2_detr(struct clk_hw *hw,
717717
}
718718

719719
/* Au1300 larger input mux, no separate disable bit, flexible divider */
720-
static struct clk_ops alchemy_clkops_fgenv2 = {
720+
static const struct clk_ops alchemy_clkops_fgenv2 = {
721721
.recalc_rate = alchemy_clk_fgv2_recalc,
722722
.determine_rate = alchemy_clk_fgv2_detr,
723723
.set_rate = alchemy_clk_fgv2_setr,
@@ -925,7 +925,7 @@ static int alchemy_clk_csrc_detr(struct clk_hw *hw,
925925
return alchemy_clk_fgcs_detr(hw, req, scale, 4);
926926
}
927927

928-
static struct clk_ops alchemy_clkops_csrc = {
928+
static const struct clk_ops alchemy_clkops_csrc = {
929929
.recalc_rate = alchemy_clk_csrc_recalc,
930930
.determine_rate = alchemy_clk_csrc_detr,
931931
.set_rate = alchemy_clk_csrc_setr,

‎arch/mips/bcm47xx/leds.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __initconst = {
331331
/* Verified on: WRT54GS V1.0 */
332332
static const struct gpio_led
333333
bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = {
334-
BCM47XX_GPIO_LED(0, "green", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
334+
BCM47XX_GPIO_LED(0, "green", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF),
335335
BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
336336
BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
337337
};

0 commit comments

Comments
 (0)