Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/flash/
Dflash_andes_qspi.c143 uint32_t tctrl, int_msk; in flash_andes_qspi_access() local
146 tctrl = TCTRL_CMD_EN_MSK; in flash_andes_qspi_access()
153 tctrl |= TCTRL_ADDR_EN_MSK; in flash_andes_qspi_access()
161 tctrl |= TRNS_MODE_NONE_DATA; in flash_andes_qspi_access()
168 tctrl |= (TRNS_MODE_WRITE_ONLY | in flash_andes_qspi_access()
175 tctrl |= (TRNS_MODE_READ_ONLY | in flash_andes_qspi_access()
182 tctrl = ((tctrl & ~TCTRL_TRNS_MODE_MSK) | in flash_andes_qspi_access()
189 tctrl = ((tctrl & ~TCTRL_TRNS_MODE_MSK) | in flash_andes_qspi_access()
197 tctrl = ((tctrl & ~TCTRL_TRNS_MODE_MSK) | in flash_andes_qspi_access()
205 sys_write32(tctrl, QSPI_TCTRL(base)); in flash_andes_qspi_access()
/Zephyr-latest/drivers/spi/
Dspi_andes_atcspi200.c115 uint32_t data_len, tctrl, int_msk; in spi_transfer() local
130 tctrl = (TRNS_MODE_WRITE_ONLY << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer()
134 tctrl = (TRNS_MODE_READ_ONLY << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer()
138 tctrl = (TRNS_MODE_WRITE_READ << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer()
146 sys_write32(tctrl, SPI_TCTRL(cfg->base)); in spi_transfer()
537 uint32_t data_len, tctrl, dma_rx_enable, dma_tx_enable; in spi_transfer_dma() local
546 tctrl = (TRNS_MODE_WRITE_ONLY << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer_dma()
551 tctrl = (TRNS_MODE_READ_ONLY << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer_dma()
556 tctrl = (TRNS_MODE_WRITE_READ << TCTRL_TRNS_MODE_OFFSET) | in spi_transfer_dma()
563 sys_write32(tctrl, SPI_TCTRL(cfg->base)); in spi_transfer_dma()