Ralf Baechle
7034228792
MIPS: Whitespace cleanup.
...
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2013-02-01 10:00:22 +01:00
Ralf Baechle
241738bd51
Merge branch 'mips-next' of http://dev.phrozen.org/githttp/mips-next into mips-for-linux-next
2012-12-13 19:40:13 +01:00
Ralf Baechle
bdf20507da
MIPS: PMC-Sierra Yosemite: Remove support.
...
Nobody seems to be interested anymore and upstream also never had an
ethernet driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-12-13 18:15:30 +01:00
Florian Fainelli
e59b008e14
MIPS: BCM63XX: fix BCM6345 clocks bits
...
BCM6345 has an intermediate 16-bits wide test control register between the
peripheral identifier register, and its clock control register is only 16-bits
wide contrary to other platforms where it is 32-bits wide. By shifting all
clocks bits by 16-bits to the left we ensure they get written to the proper
clock control register, without adding specific BCM6345 handling in the clock
code.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/4555/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-11-20 08:30:50 +01:00
Jonas Gorski
e7e333cb22
MIPS: BCM63XX: move nvram functions into their own file
...
Refactor nvram related functions into its own unit for easier expansion
and exposure of the values to other drivers.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4516
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-11-09 11:37:18 +01:00
Jonas Gorski
799faa626c
MIPS: BCM63XX: add core reset helper
...
Add a reset helper for resetting the different cores.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4455
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-11-09 11:37:18 +01:00
Jonas Gorski
e7e9937ff5
MIPS: BCM63XX: add softreset register description for BCM6358
...
The softreset register description for BCM6358 was missing, so add it.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4454
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-11-09 11:37:17 +01:00
Ralf Baechle
475032564e
MIPS: Hardwire detection of DSP ASE Rev 2 for systems, as required.
...
Most supported systems currently hardwire cpu_has_dsp to 0, so we also
can disable support for cpu_has_dsp2 resulting in a slightly smaller
kernel.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-10-11 11:10:43 +02:00
Linus Torvalds
de390bba79
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
...
Pull MIPS update from Ralf Baechle:
"This is the MIPS update for 3.7.
A fair chunk of them are platform updates to the Cavium Octeon SOC
(which involves machine generated header files of considerable size),
Atheros ATH79xx, RMI aka Netlogic aka Broadcom XLP, Broadcom BCM63xx
platforms.
Support for the commercial MIPS simulator MIPSsim has been removed as
MIPS Technologies is shifting away from this product and Qemu is
offering various more powerful platforms. The generic MIPS code can
now also probe for no-execute / write-only TLB features implemented
without the full SmartMIPS extension as permitted by the latest MIPS
processor architecture. Lots of small changes to generic code."
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (78 commits)
MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs
MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x
MIPS: BCM63XX: Properly handle mac address octet overflow
MIPS: Kconfig: Avoid build errors by hiding USE_OF from the user.
MIPS: Replace `-' in defconfig filename wth `_' for consistency.
MIPS: Wire kcmp syscall.
MIPS: MIPSsim: Remove the MIPSsim platform.
MIPS: NOTIFY_RESUME is not needed in TIF masks
MIPS: Merge the identical "return from syscall" per-ABI code
MIPS: Unobfuscate _TIF..._MASK
MIPS: Prevent hitting do_notify_resume() with !user_mode(regs).
MIPS: Replace 'kernel_uses_smartmips_rixi' with 'cpu_has_rixi'.
MIPS: Add base architecture support for RI and XI.
MIPS: Optimise TLB handlers for MIPS32/64 R2 cores.
MIPS: uasm: Add INS and EXT instructions.
MIPS: Avoid pipeline stalls on some MIPS32R2 cores.
MIPS: Make VPE count to be one-based.
MIPS: Add new end of interrupt functionality for GIC.
MIPS: Add EIC support for GIC.
MIPS: Code clean-ups for the GIC.
...
2012-10-09 16:08:04 +09:00
Ralf Baechle
382fc33b4a
Merge branch 'master' of git://dev.phrozen.org/mips-next into mips-for-linux-next
2012-10-05 15:56:28 +02:00
David Howells
a1ce39288e
UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers
...
Convert #include "..." to #include <path/...> in kernel system headers.
Signed-off-by: David Howells <dhowells@redhat.com >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Thomas Gleixner <tglx@linutronix.de >
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com >
Acked-by: Dave Jones <davej@redhat.com >
2012-10-02 18:01:25 +01:00
Ralf Baechle
8922c9b4b2
Merge branch 'broadcom' of git://dev.phrozen.org/mips-next into mips-for-linux-next
2012-09-27 18:09:45 +02:00
Kevin Cernekee
22df90f6bb
MIPS: BCM63XX: Create platform_device for USBD
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Reviewed-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4111/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Kevin Cernekee
5fd66c2b2b
MIPS: BCM63XX: Add register and IRQ definitions for USB 2.0 device
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4084/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Kevin Cernekee
a56e853805
MIPS: BCM63XX: Fix USB IRQ definitions for 6328
...
OHCI/EHCI are in the high (second) word. Not currently used by any
driver.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4026/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Kevin Cernekee
18ec0e7079
MIPS: BCM63XX: Add register definitions for USBD dependencies
...
The USB 2.0 device depends on some functionality in other blocks, such
as GPIO and USBH. Add those register definitions here.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4025/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Kevin Cernekee
6f9423454a
MIPS: BCM63XX: Add new IUDMA definitions needed for USBD
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4083/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Kevin Cernekee
932e30b6ea
MIPS: BCM63XX: Move DMA descriptor definition into common header file
...
The "IUDMA" engine used by bcm63xx_enet is also used by other blocks,
such as the USB 2.0 device. Move the definitions into a common file so
that they do not need to be duplicated in each driver.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4082/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-30 20:15:52 +02:00
Jonas Gorski
986936d7c2
MIPS: BCM63XX: remove bogus ENETSW_TXDMA interrupts from BCM6328
...
These were erroneously copied from BCM6368. BCM6328 does not expose the
ENETSW_TXDMA interrupts, and BCM_6328_HIGH_IRQ_BASE + 7 is actually used
for the second UART.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4090/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-24 20:35:56 +02:00
Maxime Bizon
64eaea4a84
MIPS: BCM63XX: add external irq support for BCM6345
...
Add the missing definitions for BCM6345.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/4091/
Signed-off-by: John Crispin <blogic@openwrt.org >
2012-08-24 20:09:00 +02:00
Florian Fainelli
5a6704454a
MIPS: BCM63xx: Fix SPI message control register handling for BCM6338/6348.
...
BCM6338 and BCM6348 have a message control register width of 8 bits, instead
of 16-bits like what the SPI driver assumes right now. Also the SPI message
type shift value of 14 is actually 6 for these SoCs.
This resulted in transmit FIFO corruption because we were writing 16-bits
to an 8-bits wide register, thus spanning on the first byte of the transmit
FIFO, which had already been filed in bcm63xx_spi_fill_txrx_fifo().
Fix this by passing the message control register width and message type
shift through platform data back to the SPI driver so that it can 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
Cc: jonas.gorski@gmail.com
Patchwork: https://patchwork.linux-mips.org/patch/3983/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-08-17 10:57:28 +02:00
Jonas Gorski
19c860d932
MIPS: BCM63XX: Add PCIe Support for BCM6328
...
Add support for the PCIe port found on BCM6328.
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/3956/
Reviewed-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:13 +02:00
Jonas Gorski
e5766aea5b
MIPS: BCM63XX: Add basic BCM6328 support
...
This includes CPU speed, memory size detection and working UART, but
lacking the appropriate drivers, no support for attached flash.
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/3951/
Reviewed-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-24 16:33:12 +02:00
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
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
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
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
Florian Fainelli
38be3c7e77
MIPS: BCM63XX: Fix BCM6368 IPSec clock bit
...
The IPsec clock bit is 18 and not 17.
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/3323/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-07-19 11:23:44 +02:00
Jonas Gorski
442209f31d
MIPS: BCM63XX: Add missing include for bcm63xx_gpio.h
...
bcm63xx_gpio.h uses macros defined in bcm63xx_cpu.h without including it,
leading to the following build failure:
CC [M] drivers/mmc/core/cd-gpio.o
In file included from arch/mips/include/asm/mach-bcm63xx/gpio.h:4:0,
from arch/mips/include/asm/gpio.h:4,
from include/linux/gpio.h:30,
from drivers/mmc/core/cd-gpio.c:12:
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h: In function 'bcm63xx_gpio_count':
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:10:2: error: implicit declaration of function 'bcm63xx_get_cpu_id'
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: error: 'BCM6358_CPU_ID' undeclared (first use in this function)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: note: each undeclared identifier is reported only once for each function it appears in
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:13:7: error: 'BCM6338_CPU_ID' undeclared (first use in this function)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:15:7: error: 'BCM6345_CPU_ID' undeclared (first use in this function)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:17:7: error: 'BCM6368_CPU_ID' undeclared (first use in this function)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:19:7: error: 'BCM6348_CPU_ID' undeclared (first use in this function)
make[7]: *** [drivers/mmc/core/cd-gpio.o] Error 1
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Cc: stable@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr >
Cc: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2012-05-15 17:47:52 +02:00
Linus Torvalds
4964e0664c
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
...
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (119 commits)
MIPS: Delete unused function add_temporary_entry.
MIPS: Set default pci cache line size.
MIPS: Flush huge TLB
MIPS: Octeon: Remove SYS_SUPPORTS_HIGHMEM.
MIPS: Octeon: Add support for OCTEON II PCIe
MIPS: Octeon: Update PCI Latency timer and enable more error reporting.
MIPS: Alchemy: Update cpu-feature-overrides
MIPS: Alchemy: db1200: Improve PB1200 detection.
MIPS: Alchemy: merge Au1000 and Au1300-style IRQ controller code.
MIPS: Alchemy: chain IRQ controllers to MIPS IRQ controller
MIPS: Alchemy: irq: register pm at irq init time
MIPS: Alchemy: Touchscreen support on DB1100
MIPS: Alchemy: Hook up IrDA on DB1000/DB1100
net/irda: convert au1k_ir to platform driver.
MIPS: Alchemy: remove unused board headers
MTD: nand: make au1550nd.c a platform_driver
MIPS: Netlogic: Mark Netlogic chips as SMT capable
MIPS: Netlogic: Add support for XLP 3XX cores
MIPS: Netlogic: Merge some of XLR/XLP wakup code
MIPS: Netlogic: Add default XLP config.
...
Fix up trivial conflicts in arch/mips/kernel/{perf_event_mipsxx.c,
traps.c} and drivers/tty/serial/Makefile
2012-01-14 13:05:21 -08:00
Jonas Gorski
8051667838
MIPS: BCM63XX: bcm963xx_tag.h: make crc fields integers
...
All CRC32 fields are 32 bit integers, so define them as such to prevent
unnecessary casts if we want to use them.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2012-01-09 18:23:30 +00:00
Florian Fainelli
92d9ae2026
MIPS: BCM63xx: Fix GPIO set/get for BCM6345
...
On BCM6345, the register offsets for the set/get GPIO registers is wrong.
Use the same logic as the one present in arch/mips/bcm63xx/irq.c to
define the correct gpio_out_low_reg value when support for BCM6345
is compiled in.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3010/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:04 +00:00
Florian Fainelli
e1c96c8620
MIPS: BCM63xx: Remove BCM6345 hacks to read base boot address
...
Though BCM6345 does not technically have the same MPI register layout
than the other SoCs, reading the chip-select registers is done the same
way, and particularly for chip-select 0, which is the boot flash.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3009/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:04 +00:00
Florian Fainelli
d61fcfe2bb
MIPS: BCM63xx: Fix SDRAM size computation for BCM6345
...
Instead of hardcoding the amount of available RAM, read the number of
effective multiples of 8MB from SDRAM_MBASE_REG.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3008/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:04 +00:00
Maxime Bizon
04712f3ff6
MIPS: BCM63XX: Add support for bcm6368 CPU.
...
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:04 +00:00
Maxime Bizon
6224892c81
MIPS: BCM63XX: Add external irq support for non 6348 CPUs.
...
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2899/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:04 +00:00
Maxime Bizon
015ce7d352
MIPS: BCM63XX: Introduce bcm_readq & bcm_writeq.
...
Needed for upcoming 6368 CPU support.
[ralf@linux-mips.org: Changed function names as per Sergei's comments.]
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2896/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:03 +00:00
Maxime Bizon
37c42a741f
MIPS: BCM63XX: Prepare irq code to handle different external irq hardware implementation.
...
External irq only works for 6348, change code to prepare support of
other CPUs.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2895/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:03 +00:00
Maxime Bizon
f61cced993
MIPS: BCM63XX: Change irq code to prepare for per-cpu peculiarity.
...
No functionnal change is introduced by this patch.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2894/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:03 +00:00
Maxime Bizon
d430b6c5e7
MIPS: BCM63XX: Add more register sets & missing register definitions.
...
Needed for upcoming 6368 CPU support.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2893/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:03 +00:00
Maxime Bizon
ec68c5206a
MIPS: BCM63XX: Cleanup cpu registers.
...
Use preprocessor when possible to avoid duplicated and error-prone
code.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2897/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:03 +00:00
Maxime Bizon
455a503f4c
MIPS: BCM63XX: Hook up plat_ioremap to intercept soc registers remapping.
...
Internal SOC registers can be directly accessed, no need to waste a
TLB entry.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2890/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-12-07 22:03:02 +00:00
Kevin Cernekee
565b60de32
MIPS: Move FIXADDR_TOP into spaces.h
...
Memory maps and addressing quirks are normally defined in <spaces.h>.
There are already three targets that need to override FIXADDR_TOP, and
others exist. This will be a cleaner approach than adding lots of
ifdefs in fixmap.h .
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1573/
Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-07-25 17:26:53 +01:00
Jonas Gorski
b29af676a2
MIPS: BCM63xx: Remove duplicate PERF_IRQSTAT_REG definition
...
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Cc: linux-mips@linux-mips.org
Acked-by: Florian Fainelli <florian@openwrt.org >
Patchwork: https://patchwork.linux-mips.org/patch/2461/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-07-20 23:12:12 +01:00