OSDN Git Service

MIPS: BCM47XX: Add board detection
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 18 Sep 2013 11:29:57 +0000 (13:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Oct 2013 20:24:00 +0000 (21:24 +0100)
commit786c497a693c708465b937c05945beaea1164c12
treecfc128e317610d04c02645d94a796287386616d6
parent85f32dbdeb7a0139e667bcfcfc98bbf47ddfc24e
MIPS: BCM47XX: Add board detection

Detect on which board this code is running based on some nvram
settings. This is needed to start board specific workarounds and
configure the leds and buttons which are on different gpios on every board.

This patches add some boards we have seen, but there are many more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5840
Patchwork: https://patchwork.linux-mips.org/patch/5855/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/Makefile
arch/mips/bcm47xx/board.c [new file with mode: 0644]
arch/mips/bcm47xx/setup.c
arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h [new file with mode: 0644]