Searched refs:a3700_spi (Results 1 – 1 of 1) sorted by relevance
101 struct a3700_spi { struct116 static u32 spireg_read(struct a3700_spi *a3700_spi, u32 offset) in spireg_read() argument118 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() argument123 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() argument130 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() argument139 val = spireg_read(a3700_spi, A3700_SPI_IF_CTRL_REG); in a3700_spi_activate_cs()[all …]