|
@@ -185,14 +185,14 @@ static void spi0_deinit(void)
|
|
|
#define SPI_READ_MAX_SIZE 60 /* FIFO size, minus 4 bytes of the header */
|
|
|
|
|
|
static void sunxi_spi0_read_data(u8 *buf, u32 addr, u32 bufsize,
|
|
|
- u32 spi_ctl_reg,
|
|
|
- u32 spi_ctl_xch_bitmask,
|
|
|
- u32 spi_fifo_reg,
|
|
|
- u32 spi_tx_reg,
|
|
|
- u32 spi_rx_reg,
|
|
|
- u32 spi_bc_reg,
|
|
|
- u32 spi_tc_reg,
|
|
|
- u32 spi_bcc_reg)
|
|
|
+ ulong spi_ctl_reg,
|
|
|
+ ulong spi_ctl_xch_bitmask,
|
|
|
+ ulong spi_fifo_reg,
|
|
|
+ ulong spi_tx_reg,
|
|
|
+ ulong spi_rx_reg,
|
|
|
+ ulong spi_bc_reg,
|
|
|
+ ulong spi_tc_reg,
|
|
|
+ ulong spi_bcc_reg)
|
|
|
{
|
|
|
writel(4 + bufsize, spi_bc_reg); /* Burst counter (total bytes) */
|
|
|
writel(4, spi_tc_reg); /* Transfer counter (bytes to send) */
|