Lines Matching refs:sys_write32
742 sys_write32(MST_INT_MASK, config->base + MST_IDR); in cdns_i3c_interrupts_disable()
747 sys_write32(MST_INT_MASK, config->base + MST_ICR); in cdns_i3c_interrupts_clear()
759 sys_write32(val, config->base + TX_FIFO); in cdns_i3c_write_tx_fifo()
765 sys_write32(val, config->base + TX_FIFO); in cdns_i3c_write_tx_fifo()
777 sys_write32(val, config->base + SLV_DDR_TX_FIFO); in cdns_i3c_write_ddr_tx_fifo()
783 sys_write32(val, config->base + SLV_DDR_TX_FIFO); in cdns_i3c_write_ddr_tx_fifo()
796 sys_write32(val, config->base + IBI_DATA_FIFO); in cdns_i3c_write_ibi_fifo()
802 sys_write32(val, config->base + IBI_DATA_FIFO); in cdns_i3c_write_ibi_fifo()
960 sys_write32(~CTRL_DEV_EN & ctrl, config->base + CTRL); in cdns_i3c_set_prescalers()
963 sys_write32(PRESCL_CTRL0_I3C(prescl_i3c) | PRESCL_CTRL0_I2C(prescl_i2c), in cdns_i3c_set_prescalers()
967 sys_write32(PRESCL_CTRL1_OD_LOW(od_low & PRESCL_CTRL1_OD_LOW_MASK), in cdns_i3c_set_prescalers()
972 sys_write32(CTRL_DEV_EN | ctrl, config->base + CTRL); in cdns_i3c_set_prescalers()
1017 sys_write32(prepare_rr0_dev_address(controller_da), config->base + DEV_ID_RR0(0)); in cdns_i3c_program_controller_retaining_reg()
1065 sys_write32(sir_map, config->base + SIR_MAP_DEV_REG(cdns_i3c_device_data->id - 1)); in cdns_i3c_controller_ibi_enable()
1096 sys_write32(sir_map, config->base + SIR_MAP_DEV_REG(cdns_i3c_device_data->id - 1)); in cdns_i3c_controller_ibi_disable()
1123 sys_write32(CTRL_HJ_INIT | sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_target_ibi_raise_hj()
1158 sys_write32(ibi_ctrl_val, config->base + SLV_IBI_CTRL); in cdns_i3c_target_ibi_raise_intr()
1197 sys_write32(MST_INT_CMDD_EMP, config->base + MST_IDR); in cdns_i3c_cancel_transfer()
1207 sys_write32(~CTRL_DEV_EN & sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_cancel_transfer()
1229 sys_write32(FLUSH_RX_FIFO | FLUSH_TX_FIFO | FLUSH_CMD_FIFO | FLUSH_CMD_RESP, in cdns_i3c_cancel_transfer()
1233 sys_write32(CTRL_DEV_EN | sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_cancel_transfer()
1251 sys_write32(MST_INT_CMDD_EMP, config->base + MST_ICR); in cdns_i3c_start_transfer()
1304 sys_write32(xfer->cmds[i].cmd1, config->base + CMD1_FIFO); in cdns_i3c_start_transfer()
1305 sys_write32(xfer->cmds[i].cmd0, config->base + CMD0_FIFO); in cdns_i3c_start_transfer()
1308 sys_write32(0x00, config->base + CMD1_FIFO); in cdns_i3c_start_transfer()
1310 sys_write32(CMD0_FIFO_IS_DDR | CMD0_FIFO_PL_LEN(1), in cdns_i3c_start_transfer()
1313 sys_write32(CMD0_FIFO_IS_DDR | CMD0_FIFO_PL_LEN(xfer->cmds[i].len), in cdns_i3c_start_transfer()
1320 sys_write32(CTRL_MCS | sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_start_transfer()
1321 sys_write32(MST_INT_CMDD_EMP, config->base + MST_IER); in cdns_i3c_start_transfer()
1524 sys_write32(prepare_rr0_dev_address(last_addr) | DEV_ID_RR0_IS_I3C, in cdns_i3c_do_daa()
1526 sys_write32(0, config->base + DEV_ID_RR1(rr_idx)); in cdns_i3c_do_daa()
1527 sys_write32(0, config->base + DEV_ID_RR2(rr_idx)); in cdns_i3c_do_daa()
1701 sys_write32(MST_INT_CMDD_EMP, config->base + MST_IDR); in cdns_i3c_complete_transfer()
1992 sys_write32(sys_read32(config->base + DEVS_CTRL) | DEVS_CTRL_DEV_ACTIVE(slot), in cdns_i3c_attach_device()
2006 sys_write32(dev_id_rr0, config->base + DEV_ID_RR0(slot)); in cdns_i3c_attach_device()
2007 sys_write32(dev_id_rr1, config->base + DEV_ID_RR1(slot)); in cdns_i3c_attach_device()
2008 sys_write32(dev_id_rr2, config->base + DEV_ID_RR2(slot)); in cdns_i3c_attach_device()
2035 sys_write32(dev_id_rr0, config->base + DEV_ID_RR0(cdns_i3c_device_data->id)); in cdns_i3c_reattach_device()
2036 sys_write32(dev_id_rr1, config->base + DEV_ID_RR1(cdns_i3c_device_data->id)); in cdns_i3c_reattach_device()
2037 sys_write32(dev_id_rr2, config->base + DEV_ID_RR2(cdns_i3c_device_data->id)); in cdns_i3c_reattach_device()
2057 sys_write32(sys_read32(config->base + DEVS_CTRL) | in cdns_i3c_detach_device()
2085 sys_write32(dev_id_rr0, config->base + DEV_ID_RR0(slot)); in cdns_i3c_i2c_attach_device()
2086 sys_write32(0, config->base + DEV_ID_RR1(slot)); in cdns_i3c_i2c_attach_device()
2087 sys_write32(dev_id_rr2, config->base + DEV_ID_RR2(slot)); in cdns_i3c_i2c_attach_device()
2093 sys_write32(sys_read32(config->base + DEVS_CTRL) | DEVS_CTRL_DEV_ACTIVE(slot), in cdns_i3c_i2c_attach_device()
2114 sys_write32(sys_read32(config->base + DEVS_CTRL) | in cdns_i3c_i2c_detach_device()
2501 sys_write32(int_st, config->base + MST_ICR); in cdns_i3c_irq_handler()
2558 sys_write32(int_sl, config->base + SLV_ICR); in cdns_i3c_irq_handler()
2848 sys_write32(data_word, config->base + SLV_DDR_TX_FIFO); in cdns_i3c_target_tx_ddr_write()
2852 sys_write32(DDR_PREAMBLE_CMD_CRC | DDR_CRC_TOKEN | crc5 << 9, in cdns_i3c_target_tx_ddr_write()
2867 sys_write32(thr_ctrl, config->base + SLV_DDR_TX_RX_THR_CTRL); in cdns_i3c_target_tx_ddr_write()
2912 sys_write32(len, config->base + SLV_CTRL); in cdns_i3c_target_tx_write()
2937 sys_write32(val, config->base + TX_FIFO); in cdns_i3c_target_tx_write()
2940 sys_write32((uint32_t)buf[i], config->base + TX_FIFO); in cdns_i3c_target_tx_write()
2955 sys_write32(thr_ctrl, config->base + TX_RX_THR_CTRL); in cdns_i3c_target_tx_write()
3146 sys_write32(DEVS_CTRL_DEV_CLR_ALL, config->base + DEVS_CTRL); in cdns_i3c_bus_init()
3175 sys_write32(~CTRL_DEV_EN & sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_bus_init()
3228 sys_write32(ctrl, config->base + CTRL); in cdns_i3c_bus_init()
3231 sys_write32(CTRL_DEV_EN | ctrl, config->base + CTRL); in cdns_i3c_bus_init()
3234 sys_write32(CMD_THR(I3C_CMDD_THR) | IBI_THR(I3C_IBID_THR) | CMDR_THR(I3C_CMDR_THR) | in cdns_i3c_bus_init()
3240 sys_write32(TX_THR(I3C_TX_THR) | RX_THR(data->hw_cfg.rx_mem_depth), in cdns_i3c_bus_init()
3243 sys_write32(TX_THR(1) | RX_THR(1), config->base + TX_RX_THR_CTRL); in cdns_i3c_bus_init()
3244 sys_write32(SLV_DDR_TX_THR(0) | SLV_DDR_RX_THR(1), in cdns_i3c_bus_init()
3249 sys_write32(SLV_INT_DA_UPD | SLV_INT_SDR_RD_COMP | SLV_INT_SDR_WR_COMP | in cdns_i3c_bus_init()
3256 sys_write32(MST_INT_IBIR_THR | MST_INT_RX_UNF | MST_INT_HALTED | MST_INT_TX_OVF | in cdns_i3c_bus_init()
3277 sys_write32(CTRL_HJ_ACK | sys_read32(config->base + CTRL), config->base + CTRL); in cdns_i3c_bus_init()