From c428c4946499bbeb419562aa8126e4b8b9e748c8 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 8 Apr 2009 08:52:57 +0000 Subject: [brcm63xx] some more fixes to the SPI controller driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15146 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'target/linux/brcm63xx/files/include') diff --git a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h index 5331c25f7..31e950e11 100644 --- a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h +++ b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h @@ -93,15 +93,15 @@ /* * helpers for the SPI register sets */ -#define bcm_spi_readb(o) bcm_readb(bcm63xx_regset_address(RSET_SPI) + \ +#define bcm_spi_readb(b,o) bcm_readb((b) + \ bcm63xx_spireg(o)) -#define bcm_spi_readw(o) bcm_readw(bcm63xx_regset_address(RSET_SPI) + \ +#define bcm_spi_readw(b,o) bcm_readw((b) + \ bcm63xx_spireg(o)) -#define bcm_spi_writeb(v,o) bcm_writeb((v), \ - bcm63xx_regset_address(RSET_SPI) + \ +#define bcm_spi_writeb(v,b,o) bcm_writeb((v), \ + (b) + \ bcm63xx_spireg(o)) -#define bcm_spi_writew(v,o) bcm_writew((v), \ - bcm63xx_regset_address(RSET_SPI) + \ +#define bcm_spi_writew(v,b,o) bcm_writew((v), \ + (b) + \ bcm63xx_spireg(o)) #endif /* ! BCM63XX_IO_H_ */ -- cgit v1.2.3