MIPS: BCM63XX: Add flash type detection
authorJonas Gorski <jonas.gorski@gmail.com>
Tue, 24 Jul 2012 14:33:11 +0000 (16:33 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2012 14:33:11 +0000 (16:33 +0200)
commitaaf3fedb56c95b419eda4c5392e03ad9b82c4847
tree85a25757c0b049af11e7306cb72c9989e81c0c98
parent4b897d5483da5c3f3c4d52440a994aad574b62b4
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>
arch/mips/bcm63xx/dev-flash.c
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h
arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h