]> git.baikalelectronics.ru Git - kernel.git/commit
mips/octeon: 16-Bit NOR flash was not being detected during boot
authorCharles Hardin <ckhardin@exablox.com>
Wed, 5 Sep 2012 19:19:48 +0000 (19:19 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 9 Nov 2012 10:37:16 +0000 (11:37 +0100)
commitafea42f9cdb5ab7eb4d06d45055b2bdffe641f83
treea1583a4d9a9be3347876eae1deb57f143c7ba51d
parentc6371e319451d95d770b87d70c9f89886a4d0d09
mips/octeon: 16-Bit NOR flash was not being detected during boot

The cavium code assumed that all NOR on the boot bus was
an 8-bit NOR part and hardcoded the bankwidth. The simple
solution was to add the code that queries the configuration
register for the width of the bus that has been hardware strapped
to the Cavium. This allows both 8-bit and 16-bit parts to be
discovered during boot.

Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Charles Hardin <ckhardin@exablox.com>
Patchwork: http://patchwork.linux-mips.org/patch/4323
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/cavium-octeon/flash_setup.c