Home
last modified time | relevance | path

Searched refs:a3700_spi (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi-armada-3700.c101 struct a3700_spi { struct
116 static u32 spireg_read(struct a3700_spi *a3700_spi, u32 offset) in spireg_read() argument
118 return readl(a3700_spi->base + offset); in spireg_read()
121 static void spireg_write(struct a3700_spi *a3700_spi, u32 offset, u32 data) in spireg_write() argument
123 writel(data, a3700_spi->base + offset); in spireg_write()
126 static void a3700_spi_auto_cs_unset(struct a3700_spi *a3700_spi) in a3700_spi_auto_cs_unset() argument
130 val = spireg_read(a3700_spi, A3700_SPI_IF_CFG_REG); in a3700_spi_auto_cs_unset()
132 spireg_write(a3700_spi, A3700_SPI_IF_CFG_REG, val); in a3700_spi_auto_cs_unset()
135 static void a3700_spi_activate_cs(struct a3700_spi *a3700_spi, unsigned int cs) in a3700_spi_activate_cs() argument
139 val = spireg_read(a3700_spi, A3700_SPI_IF_CTRL_REG); in a3700_spi_activate_cs()
[all …]