/* Put a frame into the transmit FIFO TO-DO: support frames of size != 8  */
static void spi_a2f_hw_txfifo_put(struct spi_a2f *c, int wb, const void *tx, int i)
/* Put a frame into the transmit FIFO TO-DO: support frames of size != 8  */
static void spi_a2f_hw_txfifo_put(struct spi_a2f *c, int wb, const void *tx, int i)
{
	int j;
	unsigned int d = 0;
	unsigned char *p = (unsigned char *)tx;
	if (p) {
		for (j = 0; j < wb; j++) {
			d <<= 8;
			d |= p[i*wb + j];
		}
	}
	writel(d, &MSS_SPI(c)->spi_tx_data);
}