Lines Matching refs:sys_write8
118 sys_write8(sys_read8(cfg->base + SPI0D_CTRL5) | SCK_FREQ_DIV_1_EN, in spi_it8xxx2_set_freq()
127 sys_write8(sys_read8(cfg->base + SPI0D_CTRL5) & ~SCK_FREQ_DIV_1_EN, in spi_it8xxx2_set_freq()
131 sys_write8(reg_val, cfg->base + SPI01_CTRL1); in spi_it8xxx2_set_freq()
177 sys_write8(reg_val, cfg->base + SPI01_CTRL1); in spi_it8xxx2_configure()
196 sys_write8(reg_val, cfg->base + SPI0C_INT_STS); in spi_it8xxx2_configure()
355 sys_write8(BYTE_0(cmd_address), cfg->base + SPI05_CH0_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
356 sys_write8(BYTE_1(cmd_address), cfg->base + SPI06_CH0_CMD_ADDR_HB); in spi_it8xxx2_next_xfer()
357 sys_write8(BYTE_2(cmd_address), cfg->base + SPI21_CH0_CMD_ADDR_HB2); in spi_it8xxx2_next_xfer()
360 sys_write8(BYTE_0(mem_address), cfg->base + SPI0E_CH0_WR_MEM_ADDR_LB); in spi_it8xxx2_next_xfer()
361 sys_write8(BYTE_1(mem_address), cfg->base + SPI0F_CH0_WR_MEM_ADDR_HB); in spi_it8xxx2_next_xfer()
362 sys_write8(BYTE_2(mem_address), cfg->base + SPI23_CH0_WR_MEM_ADDR_HB2); in spi_it8xxx2_next_xfer()
365 sys_write8(BYTE_0(cmd_address), cfg->base + SPI12_CH1_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
366 sys_write8(BYTE_1(cmd_address), cfg->base + SPI13_CH1_CMD_ADDR_HB); in spi_it8xxx2_next_xfer()
367 sys_write8(BYTE_2(cmd_address), cfg->base + SPI25_CH1_CMD_ADDR_HB2); in spi_it8xxx2_next_xfer()
370 sys_write8(BYTE_0(mem_address), cfg->base + SPI14_CH1_WR_MEM_ADDR_LB); in spi_it8xxx2_next_xfer()
371 sys_write8(BYTE_1(mem_address), cfg->base + SPI15_CH1_WR_MEM_ADDR_HB); in spi_it8xxx2_next_xfer()
372 sys_write8(BYTE_2(mem_address), cfg->base + SPI27_CH1_WR_MEM_ADDR_HB2); in spi_it8xxx2_next_xfer()
376 sys_write8(sys_read8(cfg->base + SPI01_CTRL1) | INTERRUPT_EN, cfg->base + SPI01_CTRL1); in spi_it8xxx2_next_xfer()
380 sys_write8(reg_val | CMDQ_MODE_EN, cfg->base + SPI0D_CTRL5); in spi_it8xxx2_next_xfer()
455 sys_write8(reg_val, cfg->base + SPI0C_INT_STS); in it8xxx2_spi_isr()
467 sys_write8(reg_val, cfg->base + SPI0D_CTRL5); in it8xxx2_spi_isr()
491 sys_write8(sys_read8(cfg->base + SPI04_CTRL3) & ~AUTO_MODE, cfg->base + SPI04_CTRL3); in spi_it8xxx2_init()