31 Aug, 2012

4 commits


02 Aug, 2012

2 commits

  • Pull MIPS updates from Ralf Baechle:
    "The lion share of this pull request are fixes for clk-related breakage
    caused by other changes during this merge window. For some platforms
    the fix was as simple as selecting HAVE_CLK, for others like the
    Loongson 2 significant restructuring was required.

    The remainder are changes required to get the Lantiq code to work
    again."

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
    MIPS: Loongson 2: Sort out clock managment.
    MIPS: Loongson 1: more clk support and add select HAVE_CLK
    MIPS: txx9: Fix redefinition of clk_* by adding select HAVE_CLK
    MIPS: BCM63xx: Fix redefinition of clk_* by adding select HAVE_CLK
    MIPS: AR7: Fix redefinition of clk_* by adding select HAVE_CLK
    MIPS: Lantiq: Platform specific CLK fixup
    MIPS: Lantiq: Add device_tree_init function
    MIPS: Lantiq: Fix interface clock and PCI control register offset

    Linus Torvalds
     
  • For unexplainable reasons the Loongson 2 clock API was implemented in a
    module so fixing this involved shifting large amounts of code around.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

01 Aug, 2012

8 commits

  • This fixes a redefinition of clk_*:

    arch/mips/loongson1/common/clock.c:23:13: error: redefinition of 'clk_get'
    include/linux/clk.h:281:27: note: previous definition of 'clk_get' was here
    arch/mips/loongson1/common/clock.c:41:15: error: redefinition of 'clk_get_rate'
    include/linux/clk.h:302:29: note: previous definition of 'clk_get_rate' was here
    make[3]: *** [arch/mips/loongson1/common/clock.o] Error 1

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips@linux-mips.org
    Reviewed-by: John Crispin
    Acked-by: Kelvin Cheung
    Patchwork: https://patchwork.linux-mips.org/patch/4143/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • arch/mips/txx9/generic/setup.c:87:13: error: redefinition of 'clk_get'
    include/linux/clk.h:281:27: note: previous definition of 'clk_get' was here
    arch/mips/txx9/generic/setup.c:97:5: error: redefinition of 'clk_enable'
    include/linux/clk.h:295:19: note: previous definition of 'clk_enable' was here
    arch/mips/txx9/generic/setup.c:103:6: error: redefinition of 'clk_disable'
    include/linux/clk.h:300:20: note: previous definition of 'clk_disable' was here
    arch/mips/txx9/generic/setup.c:108:15: error: redefinition of 'clk_get_rate'
    include/linux/clk.h:302:29: note: previous definition of 'clk_get_rate' was here
    arch/mips/txx9/generic/setup.c:114:6: error: redefinition of 'clk_put'
    include/linux/clk.h:291:20: note: previous definition of 'clk_put' was here
    make[3]: *** [arch/mips/txx9/generic/setup.o] Error 1

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips@linux-mips.org
    Reviewed-by: John Crispin
    Patchwork: https://patchwork.linux-mips.org/patch/4142/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • arch/mips/bcm63xx/clk.c:249:5: error: redefinition of 'clk_enable'
    include/linux/clk.h:295:19: note: previous definition of 'clk_enable' was here
    arch/mips/bcm63xx/clk.c:259:6: error: redefinition of 'clk_disable'
    include/linux/clk.h:300:20: note: previous definition of 'clk_disable' was here
    arch/mips/bcm63xx/clk.c:268:15: error: redefinition of 'clk_get_rate'
    include/linux/clk.h:302:29: note: previous definition of 'clk_get_rate' was here
    arch/mips/bcm63xx/clk.c:275:13: error: redefinition of 'clk_get'
    include/linux/clk.h:281:27: note: previous definition of 'clk_get' was here
    arch/mips/bcm63xx/clk.c:302:6: error: redefinition of 'clk_put'
    include/linux/clk.h:291:20: note: previous definition of 'clk_put' was here
    make[2]: *** [arch/mips/bcm63xx/clk.o] Error 1

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips@linux-mips.org
    Reviewed-by: John Crispin
    Patchwork: https://patchwork.linux-mips.org/patch/4141/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • arch/mips/ar7/clock.c:420:5: error: redefinition of 'clk_enable'
    include/linux/clk.h:295:19: note: previous definition of 'clk_enable' was here
    arch/mips/ar7/clock.c:426:6: error: redefinition of 'clk_disable'
    include/linux/clk.h:300:20: note: previous definition of 'clk_disable' was here
    arch/mips/ar7/clock.c:431:15: error: redefinition of 'clk_get_rate'
    include/linux/clk.h:302:29: note: previous definition of 'clk_get_rate' was here
    arch/mips/ar7/clock.c:437:13: error: redefinition of 'clk_get'
    include/linux/clk.h:281:27: note: previous definition of 'clk_get' was here
    arch/mips/ar7/clock.c:454:6: error: redefinition of 'clk_put'
    include/linux/clk.h:291:20: note: previous definition of 'clk_put' was here
    make[2]: *** [arch/mips/ar7/clock.o] Error 1

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips@linux-mips.org
    Reviewed-by: John Crispin
    Acked-by: Florian Fainelli
    Patchwork: https://patchwork.linux-mips.org/patch/4140/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • As we use CLKDEV_LOOKUP but dont have support for COMMON_CLK yet, we need to
    provide our own version of of_clk_get_from_provider().

    Signed-off-by: John Crispin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/4117/
    Signed-off-by: Ralf Baechle

    John Crispin
     
  • Add a lantiq specific version of device_tree_init. The generic MIPS version
    was removed by.

    commit 594e966bc412d64eec9282d28ce511bdd62fea39
    Author: David Daney
    Date: Thu Jul 5 18:12:38 2012 +0200

    MIPS: Prune some target specific code out of prom.c

    Signed-off-by: John Crispin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/4116/
    Signed-off-by: Ralf Baechle

    John Crispin
     
  • The XRX200 based SoC have a different register offset for the interface
    clock and PCI control registers. This patch detects the SoC and sets the
    register offset at runtime. This make PCI work on the VR9 SoC.

    Signed-off-by: John Crispin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/4113/
    Signed-off-by: Ralf Baechle

    John Crispin
     
  • This patch is preparation for the next patch which removes the zeroing of
    the pg_data_t in core MM. All archs except MIPS already do this.

    Signed-off-by: Minchan Kim
    Cc: Ralf Baechle
    Cc: Tejun Heo

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Minchan Kim
     

31 Jul, 2012

4 commits

  • Merge Andrew's first set of patches:
    "Non-MM patches:

    - lots of misc bits

    - tree-wide have_clk() cleanups

    - quite a lot of printk tweaks. I draw your attention to "printk:
    convert the format for KERN_ to a 2 byte pattern" which
    looks a bit scary. But afaict it's solid.

    - backlight updates

    - lib/ feature work (notably the addition and use of memweight())

    - checkpatch updates

    - rtc updates

    - nilfs updates

    - fatfs updates (partial, still waiting for acks)

    - kdump, proc, fork, IPC, sysctl, taskstats, pps, etc

    - new fault-injection feature work"

    * Merge emailed patches from Andrew Morton : (128 commits)
    drivers/misc/lkdtm.c: fix missing allocation failure check
    lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
    fault-injection: add tool to run command with failslab or fail_page_alloc
    fault-injection: add selftests for cpu and memory hotplug
    powerpc: pSeries reconfig notifier error injection module
    memory: memory notifier error injection module
    PM: PM notifier error injection module
    cpu: rewrite cpu-notifier-error-inject module
    fault-injection: notifier error injection
    c/r: fcntl: add F_GETOWNER_UIDS option
    resource: make sure requested range is included in the root range
    include/linux/aio.h: cpp->C conversions
    fs: cachefiles: add support for large files in filesystem caching
    pps: return PTR_ERR on error in device_create
    taskstats: check nla_reserve() return
    sysctl: suppress kmemleak messages
    ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION
    ipc: compat: use signed size_t types for msgsnd and msgrcv
    ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC
    ipc: add COMPAT_SHMLBA support
    ...

    Linus Torvalds
     
  • Rather than #define the options manually in the architecture code, add
    Kconfig options for them and select them there instead. This also allows
    us to select the compat IPC version parsing automatically for platforms
    using the old compat IPC interface.

    Reported-by: Andrew Morton
    Signed-off-by: Will Deacon
    Cc: Arnd Bergmann
    Cc: Chris Metcalf
    Cc: Catalin Marinas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Will Deacon
     
  • Introduce CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE and use this instead
    of the multitude of #if defined() checks in atomic64_test.c

    Signed-off-by: Catalin Marinas
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Catalin Marinas
     
  • Pull MIPS updates from Ralf Baechle:
    "More hardware support across the field including a bunch of device
    drivers. The highlight however really are further steps towards
    device tree.

    This has been sitting in -next for ages. All MIPS _defconfigs have
    been tested to boot or where I don't have hardware available, to at
    least build fine."

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (77 commits)
    MIPS: Loongson 1B: Add defconfig
    MIPS: Loongson 1B: Add board support
    MIPS: Netlogic: early console fix
    MIPS: Netlogic: Fix indentation of smpboot.S
    MIPS: Netlogic: remove cpu_has_dc_aliases define for XLP
    MIPS: Netlogic: Remove unused pcibios_fixups
    MIPS: Netlogic: Add XLP SoC devices in FDT
    MIPS: Netlogic: Add IRQ mappings for more devices
    MIPS: Netlogic: USB support for XLP
    MIPS: Netlogic: XLP PCIe controller support.
    MIPS: Netlogic: Platform changes for XLR/XLS I2C
    MIPS: Netlogic: Platform NAND/NOR flash support
    MIPS: Netlogic: Platform changes for XLS USB
    MIPS: Netlogic: Remove NETLOGIC_ prefix
    MIPS: Netlogic: SMP wakeup code update
    MIPS: Netlogic: Update comments in smpboot.S
    MIPS: BCM63XX: Add 96328avng reference board
    MIPS: Expose PCIe drivers for MIPS
    MIPS: BCM63XX: Add PCIe Support for BCM6328
    MIPS: BCM63XX: Move the PCI initialization into its own function
    ...

    Linus Torvalds
     

27 Jul, 2012

1 commit

  • Recently, glibc made a change to suppress sign-conversion warnings in
    FD_SET (glibc commit ceb9e56b3d1). This uncovered an issue with the
    kernel's definition of __NFDBITS if applications #include
    after including . A build failure would
    be seen when passing the -Werror=sign-compare and -D_FORTIFY_SOURCE=2
    flags to gcc.

    It was suggested that the kernel should either match the glibc
    definition of __NFDBITS or remove that entirely. The current in-kernel
    uses of __NFDBITS can be replaced with BITS_PER_LONG, and there are no
    uses of the related __FDELT and __FDMASK defines. Given that, we'll
    continue the cleanup that was started with commit 8b3d1cda4f5f
    ("posix_types: Remove fd_set macros") and drop the remaining unused
    macros.

    Additionally, linux/time.h has similar macros defined that expand to
    nothing so we'll remove those at the same time.

    Reported-by: Jeff Law
    Suggested-by: Linus Torvalds
    CC:
    Signed-off-by: Josh Boyer
    [ .. and fix up whitespace as per akpm ]
    Signed-off-by: Linus Torvalds

    Josh Boyer
     

25 Jul, 2012

7 commits

  • …ext/jz4740', 'next/lantiq', 'next/loongson1b' and 'next/netlogic' into mips-for-linux-next

    Ralf Baechle
     
  • Signed-off-by: Kelvin Cheung
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: wuzhangjin@gmail.com
    Cc: zhzhl555@gmail.com
    Cc: Kelvin Cheung
    Patchwork: https://patchwork.linux-mips.org/patch/4135/
    Signed-off-by: Ralf Baechle

    Kelvin Cheung
     
  • Adds basic platform devices for Loongson 1B, including serial port,
    ethernet, USB, RTC and interrupt handler.

    The Loongson 1B UART is compatible with NS16550A, the Loongson 1B GMAC is
    built around a Synopsys IP Core.

    Use normal instead of enhanced descriptors.

    Thanks to Giuseppe for updating the normal descriptor in stmmac driver.
    Thanks to Zhao Zhang for implementing the RTC driver.

    Signed-off-by: Kelvin Cheung
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: wuzhangjin@gmail.com
    Cc: zhzhl555@gmail.com
    Cc: Kelvin Cheung
    Patchwork: https://patchwork.linux-mips.org/patch/4133/
    Patchwork: https://patchwork.linux-mips.org/patch/4134/
    Signed-off-by: Ralf Baechle

    Kelvin Cheung
     
  • Pull PCI changes from Bjorn Helgaas:
    "Host bridge hotplug:
    - Add MMCONFIG support for hot-added host bridges (Jiang Liu)
    Device hotplug:
    - Move fixups from __init to __devinit (Sebastian Andrzej Siewior)
    - Call FINAL fixups for hot-added devices, too (Myron Stowe)
    - Factor out generic code for P2P bridge hot-add (Yinghai Lu)
    - Remove all functions in a slot, not just those with _EJx (Amos
    Kong)
    Dynamic resource management:
    - Track bus number allocation (struct resource tree per domain)
    (Yinghai Lu)
    - Make P2P bridge 1K I/O windows work with resource reassignment
    (Bjorn Helgaas, Yinghai Lu)
    - Disable decoding while updating 64-bit BARs (Bjorn Helgaas)
    Power management:
    - Add PCIe runtime D3cold support (Huang Ying)
    Virtualization:
    - Add VFIO infrastructure (ACS, DMA source ID quirks) (Alex
    Williamson)
    - Add quirks for devices with broken INTx masking (Jan Kiszka)
    Miscellaneous:
    - Fix some PCI Express capability version issues (Myron Stowe)
    - Factor out some arch code with a weak, generic, pcibios_setup()
    (Myron Stowe)"

    * tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (122 commits)
    PCI: hotplug: ensure a consistent return value in error case
    PCI: fix undefined reference to 'pci_fixup_final_inited'
    PCI: build resource code for M68K architecture
    PCI: pciehp: remove unused pciehp_get_max_lnk_width(), pciehp_get_cur_lnk_width()
    PCI: reorder __pci_assign_resource() (no change)
    PCI: fix truncation of resource size to 32 bits
    PCI: acpiphp: merge acpiphp_debug and debug
    PCI: acpiphp: remove unused res_lock
    sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()
    PCI: call final fixups hot-added devices
    PCI: move final fixups from __init to __devinit
    x86/PCI: move final fixups from __init to __devinit
    MIPS/PCI: move final fixups from __init to __devinit
    PCI: support sizing P2P bridge I/O windows with 1K granularity
    PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)
    PCI: disable MEM decoding while updating 64-bit MEM BARs
    PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
    PCI: never discard enable/suspend/resume_early/resume fixups
    PCI: release temporary reference in __nv_msi_ht_cap_quirk()
    PCI: restructure 'pci_do_fixups()'
    ...

    Linus Torvalds
     
  • Pull networking changes from David S Miller:

    1) Remove the ipv4 routing cache. Now lookups go directly into the FIB
    trie and use prebuilt routes cached there.

    No more garbage collection, no more rDOS attacks on the routing
    cache. Instead we now get predictable and consistent performance,
    no matter what the pattern of traffic we service.

    This has been almost 2 years in the making. Special thanks to
    Julian Anastasov, Eric Dumazet, Steffen Klassert, and others who
    have helped along the way.

    I'm sure that with a change of this magnitude there will be some
    kind of fallout, but such things ought the be simple to fix at this
    point. Luckily I'm not European so I'll be around all of August to
    fix things :-)

    The major stages of this work here are each fronted by a forced
    merge commit whose commit message contains a top-level description
    of the motivations and implementation issues.

    2) Pre-demux of established ipv4 TCP sockets, saves a route demux on
    input.

    3) TCP SYN/ACK performance tweaks from Eric Dumazet.

    4) Add namespace support for netfilter L4 conntrack helpers, from Gao
    Feng.

    5) Add config mechanism for Energy Efficient Ethernet to ethtool, from
    Yuval Mintz.

    6) Remove quadratic behavior from /proc/net/unix, from Eric Dumazet.

    7) Support for connection tracker helpers in userspace, from Pablo
    Neira Ayuso.

    8) Allow userspace driven TX load balancing functions in TEAM driver,
    from Jiri Pirko.

    9) Kill off NLMSG_PUT and RTA_PUT macros, more gross stuff with
    embedded gotos.

    10) TCP Small Queues, essentially minimize the amount of TCP data queued
    up in the packet scheduler layer. Whereas the existing BQL (Byte
    Queue Limits) limits the pkt_sched --> netdevice queuing levels,
    this controls the TCP --> pkt_sched queueing levels.

    From Eric Dumazet.

    11) Reduce the number of get_page/put_page ops done on SKB fragments,
    from Alexander Duyck.

    12) Implement protection against blind resets in TCP (RFC 5961), from
    Eric Dumazet.

    13) Support the client side of TCP Fast Open, basically the ability to
    send data in the SYN exchange, from Yuchung Cheng.

    Basically, the sender queues up data with a sendmsg() call using
    MSG_FASTOPEN, then they do the connect() which emits the queued up
    fastopen data.

    14) Avoid all the problems we get into in TCP when timers or PMTU events
    hit a locked socket. The TCP Small Queues changes added a
    tcp_release_cb() that allows us to queue work up to the
    release_sock() caller, and that's what we use here too. From Eric
    Dumazet.

    15) Zero copy on TX support for TUN driver, from Michael S. Tsirkin.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1870 commits)
    genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP
    r8169: revert "add byte queue limit support".
    ipv4: Change rt->rt_iif encoding.
    net: Make skb->skb_iif always track skb->dev
    ipv4: Prepare for change of rt->rt_iif encoding.
    ipv4: Remove all RTCF_DIRECTSRC handliing.
    ipv4: Really ignore ICMP address requests/replies.
    decnet: Don't set RTCF_DIRECTSRC.
    net/ipv4/ip_vti.c: Fix __rcu warnings detected by sparse.
    ipv4: Remove redundant assignment
    rds: set correct msg_namelen
    openvswitch: potential NULL deref in sample()
    tcp: dont drop MTU reduction indications
    bnx2x: Add new 57840 device IDs
    tcp: avoid oops in tcp_metrics and reset tcpm_stamp
    niu: Change niu_rbr_fill() to use unlikely() to check niu_rbr_add_page() return value
    niu: Fix to check for dma mapping errors.
    net: Fix references to out-of-scope variables in put_cmsg_compat()
    net: ethernet: davinci_emac: add pm_runtime support
    net: ethernet: davinci_emac: Remove unnecessary #include
    ...

    Linus Torvalds
     
  • In prom_putchar(), wait for just the TX empty bit to clear in the
    UART LSR.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Cc: Florian Fainelli
    Patchwork: https://patchwork.linux-mips.org/patch/4112/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • [ralf@linux-mips.org: I've folded most segments of this patch into those
    patches in -next that originally were causing the whitespace damage.
    This is just what's left over]

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/4094/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     

24 Jul, 2012

14 commits

  • On XLP, the dcache size depends on the number of enabled threads in
    core. There are no dcache aliases if the pagesize is large enough or
    if enough threads are enabled in the core.

    Remove the #define for cpu_has_dc_aliases and leave it to be computed
    at runtime.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/4099/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • This global is unneeded, and seems to be carried over from ancient
    code.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3752/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Probe and add devices on SoC "simple-bus" on startup. This will
    in turn add devices like I2C controller that are specified in the
    device tree under 'soc'.

    Signed-off-by: Ganesan Ramalingam
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3762/
    Signed-off-by: Ralf Baechle

    Ganesan Ramalingam
     
  • Add IRT to IRQ translation for the MMC and I2C IRQs.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3761/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • The XLP USB controller appears as a device on the internal SoC PCIe
    bus, the block has 2 EHCI blocks and 4 OHCI blocks. Change are to:

    * Add files netlogic/xlp/usb-init.c and asm/netlogic/xlp-hal/usb.h
    to initialize the USB controller and define PCI fixups. The PCI
    fixups are to setup interrupts and DMA mask.
    * Update include/asm/xlp-hal/{iomap.h,pic.h,xlp.h} to add interrupt
    mapping for EHCI/OHCI interrupts.

    Signed-off-by: Ganesan Ramalingam
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3756/
    Signed-off-by: Ralf Baechle

    Ganesan Ramalingam
     
  • Adds support for the XLP on-chip PCIe controller. On XLP, the
    on-chip devices(including the 4 PCIe links) appear in the PCIe
    configuration space of the XLP as PCI devices.

    The changes are to initialize and register the PCIe controller,
    enable hardware byte swap in the PCIe IO and MEM space, and to
    enable PCIe interrupts.

    Signed-off-by: Ganesan Ramalingam
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3760/
    Patchwork: https://patchwork.linux-mips.org/patch/4104/
    Signed-off-by: Ralf Baechle

    Ganesan Ramalingam
     
  • Add platform code for XLR/XLS I2C controller and devices. Add
    devices on the I2C bus on the XLR/XLS developement boards.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3757/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Changes to add support for the boot NOR flash on XLR boards and the
    boot NAND/NOR flash drivers on the XLS boards.

    Signed-off-by: Ganesan Ramalingam
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3758/
    Signed-off-by: Ralf Baechle

    Ganesan Ramalingam
     
  • Add USB initialization code, setup resources and add USB platform
    driver in mips/netlogic/xlr/platform.c.
    Add USB support for XLR/XLS platform in Kconfig.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3759/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Remove NETLOGIC_ prefix from gpio register definitions, this will
    bring it in-line with the other Netlogic headers.

    Having NETLOGIC prefix here is misleading because these are XLR/XLS
    specific register definitions.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3754/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Update for core intialization code. Initialize status register
    after receiving NMI for CPU wakeup. Add the low level L1D flush
    code before enabling threads in core.

    Also convert the ehb to _ehb so that it works under more GCC
    versions.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3755/
    Patchwork: https://patchwork.linux-mips.org/patch/4095/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • No change in logic, comments update and whitespace cleanup.

    * A few comments in the file were in assembler style and the rest
    int C style, convert all of them to C style.
    * Mark workarounds for Ax silicon with a macro XLP_AX_WORKAROUND
    * Whitespace fixes - use tabs consistently
    * rename __config_lsu macro to xlp_config_lsu

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/3749/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • This allows booting to command line. Ethernet is not supported yet,
    but PCIe connected wireless should work.

    Signed-off-by: Jonas Gorski
    Cc: linux-mips@linux-mips.org
    Cc: Maxime Bizon
    Cc: Florian Fainelli
    Cc: Kevin Cernekee
    Patchwork: https://patchwork.linux-mips.org/patch/3958/
    Reviewed-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Jonas Gorski
     
  • Signed-off-by: Jonas Gorski
    Cc: linux-mips@linux-mips.org
    Cc: Maxime Bizon
    Cc: Florian Fainelli
    Cc: Kevin Cernekee
    Patchwork: https://patchwork.linux-mips.org/patch/3957/
    Reviewed-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Jonas Gorski