Lines Matching refs:io_base
57 void __iomem *io_base; member
69 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd()
82 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset()
83 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset()
115 writel(spifi->mcmd, spifi->io_base + SPIFI_MCMD); in nxp_spifi_set_memory_mode_on()
116 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_set_memory_mode_on()
141 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_read_reg()
144 *buf++ = readb(spifi->io_base + SPIFI_DATA); in nxp_spifi_read_reg()
165 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_write_reg()
168 writeb(*buf++, spifi->io_base + SPIFI_DATA); in nxp_spifi_write_reg()
200 writel(to, spifi->io_base + SPIFI_ADDR); in nxp_spifi_write()
207 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_write()
210 writeb(buf[i], spifi->io_base + SPIFI_DATA); in nxp_spifi_write()
229 writel(offs, spifi->io_base + SPIFI_ADDR); in nxp_spifi_erase()
234 writel(cmd, spifi->io_base + SPIFI_CMD); in nxp_spifi_erase()
341 writel(ctrl, spifi->io_base + SPIFI_CTRL); in nxp_spifi_setup_flash()
390 spifi->io_base = devm_platform_ioremap_resource_byname(pdev, "spifi"); in nxp_spifi_probe()
391 if (IS_ERR(spifi->io_base)) in nxp_spifi_probe()
392 return PTR_ERR(spifi->io_base); in nxp_spifi_probe()
427 writel(0, spifi->io_base + SPIFI_IDATA); in nxp_spifi_probe()
428 writel(0, spifi->io_base + SPIFI_MCMD); in nxp_spifi_probe()