[tools] cleanup imagetag
[openwrt.git] / target / linux / brcm63xx / files / include / asm-mips / mach-bcm63xx / bcm63xx_io.h
index 1aef06f..5331c25 100644 (file)
 #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(o)       bcm_readb(bcm63xx_regset_address(RSET_SPI) + \
+                                       bcm63xx_spireg(o))
+#define bcm_spi_readw(o)       bcm_readw(bcm63xx_regset_address(RSET_SPI) + \
+                                       bcm63xx_spireg(o))
+#define bcm_spi_writeb(v,o)    bcm_writeb((v), \
+                                       bcm63xx_regset_address(RSET_SPI) + \
+                                       bcm63xx_spireg(o))
+#define bcm_spi_writew(v,o)    bcm_writew((v), \
+                                       bcm63xx_regset_address(RSET_SPI) + \
+                                       bcm63xx_spireg(o))
+
 #endif /* ! BCM63XX_IO_H_ */
This page took 0.020993 seconds and 4 git commands to generate.