]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Alchemy: db1200: Improve PB1200 detection.
authorManuel Lauss <manuel.lauss@googlemail.com>
Wed, 16 Nov 2011 15:42:26 +0000 (16:42 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 24 Nov 2011 10:41:58 +0000 (10:41 +0000)
commit331ffb85d0140bbdf5ab13e88b57e5e4ec82ce51
tree8efb91a3ca6a5324a9e241720953e3573212a40c
parent71ac2c86ccd79a875e392af43cdaa072c748d0c7
MIPS: Alchemy: db1200: Improve PB1200 detection.

The PB1200 has the CPLD located at an address which on the DB1200 is
RAM;  reading the Board-ID sometimes results in a PB1200 being detected
instead (especially during reboots after long uptimes).
On the other hand, the address of the DB1200's CPLD is hosting Flash
chips on the PB1200.  Test for the DB1200 first and additionally do a
quick write-test to the hexleds register to make sure we're writing
to the CPLD.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3005/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/devboards/db1200.c