MIPS: Add header files reference with path prefixThere are some common header files which are referenced locallywith #includenext method, includenext is tricky method and onlyused on mips platfor
MIPS: Add header files reference with path prefixThere are some common header files which are referenced locallywith #includenext method, includenext is tricky method and onlyused on mips platform.This patech removes includenext method, replace it with defailedpathname prefix for header files.This patch passes to compile on all mips platform with defconfig,and is verified on my loongson64 box.Changes:--------v2: - Fix compiling issue on malta platformReported-by: kbuild test robot <[email protected]>Signed-off-by: bibo mao <[email protected]>Signed-off-by: Thomas Bogendoerfer <[email protected]>
show more ...
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 445Based on 1 normalized pattern(s): this program is free software you can distribute it and or modify it under the terms of the
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 445Based on 1 normalized pattern(s): this program is free software you can distribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more detailsextracted by the scancode license scanner the SPDX license identifier GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 24 file(s).Signed-off-by: Thomas Gleixner <[email protected]>Reviewed-by: Armijn Hemel <[email protected]>Reviewed-by: Allison Randal <[email protected]>Cc: [email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>
MIPS: Make (UN)CAC_ADDR() PHYS_OFFSET-agnosticConverting an address between cached & uncached (typically addresses in(c)kseg0 & (c)kseg1 or 2 xkphys regions) should not depend uponPHYS_OFFSET in
MIPS: Make (UN)CAC_ADDR() PHYS_OFFSET-agnosticConverting an address between cached & uncached (typically addresses in(c)kseg0 & (c)kseg1 or 2 xkphys regions) should not depend uponPHYS_OFFSET in any way - we're converting from a virtual address in oneunmapped region to a virtual address in another unmapped region.For some reason our CAC_ADDR() & UNCAC_ADDR() macros make use ofPAGE_OFFSET, which typically includes PHYS_OFFSET. This means thatplatforms with a non-zero PHYS_OFFSET typically have to workaroundmiscalculation by these 2 macros by also defining UNCAC_BASE to a valuethat isn't really correct.It appears that an attempt has previously been made to address this withcommit 3f4579252aa1 ("MIPS: make CAC_ADDR and UNCAC_ADDR account forPHYS_OFFSET") which was later undone by commit ed3ce16c3d2b ("Revert"MIPS: make CAC_ADDR and UNCAC_ADDR account for PHYS_OFFSET"") whichalso introduced the ar7 workaround. That attempt at a fix was roughlyequivalent, but essentially caused the CAC_ADDR() & UNCAC_ADDR() macrosto cancel out PHYS_OFFSET by adding & then subtracting it again. In hisrevert Leonid is correct that using PHYS_OFFSET makes no sense in thecontext of these macros, but appears to have missed its inclusion viaPAGE_OFFSET which means PHYS_OFFSET actually had an effect after therevert rather than before it.Here we fix this by modifying CAC_ADDR() & UNCAC_ADDR() to stop usingPAGE_OFFSET (& thus PHYS_OFFSET), instead using __pa() & __va() alongwith UNCAC_BASE.For UNCAC_ADDR(), __pa() will convert a cached address to a physicaladdress which we can simply use as an offset from UNCAC_BASE to obtainan address in the uncached region.For CAC_ADDR() we can undo the effect of UNCAC_ADDR() by subtractingUNCAC_BASE and using __va() on the result.With this change made, remove definitions of UNCAC_BASE from the ar7 &pic32 platforms which appear to have defined them only to workaroundthis problem.Signed-off-by: Paul Burton <[email protected]>References: 3f4579252aa1 ("MIPS: make CAC_ADDR and UNCAC_ADDR account for PHYS_OFFSET")References: ed3ce16c3d2b ("Revert "MIPS: make CAC_ADDR and UNCAC_ADDR account for PHYS_OFFSET"")Patchwork: https://patchwork.linux-mips.org/patch/20046/Cc: Florian Fainelli <[email protected]>Cc: James Hogan <[email protected]>Cc: Ralf Baechle <[email protected]>Cc: [email protected]Cc: Vladimir Kondratiev <[email protected]>
MIPS: Add support for PIC32MZDA platformThis adds support for the Microchip PIC32 MIPS microcontroller with thespecific variant PIC32MZDA. PIC32MZDA is based on the MIPS m14KEc coreand boots usin
MIPS: Add support for PIC32MZDA platformThis adds support for the Microchip PIC32 MIPS microcontroller with thespecific variant PIC32MZDA. PIC32MZDA is based on the MIPS m14KEc coreand boots using device tree.This includes an early pin setup and early clock setup needed prior todevice tree being initialized. In additon, an interface is provided tosynchronize access to registers shared across several peripherals.Signed-off-by: Joshua Henderson <[email protected]>Cc: [email protected]Cc: [email protected]Patchwork: https://patchwork.linux-mips.org/patch/12097/Signed-off-by: Ralf Baechle <[email protected]>