06 Oct, 2016

1 commit

  • Use appended DTB when available.

    Signed-off-by: Jaedon Shin
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/14337/
    Signed-off-by: Ralf Baechle

    Jaedon Shin
     

04 Oct, 2016

6 commits

  • This adds a device tree example for SFR NeufBox 6.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13844/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • BCM6362 is a BMIPS4350 SoC which needs the same fixup as BCM6368 in order to
    enable SMP support.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13845/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • This adds a device tree example for Netgear CVG834G.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13843/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • BCM3368 has a shared TLB which conflicts with current SMP support, so it must
    be disabled for now.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13840/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • This adds a device tree example for Comtrend VR-3032u, which
    also serves as a real example for brcm,bcm6328-leds.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13842/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • The prefix bcm9* should only be used for reference and evaluation boards from
    Broadcom.
    Also adds missing console output to bootargs.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: john@phrozen.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13841/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     

02 Aug, 2016

1 commit

  • Instead of rewriting the arguments to match the UHI spec, store the
    address of a appended or UHI supplied dtb in fw_supplied_dtb.

    That way the original bootloader arugments are kept intact while still
    making the use of an appended dtb invisible for mach code.

    Mach code can still find out if it is an appended dtb by comparing
    fw_arg1 with fw_supplied_dtb.

    Signed-off-by: Jonas Gorski
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: John Crispin
    Cc: Paul Burton
    Cc: James Hogan
    Cc: Alban Bedel
    Cc: Daniel Gimpelevich
    Cc: Antony Pavlov
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/13699/
    Signed-off-by: Ralf Baechle

    Jonas Gorski
     

13 May, 2016

4 commits

  • This SoC is very similar to BCM63168 and Broadcom usually refers to them as
    BCM63268.
    Add BCM63268 and missing BCM63168 to device tree documentation.

    Signed-off-by: Álvaro Fernández Rojas
    Acked-by: Rob Herring
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13042/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • This adds a device tree example for SFR Neufbox4 (Sercomm version), which
    also serves as a real example for brcm,bcm6358-leds.

    Signed-off-by: Álvaro Fernández Rojas
    Acked-by: Rob Herring
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13041/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • BCM6358 has a shared TLB which conflicts with current SMP support, so it must
    be disabled for now.
    BCM6358 uses >= 0xfffe0000 addresses for internal registers, which need to be
    remapped (by using a simplified version of BRCM63xx ioremap.h).
    However, 0xfff80000 is a better address, since it also covers BCM3368, leaving
    the possibility to add it in the future.

    Signed-off-by: Álvaro Fernández Rojas
    Cc: f.fainelli@gmail.com
    Cc: jogo@openwrt.org
    Cc: cernekee@gmail.com
    Cc: robh@kernel.org
    Cc: simon@fire.lp0.eu
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/13040/
    Signed-off-by: Ralf Baechle

    Álvaro Fernández Rojas
     
  • Port the stblinux-3.3 code to perform a bunch of CPU-specific initialization,
    make it compatible with run-time detection of the CPU, and unroll the
    brcmstb-specific macros: BDEV_RB(), BDEV_UNSET.

    The "pref 30" disabling is done as a quirk. This is a preliminary change to
    allow the use of the "rotr" instruction gated by cpu_has_rixi.

    Signed-off-by: Florian Fainelli
    Cc: john@phrozen.org
    Cc: cernekee@gmail.com
    Cc: jon.fraser@broadcom.com
    Cc: pgynther@google.com
    Cc: paul.burton@imgtec.com
    Cc: ddaney.cavm@gmail.com
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/12504/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

08 Feb, 2016

1 commit

  • Add the BCM6345 interrupt controller based on the SMP-capable BCM7038
    and the BCM3380 but with packed interrupt registers.

    Add the BCM6345 interrupt controller to a list with the existing BCM7038
    so that interrupts on CPU1 are not ignored.

    Update the maintainers file list for BMIPS to include this driver.

    Signed-off-by: Simon Arlott
    Cc: Mark Rutland
    Cc: devicetree@vger.kernel.org
    Cc: Ian Campbell
    Cc: Florian Fainelli
    Cc: Jason Cooper
    Cc: Pawel Moll
    Cc: linux-mips@linux-mips.org
    Cc: Marc Zyngier
    Cc: Kevin Cernekee
    Cc: Ralf Baechle
    Cc: Jonas Gorski
    Cc: Kumar Gala
    Cc: Rob Herring
    Link: http://lkml.kernel.org/r/5651D176.6030908@simon.arlott.org.uk
    Signed-off-by: Thomas Gleixner

    Simon Arlott
     

04 Jan, 2016

1 commit

  • The BCM63168 requires the same CPU1 fix as BCM6368.

    Signed-off-by: Simon Arlott
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: linux-mips@linux-mips.org
    Cc: Linux Kernel Mailing List
    Patchwork: https://patchwork.linux-mips.org/patch/11487/
    Signed-off-by: Ralf Baechle

    Simon Arlott
     

11 Nov, 2015

1 commit

  • Seval of-enabled machines (bmips, lantiq, xlp, pistachio, ralink) copied
    the arguments from dtb to arcs_command_line to prevent the kernel from
    overwriting them.

    Since there is now an option to keep the dtb arguments, default to the
    new option remove the "backup" to arcs_command_line in case of USE_OF is
    enabled, except for those platforms that still take the bootloader
    arguments or do not use any at all.

    Signed-off-by: Jonas Gorski
    Cc: linux-mips@linux-mips.org
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Zubair Lutfullah Kakakhel
    Cc: James Hogan
    Cc: John Crispin
    Cc: Ganesan Ramalingam
    Cc: Jayachandran C
    Cc: Andrew Bresticker
    Cc: James Hartley
    Patchwork: https://patchwork.linux-mips.org/patch/11285/
    Signed-off-by: Ralf Baechle

    Jonas Gorski
     

01 Aug, 2015

1 commit

  • The IRQCHIP_DECLARE macro migrated to 'include/linux/irqchip.h'.

    See commit 91e20b5040c67c51aad88cf87db4305c5bd7f79d
    ("irqchip: Move IRQCHIP_DECLARE macro to include/linux/irqchip.h").

    This patch removes inclusions of private header 'drivers/irqchip/irqchip.h'and
    replaces them with the inclusion of 'include/linux/irqchip.h'.

    Signed-off-by: Joel Porquet
    Cc: vgupta@synopsys.com
    Cc: monstr@monstr.eu
    Cc: ralf@linux-mips.org
    Cc: jason@lakedaemon.net
    Link: http://lkml.kernel.org/r/3357968.0IznKtY3Q9@joel-zenbook
    Signed-off-by: Thomas Gleixner

    Joel Porquet
     

22 Jun, 2015

2 commits

  • Detect and use passed dtb address using the UHI interface. This allows for
    booting with a vmlinux.bin appended dtb instead of using a built-in one.

    Signed-off-by: Jonas Gorski
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: John Crispin
    Cc: Kevin Cernekee
    Cc: Florian Fainelli
    Cc: Aaro Koskinen
    Cc: Markos Chandras
    Cc: Andrew Bresticker
    Cc: Daniel Schwierzeck
    Cc: Paul Burton
    Cc: James Hartley
    Patchwork: https://patchwork.linux-mips.org/patch/9742/
    Signed-off-by: Ralf Baechle

    Jonas Gorski
     
  • Add a DTS file and Kconfig entry for the BCM97435SVMB evaluation board
    using bcm7435.dtsi as an example.

    The current code needs some tweaking to allow us to use the
    dual-threaded dual BMIPS5200 CPUs, so for now we limit ourselves to
    allowing just a single CPU to be booted.

    Signed-off-by: Florian Fainelli
    Cc: linux-mips@linux-mips.org
    Cc: blogic@openwrt.org
    Cc: cernekee@chromium.org
    Cc: Steven.Hill@imgtec.com
    Patchwork: https://patchwork.linux-mips.org/patch/9972/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

01 Apr, 2015

7 commits

  • Since we are always sourcing arch/mips/bmips/Kconfig and there is no
    dependency on BMIPS_GENERIC, we will offer building BMIPS-related DTBs
    while this is not relevant for the other MIPS platforms.

    Signed-off-by: Florian Fainelli
    Cc: linux-mips@linux-mips.org
    Cc: cernekee@gmail.com
    Cc: jaedon.shin@gmail.com
    Patchwork: https://patchwork.linux-mips.org/patch/9603/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     
  • Most of the supported chips use legacy (non-DT) bootloaders, so they will
    need to select an appropriate builtin DTB at compile time until the
    bootloader is updated. Provide suitable DTS files, and a means to compile
    one of them into the kernel image.

    Signed-off-by: Kevin Cernekee
    Signed-off-by: Jaedon Shin
    Cc: f.fainelli@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: arnd@arndb.de
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8858/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee
     
  • BCM3384/BCM63xx can use the common drivers/irqchip/irq-bcm7120-l2.c for
    this purpose; BCM7xxx will use drivers/irqchip/irq-bcm7038-l1.c. We no
    longer need this code under arch/mips.

    [ralf@linux-mips.org: Fix conflicts.]

    Signed-off-by: Kevin Cernekee
    Cc: f.fainelli@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: arnd@arndb.de
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8853/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee
     
  • A couple of chips require special handling in order to make SMP secondary
    boot and/or exception vectors work correctly. Take care of these in
    setup.c.

    Signed-off-by: Kevin Cernekee
    Cc: f.fainelli@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: arnd@arndb.de
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8852/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee
     
  • There is no "bcm3384" bus so let's just remove it to avoid confusion.

    Signed-off-by: Kevin Cernekee
    Cc: f.fainelli@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: arnd@arndb.de
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8851/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee
     
  • This is a more standardized way of handling DMA remapping, and it is
    suitable for the memory map found on BCM3384.

    Signed-off-by: Kevin Cernekee
    Cc: f.fainelli@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: arnd@arndb.de
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8850/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee
     
  • This platform is configured primarily through device tree, and we can
    reuse the same code to support a bunch of other chips. Change the name
    to reflect this.

    [ralf@linux-mips.org: Fix conflicts with other patches.]

    Signed-off-by: Kevin Cernekee
    Cc: f.fainelli@gmail.com
    Cc: jaedon.shin@gmail.com
    Cc: abrestic@chromium.org
    Cc: tglx@linutronix.de
    Cc: jason@lakedaemon.net
    Cc: jogo@openwrt.org
    Cc: computersforpeace@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8838/
    Signed-off-by: Ralf Baechle

    Kevin Cernekee