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
Jonas Gorski
7da34c1dac
MIPS: bcm63xx: Fix header_crc comment in bcm963xx_tag.h
...
The CRC32 actually includes the tag_version.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2275/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2011-05-10 18:15:24 +01:00
Lucas De Marchi
25985edced
Fix common misspellings
...
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi >
2011-03-31 11:26:23 -03:00
Florian Fainelli
bc49c28962
mtd: add Broadcom BCM63xx image tag partition parser
...
This patch adds support for parsing Broadcom BCM63xx image tag format and
creating MTD partitions accordingly. This driver is a platform_device which
can be instantiated accordingly by bcm63xx board support code.
Signed-off-by: Daniel Dickinson <cshore@csolve.net >
Signed-off-by: Mike Albon <malbon@openwrt.org >
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2010-10-25 00:13:05 +01:00
Yoichi Yuasa
cdf22a4e90
MIPS: AR7, BCM63xx: fix gpio_to_irq() return value
...
The return value of gpio_to_irq() is not a pointer but an integer.
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org >
Cc: linux-mips <linux-mips@linux-mips.org >
Patchwork: http://patchwork.linux-mips.org/patch/1280/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-07-05 17:17:26 +01:00
Florian Fainelli
3e1bf29f73
MIPS: BCM63xx: Avoid namespace clash on GPIO_DIR_{IN,OUT}
...
This is too generic a name, so prefix it with BCM63XX_ to avoid potential
namespace clashes when including <asm/gpio.h>.
Signed-off-by: Florian Fainelli <ffainelli@freebox.fr >
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1171/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-05-21 21:31:22 +01:00
Maxime Bizon
4fe67e44a0
MIPS: BCM63xx: Fix typo in cpu-feature-overrides file.
...
Fix typo: CONFIG_BCMCPU_IS_63xx does not exist;
CONFIG_BCM63XX_CPU_63xx is the valid config option.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
To: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr >
Patchwork: http://patchwork.linux-mips.org/patch/901/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-04-12 17:26:18 +01:00
Maxime Bizon
524ef29cff
MIPS: BCM63xx: Add support for second uart.
...
The BCm63xx SOC has two uarts. Some boards use the second one for
bluetooth. This patch changes platform device registration code to
handle this. Changes to the UART driver were already merged in
6a2c7eabfd .
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
To: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr >
Patchwork: http://patchwork.linux-mips.org/patch/900/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-04-12 17:26:18 +01:00
Florian Fainelli
d1b28758c6
MIPS: BCM63xx: Fix BCM6338 and BCM6345 gpio count
...
The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs
available.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1016/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-04-12 17:26:16 +01:00
Ralf Baechle
e0e53dee69
MIPS: Nuke trailing blank lines
...
Recent git versions now warn about those and they've always been a bit of
an annoyance.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-02-27 12:53:14 +01:00
Florian Fainelli
6c1e7a5ad9
MIPS: BCM63xx: Make bcm63xx_uart_register an initfunc
...
This patch removes the calls to bcm63xx_uart_register in board_bcm963xx.c
and make bcm63xx_uart_register an initfunc. Allows us to remove
bcm63xx_dev_uart.h which was there to make checkpatch.pl happy.
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-11-02 12:00:03 +01:00
Maxime Bizon
553d6d5f5b
MIPS: BCM63xx: Add PCMCIA & Cardbus support.
...
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-09-30 21:47:01 +02:00
Maxime Bizon
9fcd66e572
MIPS: BCM63xx: Add serial driver for bcm63xx integrated UART.
...
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Acked-by: Greg Kroah-Hartman <gregkh@suse.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-09-30 21:46:59 +02:00
Maxime Bizon
e7300d04bd
MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.
...
Signed-off-by: Maxime Bizon <mbizon@freebox.fr >
Signed-off-by: Florian Fainelli <florian@openwrt.org >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2009-09-17 20:07:52 +02:00