Home
last modified time | relevance | path

Searched refs:spifi (Results 1 – 2 of 2) sorted by relevance

/drivers/mtd/spi-nor/
Dnxp-spifi.c68 static int nxp_spifi_wait_for_cmd(struct nxp_spifi *spifi) in nxp_spifi_wait_for_cmd() argument
73 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd()
76 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd()
81 static int nxp_spifi_reset(struct nxp_spifi *spifi) in nxp_spifi_reset() argument
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()
90 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset()
95 static int nxp_spifi_set_memory_mode_off(struct nxp_spifi *spifi) in nxp_spifi_set_memory_mode_off() argument
99 if (!spifi->memory_mode) in nxp_spifi_set_memory_mode_off()
102 ret = nxp_spifi_reset(spifi); in nxp_spifi_set_memory_mode_off()
[all …]
DMakefile3 obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o