MIPS: BCM63xx: Fix GPIO set/get for BCM6345
authorFlorian Fainelli <florian@openwrt.org>
Wed, 16 Nov 2011 18:11:21 +0000 (19:11 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 7 Dec 2011 22:03:04 +0000 (22:03 +0000)
commit92d9ae20269461deeefc46fbcdb8d428c4aa8d18
tree257e0da8d45cf52434b813da0367be8462995a71
parente1c96c8620539f056291fe42f742f331f5d291b1
MIPS: BCM63xx: Fix GPIO set/get for BCM6345

On BCM6345, the register offsets for the set/get GPIO registers is wrong.
Use the same logic as the one present in arch/mips/bcm63xx/irq.c to
define the correct gpio_out_low_reg value when support for BCM6345
is compiled in.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3010/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm63xx/gpio.c
arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h