Jonas Gorski
aaf3fedb56
MIPS: BCM63XX: Add flash type detection
...
On BCM6358 and BCM6368 the attached flash type is exposed through a
bootstrapping register. Use it for auto detecting the flash type on
those and default to parallel flash for earlier SoCs.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr >
Cc: Florian Fainelli <florian@openwrt.org >
Cc: Kevin Cernekee <cernekee@gmail.com >
Patchwork: https://patchwork.linux-mips.org/patch/3954/
Reviewed-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:11 +02:00
Jonas Gorski
4b897d5483
MIPS: BCM63XX: Move flash registration out of board_bcm963xx.c
...
board_bcm963xx.c is already large enough.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr >
Cc: Florian Fainelli <florian@openwrt.org >
Cc: Kevin Cernekee <cernekee@gmail.com >
Patchwork: https://patchwork.linux-mips.org/patch/3952/
Reviewed-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:11 +02:00
Florian Fainelli
b73ab84199
MIPS: BCM63XX: add RNG driver platform_device stub
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: mpm@selenic.com
Cc: herbert@gondor.apana.org.au
Patchwork: https://patchwork.linux-mips.org/patch/3325/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:10 +02:00
Florian Fainelli
8aecfe9462
MIPS: BCM63XX: add RNG peripheral definitions
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: mpm@selenic.com
Cc: herbert@gondor.apana.org.au
Patchwork: https://patchwork.linux-mips.org/patch/3326/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:10 +02:00
Florian Fainelli
0b55561bc6
MIPS: BCM63XX: add support for "ipsec" clock
...
This module is only available on BCM6368 so far and does not require
resetting the block.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: mpm@selenic.com
Cc: herbert@gondor.apana.org.au
Patchwork: https://patchwork.linux-mips.org/patch/3324/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:09 +02:00
David Daney
a03822ea5d
MIPS: OCTEON: Remove some unused files.
...
These FPA related files are not used anywhere in the kernel. Remove
them.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:09 +02:00
Florian Fainelli
94c58b7f23
MIPS: BCM63XX: Fix platform_devices id
...
There is only one watchdog and VoIP DSP platform devices per board, use
-1 as the platform_device id accordingly.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3313/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:09 +02:00
Kelvin Cheung
2fa36399e6
MIPS: Add CPU support for Loongson1B
...
Loongson 1B is a 32-bit SoC designed by Institute of Computing Technology
(ICT) and the Chinese Academy of Sciences (CAS), which implements the
MIPS32 release 2 instruction set.
[ralf@linux-mips.org: But which is not strictly a MIPS32 compliant device
which also is why it identifies itself with the Legacy Vendor ID in the
PrID register. When applying the patch I shoveled some code around to
keep things in alphabetical order and avoid forward declarations.]
Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Cc: To: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: wuzhangjin@gmail.com
Cc: zhzhl555@gmail.com
Cc: Kelvin Cheung <keguang.zhang@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/3976/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:57:04 +01:00
Lluís Batlle i Rossell
f9c9affc57
MIPS: Enable vmlinuz for JZ4740
...
This patch adds support for building a compressed kernel for the JZ4740
architecture.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org >
Cc: Sergei Shtylyov <sshtylyov@mvista.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3563/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:56:21 +01:00
Maarten ter Huurne
ea3952e01c
MIPS: JZ4740: reset: Initialize hibernate wakeup counters.
...
In hibernation mode only the wakeup logic and the RTC are left running,
so this is what users perceive as power down.
If the counters are not initialized, the corresponding pin (typically
connected to the power button) has to be asserted for two seconds
before the device wakes up. Most users expect a shorter wakeup time.
I took the timing values of 100 ms and 60 ms from BouKiCHi's patch for
the Dingoo A320 kernel.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org >
Cc: Sergei Shtylyov <sshtylyov@mvista.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3563/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:56:20 +01:00
Maarten ter Huurne
56635d7993
MIPS: JZ4740: qi_lb60: Look for NAND chip in bank 1.
...
All NanoNotes have their NAND in bank 1.
Specifying the bank is required since multi-bank support was introduced.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3561/
Acked-By: David Woodhouse <David.Woodhouse@intel.com >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:56:20 +01:00
Maarten ter Huurne
1471d41a5b
MTD: NAND: JZ4740: Multi-bank support with autodetection
...
The platform data can now specify which external memory banks to probe
for NAND chips, and in which order. Banks that contain a NAND are used
and the other banks are freed.
Squashed version of development done in jz-2.6.38 branch.
Original patch by Lars-Peter Clausen with some bug fixes from me.
Thanks to Paul Cercueil for the initial autodetection patch.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3560/
Acked-By: David Woodhouse <David.Woodhouse@intel.com >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:56:20 +01:00
Steven J. Hill
71a1c776d5
MIPS: Fixup ordering of micro assembler instructions.
...
A number of new instructions have been added to the micro assembler causing
the list to no longer be in alphabetical order. This patch fixes up the name
ordering.
Signed-off-by: Steven J. Hill <sjhill@mips.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3789/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:56 +01:00
David Daney
bb0757ebb9
MIPS: Unify memcpy.S and memcpy-inatomic.S
...
We can save the 451 lines of code that comprise memcpy-inatomic.S at the
expense of a single instruction in the memcpy prolog. We also use an
additional register (t6), so this may cause increased register pressure in
some places as well. But I think the reduced maintenance burden, of not
having two nearly identical implementations, makes it worth it.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:55 +01:00
David Daney
914f848077
MIPS: Octeon: Implement Octeon specific __copy_user_inatomic
...
The generic version seems to prefetch past the end of memory.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3929/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:55 +01:00
Ralf Baechle
497e5ff03f
MIPS: Malta: Move PIIX4 PCI fixup to where it belongs.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:55 +01:00
Ralf Baechle
f7257d38eb
MIPS: PCI: Add missing __devinit attributions to fixup functions.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:55 +01:00
Thomas Meyer
a6196bab64
MIPS: Alchemy: Use kmemdup rather than duplicating its implementation
...
The semantic patch that makes this change is available
in scripts/coccinelle/api/memdup.cocci.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/3058/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:55 +01:00
Florian Fainelli
a551fafba2
MIPS: loongson: use IS_ENABLED()
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3336/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:54 +01:00
Florian Fainelli
baf69e2753
MIPS: DEC: use IS_ENABLED()
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3333/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:54 +01:00
Florian Fainelli
dbebd6b1c5
MIPS: TX49XX: use IS_ENABLED()
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3335/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:54 +01:00
Florian Fainelli
b33b440737
MIPS: TXX9: use IS_ENABLED() macro
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3334/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:54 +01:00
Florian Fainelli
c1d7f41cfe
MIPS: PNX833x: use IS_ENABLED() macro
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3332/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:53 +01:00
Florian Fainelli
4bd5a5740e
MIPS: Alchemy: use IS_ENABLED() macro
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3331/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:53 +01:00
Steven J. Hill
889a4c7b33
MIPS: SMTC: Support for Multi-threaded FPUs
...
Signed-off-by: Steven J. Hill <sjhill@mips.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3603/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:53 +01:00
Steven J. Hill
2244f12865
MIPS: Remove dead code related to 1004K oprofile support.
...
Signed-off-by: Steven J. Hill <sjhill@mips.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3854/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:55:16 +01:00
David Daney
b59b284101
MIPS: Octeon: Use device tree to register serial ports.
...
Switch to using the device tree to register serial ports.
Add all the ports with compatible = "cavium,octeon-3860-uart". Octeon serial
ports have their own device type, required port flags, and I/O
functions, so using of_serial.c is not indicated.
We need to do this as late_initcall, as the 8250 driver must be
initialized before we add any ports. 8250 initialization is done at
device_initcall time.
The OCTEON_IRQ_UART{0,1,2} symbols are removed as they are now unused
and interfere with irq_domain used by the device tree code.
Signed-off-by: David Daney <david.daney@cavium.com >
Acked-by: Grant Likely <grant.likely@secretlab.ca >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Cc: David Daney <david.daney@cavium.com >
Patchwork: https://patchwork.linux-mips.org/patch/3942/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:53 +01:00
David Daney
368bec0d4a
netdev: octeon_mgmt: Convert to use device tree.
...
The device tree will supply the register bank base addresses, make
register addressing relative to those. PHY connection is now
described by the device tree.
The OCTEON_IRQ_MII{0,1} symbols are also removed as they are now
unused and interfere with the irq_domain used for device tree irq
mapping.
Signed-off-by: David Daney <david.daney@cavium.com >
Acked-by: David S. Miller <davem@davemloft.net >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/3941/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:53 +01:00
David Daney
2fd46f47be
netdev: mdio-octeon.c: Convert to use device tree.
...
Get the MDIO bus controller addresses from the device tree, small
clean up in use of devm_*
Remove, now unused, platform device setup code.
Signed-off-by: David Daney <david.daney@cavium.com >
Acked-by: David S. Miller <davem@davemloft.net >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/3938/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:53 +01:00
David Daney
f353a218de
i2c: Convert i2c-octeon.c to use device tree.
...
There are three parts to this:
1) Remove the definitions of OCTEON_IRQ_TWSI and OCTEON_IRQ_TWSI2.
The interrupts are specified by the device tree and these hard
coded irq numbers block the used of the irq lines by the irq_domain
code.
2) Remove platform device setup code from octeon-platform.c, it is
now unused.
3) Convert i2c-octeon.c to use device tree. Part of this includes
using the devm_* functions instead of the raw counterparts, thus
simplifying error handling. No functionality is changed.
Signed-off-by: David Daney <david.daney@cavium.com >
Acked-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Wolfram Sang <w.sang@pengutronix.de >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/3939/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:53 +01:00
David Daney
a0c16582b5
MIPS: Octeon: Setup irq_domains for interrupts.
...
Create two domains. One for the GPIO lines, and the other for on-chip
sources.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Cc: David Daney <david.daney@cavium.com >
Patchwork: https://patchwork.linux-mips.org/patch/3936/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:53 +01:00
David Daney
7ed1815296
MIPS: Octeon: Initialize and fixup device tree.
...
If a compiled in device tree template is used, trim out unwanted parts
based on legacy platform probing.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Cc: David Daney <david.daney@cavium.com >
Patchwork: https://patchwork.linux-mips.org/patch/3935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
b01da9f130
MIPS: Prune some target specific code out of prom.c
...
This code is not common enough to be in a shared file. It is also not
used by any existing boards, so just remove it.
[ralf@linux-mips.org: Dropped removal of irq_create_of_mapping which was
already removed by abd2363f6a
[irq_domain/mips: Allow irq_domain on MIPS]. Moved device_tree_init() and
dependencies to its sole user, the XLP code.]
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: grant.likely@secretlab.ca
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2946/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
736b1c9c95
MIPS: Octeon: Add device tree source files.
...
The two device tree files octeon_3xxx.dts and octeon_68xx.dts are
trimmed by code in a subsequent patch to reflect the hardware actually
present on the board. To this end several properties that are not
part of the declared bindings are added to aid in trimming off
unwanted nodes. Since the device tree and the code that trims it are
bound into the kernel binary, these 'marker' properties never escape
into the wild, and are purely an implementation detail of the kernel
early boot process. This is done for backwards compatibility with
existing boards (identified by a board type enumeration value by their
bootloaders). New boards will always pass a device tree from the
bootloader, the built-in trees are ignored in this case.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Grant Likely <grant.likely@secretlab.ca >
Cc: Rob Herring <rob.herring@calxeda.com >
Cc: linux-kernel@vger.kernel.org
Cc: David Daney <david.daney@cavium.com >
Patchwork: https://patchwork.linux-mips.org/patch/3937/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
a339aef904
MIPS: OCTEON: Consolidate the edge and level irq_chip structures.
...
We can consolidate octeon_irq_chip_ciu_edge and octeon_irq_chip_ciu as
they only differ in the .irq_ack element, and that is unused by the
level handler. This gets rid of a bunch of duplicate definitions.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3931/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
f5e0828421
MIPS: OCTEON: Remove unneeded OCTEON_IRQ_* defines.
...
The follow-on patch to add irq_domain support will be the supported
method for using these irq lines, so get these defines out of the way
in preperation for that.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3930/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
0b28b823ac
MIPS: Octeon: Remove use of OCTEON_IRQ_RST.
...
This symbol will be removed, so don't use it as part of the definition of
OCTEON_IRQ_LAST.
Set OCTEON_IRQ_LAST to 127 so there is space for all the automatically
allocated (via irq_domain) irqs.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3946/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:52 +01:00
David Daney
6d1ab4c22d
MIPS: Octeon: Add irq handlers for GPIO interrupts.
...
This is needed for follow-on on patches for Octeon to use the Device
Tree to configure GPIO interrupts.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3932/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:51 +01:00
David Daney
05b8c8c128
MIPS: OCTEON: Remove some unused files.
...
These FPA related files are not used anywhere in the kernel. Remove
them.
Signed-off-by: David Daney <david.daney@cavium.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:51 +01:00
Florian Fainelli
76ca4e1484
MIPS: BCM63xx: Make board setup code register the spi platform device
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3317/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:34 +01:00
Florian Fainelli
39ca476e34
MIPS: BCM63xx: Add stub to register the SPI platform driver
...
This patch adds the necessary stub to register the SPI platform driver.
Since the registers are shuffled between the 4 BCM63xx CPUs supported by
this SPI driver we also need to generate the internal register layout and
export this layout for the driver to use it properly.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3321/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:33 +01:00
Florian Fainelli
0f6db0d072
MIPS: BCM63xx: Define internal registers offsets of the SPI controller
...
BCM6338, BCM6348, BCM6358 and BCM6368 basically use the same SPI controller
though the internal registers are shuffled, which still allows a common
driver to drive that IP block.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3318/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:33 +01:00
Florian Fainelli
15514e7838
MIPS: BCM63xx: Remove SPI2 register
...
This register was introduced with the support of the BCM6368 CPU in the idea
that its internal layout was different from the other CPUs SPI controller.
The controller is actually the same as the one present on BCM6358 so we can
remove this register and use the usual SPI register instead.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3316/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:33 +01:00
Florian Fainelli
7546d71a9c
MIPS: BCM63xx: Define SPI register sizes.
...
There are two distinct sizes for the SPI register depending on the SoC
generation (6338 & 6348 vs 6358 & 6368).
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3314/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:33 +01:00
Florian Fainelli
19372b2478
MIPS: BCM63xx: Add BCM6368 SPI clock mask
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3319/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:32 +01:00
Florian Fainelli
9e368e49da
MIPS: BCM63xx: Define BCM6358 SPI base address
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3315/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:32 +01:00
Florian Fainelli
0aeee715b0
MIPS: BCM63xx: Add IRQ_SPI and CPU specific SPI IRQ values
...
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3320/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:32 +01:00
Florian Fainelli
d9831a41e3
MIPS: BCM63XX: Be consistent in clock bits enable naming
...
Remove the _CLK suffix from the BCM6368 clock bits definitions to be
consistent with what is already present.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3312/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:54:32 +01:00
Manuel Lauss
6c2be5cf1d
MIPS: Alchemy: handle db1200 cpld ints as they come in
...
Remove the loop in the cascade handler and instead unconditionally
handle just the first set interrupt coming from the CPLD.
This gets rid of a lot of spurious interrupts being triggered for
the SMSC91111 ethernet chip especially under high(er) IDE load:
"eth0: spurious interrupt (mask = 0xb3)"
Verified on DB1200 and DB1300.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3288/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:53:38 +01:00
Manuel Lauss
278bf05cf6
MIPS: Alchemy: devboards: kill prom.c
...
move contents to already existing platform.c file.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3287/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-23 13:53:38 +01:00