Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/spi/
Dspi_sifive.c51 sys_write32((SF_SCKDIV_DIV_MASK & div), SPI_REG(dev, REG_SCKDIV)); in spi_config()
56 sys_set_bit(SPI_REG(dev, REG_SCKMODE), SF_SCKMODE_POL); in spi_config()
59 sys_clear_bit(SPI_REG(dev, REG_SCKMODE), SF_SCKMODE_POL); in spi_config()
68 sys_set_bit(SPI_REG(dev, REG_SCKMODE), SF_SCKMODE_PHA); in spi_config()
71 sys_clear_bit(SPI_REG(dev, REG_SCKMODE), SF_SCKMODE_PHA); in spi_config()
83 sys_set_mask(SPI_REG(dev, REG_FMT), SF_FMT_LEN_MASK, fmt_len); in spi_config()
90 sys_set_mask(SPI_REG(dev, REG_FMT), in spi_config()
96 sys_set_bit(SPI_REG(dev, REG_FMT), SF_FMT_ENDIAN); in spi_config()
98 sys_clear_bit(SPI_REG(dev, REG_FMT), SF_FMT_ENDIAN); in spi_config()
106 return !(sys_read32(SPI_REG(dev, REG_TXDATA)) & SF_TXDATA_FULL); in spi_sifive_send_available()
[all …]
Dspi_sifive.h21 #define SPI_REG(dev, offset) ((mem_addr_t) (SPI_CFG(dev)->base + (offset))) macro