X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aedeeb1874e872189927c3c73cc039a2eb250586..5abca50d4d73492ce2749de05a3539b75ab83439:/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_io.h 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 1aef06f1f..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 @@ -90,4 +90,18 @@ #define bcm_ddr_readl(o) bcm_rset_readl(RSET_DDR, (o)) #define bcm_ddr_writel(v,o) bcm_rset_writel(RSET_DDR, (v), (o)) +/* + * helpers for the SPI register sets + */ +#define bcm_spi_readb(b,o) bcm_readb((b) + \ + bcm63xx_spireg(o)) +#define bcm_spi_readw(b,o) bcm_readw((b) + \ + bcm63xx_spireg(o)) +#define bcm_spi_writeb(v,b,o) bcm_writeb((v), \ + (b) + \ + bcm63xx_spireg(o)) +#define bcm_spi_writew(v,b,o) bcm_writew((v), \ + (b) + \ + bcm63xx_spireg(o)) + #endif /* ! BCM63XX_IO_H_ */