MIPS: BCM63XX: rework chip detection
authorJonas Gorski <jogo@openwrt.org>
Thu, 21 Mar 2013 14:03:16 +0000 (14:03 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 May 2013 23:19:03 +0000 (01:19 +0200)
commit13be798c57ebe5df09254832330f48c936ac39fd
treecca5018a85c958b937517f3e87868a60db25c5ca
parent6605428c506bea269ca6c4aed85e97fbee2cbe7b
MIPS: BCM63XX: rework chip detection

Instead of trying to use a correlation of cpu prid and chip id and
hoping they will always be unique, use the cpu prid to determine the
chip id register location and just read out the chip id.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5008/
Acked-by: John Crispin <blogic@openwrt.org>
arch/mips/bcm63xx/cpu.c