Searched refs:hspi (Results 1 – 2 of 2) sorted by relevance
/drivers/spi/ |
D | spi-sh-hspi.c | 46 static void hspi_write(struct hspi_priv *hspi, int reg, u32 val) in hspi_write() argument 48 iowrite32(val, hspi->addr + reg); in hspi_write() 51 static u32 hspi_read(struct hspi_priv *hspi, int reg) in hspi_read() argument 53 return ioread32(hspi->addr + reg); in hspi_read() 56 static void hspi_bit_set(struct hspi_priv *hspi, int reg, u32 mask, u32 set) in hspi_bit_set() argument 58 u32 val = hspi_read(hspi, reg); in hspi_bit_set() 63 hspi_write(hspi, reg, val); in hspi_bit_set() 69 static int hspi_status_check_timeout(struct hspi_priv *hspi, u32 mask, u32 val) in hspi_status_check_timeout() argument 74 if ((mask & hspi_read(hspi, SPSR)) == val) in hspi_status_check_timeout() 80 dev_err(hspi->dev, "timeout\n"); in hspi_status_check_timeout() [all …]
|
D | Makefile | 108 obj-$(CONFIG_SPI_SH_HSPI) += spi-sh-hspi.o
|