Lines Matching refs:io_base
61 void __iomem *io_base; member
73 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd()
86 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset()
87 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset()
119 writel(spifi->mcmd, spifi->io_base + SPIFI_MCMD); in nxp_spifi_set_memory_mode_on()
120 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_set_memory_mode_on()
144 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_read_reg()
147 *buf++ = readb(spifi->io_base + SPIFI_DATA); in nxp_spifi_read_reg()
167 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_write_reg()
170 writeb(*buf++, spifi->io_base + SPIFI_DATA); in nxp_spifi_write_reg()
202 writel(to, spifi->io_base + SPIFI_ADDR); in nxp_spifi_write()
209 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_write()
212 writeb(buf[i], spifi->io_base + SPIFI_DATA); in nxp_spifi_write()
231 writel(offs, spifi->io_base + SPIFI_ADDR); in nxp_spifi_erase()
236 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_erase()
332 writel(ctrl, spifi->io_base + SPIFI_CTRL); in nxp_spifi_setup_flash()
387 spifi->io_base = devm_ioremap_resource(&pdev->dev, res); in nxp_spifi_probe()
388 if (IS_ERR(spifi->io_base)) in nxp_spifi_probe()
389 return PTR_ERR(spifi->io_base); in nxp_spifi_probe()
425 writel(0, spifi->io_base + SPIFI_IDATA); in nxp_spifi_probe()
426 writel(0, spifi->io_base + SPIFI_MCMD); in nxp_spifi_probe()