Ralf Baechle
4558e09469
MIPS: SEAD3: Convert LED driver to module_platform_driver.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:05 +02:00
Ralf Baechle
01f7ab3432
MIPS: SEAD3: Collect LED platform device registration in a single file.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
Cc: Markos Chandras <markos.chandras@imgtec.com >
Cc: linux-mips@linux-mips.org
Cc: Bryan Wu <cooloney@gmail.com >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: linux-leds@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8203/
2015-04-01 17:22:05 +02:00
Florian Fainelli
8a5f1efbb1
MIPS: BMIPS: restrict DTB selection to BMIPS_GENERIC
...
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 <f.fainelli@gmail.com >
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 <ralf@linux-mips.org >
2015-04-01 17:22:04 +02:00
Ralf Baechle
554b7f56b9
MIPS: BMIPS: Flush the readahead cache after DMA.
...
BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from
the L1/L2. During a DMA operation, accesses adjacent to a DMA buffer
may cause parts of the DMA buffer to be prefetched into the RAC. To
avoid possible coherency problems, flush the RAC upon DMA completion.
Derived from Kevin Cernekee's https://patchwork.linux-mips.org/patch/9602/ .
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:04 +02:00
Ralf Baechle
0acbfc66d0
MIPS: DMA: Implement platform hook to perform post-DMA cache flushes.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:01 +02:00
Ralf Baechle
2530738013
MIPS: ath25: Remove unused DMA helper functions.
...
These got merged with the ath25 support after 4e7f72660c (MIPS: Remove
unnecessary platform dma helper functions) had already removed them for
all other platforms.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:01 +02:00
Michael Opdenacker
eec99f2079
MIPS: Loongson-3: remove deprecated IRQF_DISABLED
...
This removes the use of the IRQF_DISABLED flag
from arch/mips/loongson/loongson-3/hpet.c
It's a NOOP since 2.6.35.
Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com >
Cc: chenhc@lemote.com
Cc: taohl@lemote.com
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9609/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:00 +02:00
Rafał Miłecki
138173d4e8
MIPS: BCM47xx: Move NVRAM header to the include/linux/.
...
There are two reasons for having this header in the common place:
1) Simplifying drivers that read NVRAM entries. We will be able to
safely call bcm47xx_nvram_* functions without #ifdef-s.
2) Getting NVRAM driver out of MIPS arch code. This is needed to support
BCM5301X arch which also requires this NVRAM driver. Patch for that
will follow once we get is reviewed.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Hauke Mehrtens <hauke@hauke-m.de >
Cc: linux-mips@linux-mips.org
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Paul Walmsley <paul@pwsan.com >
Cc: linux-soc@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8619/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:22:00 +02:00
David Daney
5ae03b1220
MIPS: Expand __swp_offset() to carry 40 significant bits for 64-bit kernel.
...
With CONFIG_MIGRATION, the PFN of the migrating pages is stored in
__swp_offset(), so we must have enough bits to store the largest
possible PFN. OCTEON NUMA systems have 41 bits of physical address
space, so with 4K pages (12-bits), we need at least 29 bits to store
the PFN.
The current width of 24-bits is too narrow, so expand it all the way
out to 40-bits. This leaves the low order 16 bits as zero which does
not interfere with any of the PTE bits.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9315/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:59 +02:00
Rafał Miłecki
80aaaa8b93
MIPS: BCM47XX: Use strnchr to avoid reading out of the buffer
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: Hauke Mehrtens <hauke@hauke-m.de >
Cc: Paul Walmsley <paul@pwsan.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8662/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:59 +02:00
Rafał Miłecki
23d2bc42ac
MIPS: BCM47XX: Use helpers for reading NVRAM content
...
Also drop some unneeded memset-s.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: Hauke Mehrtens <hauke@hauke-m.de >
Cc: Paul Walmsley <paul@pwsan.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8661/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:58 +02:00
Aaro Koskinen
aa816c1b39
MIPS: mark prom_free_prom_memory() everywhere with __init
...
On OCTEON the function is non-trivial and we can potentially even save
some memory.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi >
Acked-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9338/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:58 +02:00
Andrew Bresticker
f45e388ff0
MIPS: Provide fallback reboot/poweroff/halt implementations
...
If a machine-specific hook is not implemented for restart, poweroff,
or halt, fall back to halting secondary CPUs, disabling interrupts,
and spinning. In the case of restart, attempt to restart the system
via do_kernel_restart() (which will call any registered restart
handlers) before halting.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Maciej W. Rozycki <macro@linux-mips.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9600/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:58 +02:00
Andrew Bresticker
ea925a72a2
MIPS: smp: Make stop_this_cpu() actually stop the CPU
...
Since cpu_wait() enables interrupts upon return, CPUs which have
entered stop_this_cpu() may still end up handling interrupts.
This can lead to the softlockup detector firing on a panic or
restart/poweroff/halt. Just disable interrupts and spin to ensure
nothing else runs on the CPU once it has entered stop_this_cpu().
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Maciej W. Rozycki <macro@linux-mips.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9601/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:58 +02:00
Helmut Schaa
c1bed31f9c
MIPS: ath79: Increase max memory limit to 256MByte
...
At least QCA955x can handle up to 256MBytes.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com >
Cc: linux-mips@linux-mips.org
Cc: Gabor Juhos <juhosg@openwrt.org >
Cc: Helmut Schaa <helmut.schaa@googlemail.com >
Patchwork: https://patchwork.linux-mips.org/patch/8738/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:57 +02:00
David Daney
2707cd293c
MIPS: Add FPU emulator counter for emulated delay slots.
...
Delay slot emulation in the FPU emulator is the only kernel user of an
executable stack, it is also very slow. Add a counter so we can see
how many of these emulations are done.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8634/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:57 +02:00
Joshua Kinard
7d168923a3
MIPS: Update arch/mips/include/asm/sgi/sgi.h
...
Update arch/mips/include/asm/sgi/sgi.h with some updated information on SGI
systems.
Signed-off-by: Joshua Kinard <kumba@gentoo.org >
Cc: Linux MIPS List <linux-mips@linux-mips.org >
Patchwork: https://patchwork.linux-mips.org/patch/8666/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:56 +02:00
Wolfram Sang
02e47ca9bc
MIPS: pci: Drop owner assignment from platform_drivers
...
This platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
Cc: linux-kernel@vger.kernel.org
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8824/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:55 +02:00
Wolfram Sang
1e294287bb
MIPS: lantiq: xway: drop owner assignment from platform_drivers
...
This platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8823/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:54 +02:00
Ganesan Ramalingam
94e37fc22a
MIPS: Netlogic: Add built-in dts for XLP5xx boards
...
Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com >
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8896/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:54 +02:00
Subhendu Sekhar Behera
065d7029a8
MIPS: Netlogic: i2c IRQ mappings for XLP9XX
...
The new I2C block in XLP9XX has 4 interrupts, add the mapping for
these in nlm_hal.c
Signed-off-by: Subhendu Sekhar Behera <sbehera@broadcom.com >
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8897/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:53 +02:00
Ganesan Ramalingam
c982232a3c
MIPS: Netlogic: Add irq mapping and setup for XHCI port 3
...
Add support for third XHCI port in XLPII processors.
Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com >
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8895/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:53 +02:00
Jayachandran C
94e2b96ece
MIPS: Netlogic: Do not enable SUE for core
...
Enabling the SUE bit for core can can result in rare cache errors
which are difficult to track down, so do not enable it. This can
cause a minor performance loss in some tests.
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8894/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:53 +02:00
Jayachandran C
5084e93dfe
MIPS: Netlogic: Handle XLP hardware errata
...
Core configuration register IFU_BRUB_RESERVE has to be setup to handle
a silicon errata which can result in a CPU hang.
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8902/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:52 +02:00
Jayachandran C
b3b73ae62c
MIPS: Netlogic: Update function to read DRAM BARs
...
Change name of xlp_get_dram_map to nlm_get_dram_map to be consistent
with the rest of the functions in the file. Pass the the size of the
array 'dram_map' to the function, and ensure that it does not write
past the end of the array.
Signed-off-by: Jayachandran C <jchandra@broadcom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-04-01 17:21:52 +02:00