1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[brcm63xx] some more fixes to the SPI controller driver

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15146 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2009-04-08 08:52:57 +00:00
parent 97fba8d644
commit c428c49464
2 changed files with 31 additions and 29 deletions

View File

@@ -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_ */