Lines Matching refs:iomode
725 u32 config, iomode, control; in spi_qup_io_config() local
794 iomode = readl_relaxed(controller->base + QUP_IO_M_MODES); in spi_qup_io_config()
796 iomode &= ~(QUP_IO_M_INPUT_MODE_MASK | QUP_IO_M_OUTPUT_MODE_MASK); in spi_qup_io_config()
799 iomode &= ~(QUP_IO_M_PACK_EN | QUP_IO_M_UNPACK_EN); in spi_qup_io_config()
801 iomode |= QUP_IO_M_PACK_EN | QUP_IO_M_UNPACK_EN; in spi_qup_io_config()
803 iomode |= (controller->mode << QUP_IO_M_OUTPUT_MODE_MASK_SHIFT); in spi_qup_io_config()
804 iomode |= (controller->mode << QUP_IO_M_INPUT_MODE_MASK_SHIFT); in spi_qup_io_config()
806 writel_relaxed(iomode, controller->base + QUP_IO_M_MODES); in spi_qup_io_config()
1031 u32 max_freq, iomode, num_cs; in spi_qup_probe() local
1137 iomode = readl_relaxed(base + QUP_IO_M_MODES); in spi_qup_probe()
1139 size = QUP_IO_M_OUTPUT_BLOCK_SIZE(iomode); in spi_qup_probe()
1145 size = QUP_IO_M_INPUT_BLOCK_SIZE(iomode); in spi_qup_probe()
1151 size = QUP_IO_M_OUTPUT_FIFO_SIZE(iomode); in spi_qup_probe()
1154 size = QUP_IO_M_INPUT_FIFO_SIZE(iomode); in spi_qup_probe()