#include <bcm63xx_dev_spi.h>
#define PFX KBUILD_MODNAME
#include <bcm63xx_dev_spi.h>
#define PFX KBUILD_MODNAME
struct bcm63xx_spi {
/* bitbang has to be first */
struct bcm63xx_spi {
/* bitbang has to be first */
/* Fill in the Message control register */
msg_ctl = bcm_spi_readb(SPI_MSG_CTL);
msg_ctl |= (t->len << SPI_BYTE_CNT_SHIFT);
/* Fill in the Message control register */
msg_ctl = bcm_spi_readb(SPI_MSG_CTL);
msg_ctl |= (t->len << SPI_BYTE_CNT_SHIFT);
- msg_ctl |= (SPI_HD_R << SPI_MSG_TYPE_SHIFT);
+ msg_ctl |= (SPI_FD_RW << SPI_MSG_TYPE_SHIFT);
bcm_spi_writeb(msg_ctl, SPI_MSG_CTL);
/* Issue the transfer */
bcm_spi_writeb(msg_ctl, SPI_MSG_CTL);
/* Issue the transfer */