Home
last modified time | relevance | path

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

/linux/drivers/mtd/spi-nor/controllers/
H A Dnxp-spifi.c63 static int nxp_spifi_wait_for_cmd(struct nxp_spifi *spifi) in nxp_spifi_wait_for_cmd() argument
68 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd()
71 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd()
76 static int nxp_spifi_reset(struct nxp_spifi *spifi) in nxp_spifi_reset() argument
81 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset()
82 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset()
85 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset()
90 static int nxp_spifi_set_memory_mode_off(struct nxp_spifi *spifi) in nxp_spifi_set_memory_mode_off() argument
94 if (!spifi->memory_mode) in nxp_spifi_set_memory_mode_off()
97 ret = nxp_spifi_reset(spifi); in nxp_spifi_set_memory_mode_off()
[all …]
H A DMakefile3 obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o
/linux/drivers/spi/
H A Dspi-gxp.c32 struct gxp_spi *spifi; member
50 static void gxp_spi_set_mode(struct gxp_spi *spifi, int mode) in gxp_spi_set_mode() argument
53 void __iomem *reg_base = spifi->reg_base; in gxp_spi_set_mode()
70 struct gxp_spi *spifi = chip->spifi; in gxp_spi_read_reg() local
71 void __iomem *reg_base = spifi->reg_base; in gxp_spi_read_reg()
97 dev_warn(spifi->dev, "read reg busy time out\n"); in gxp_spi_read_reg()
101 memcpy_fromio(op->data.buf.in, spifi->dat_base, op->data.nbytes); in gxp_spi_read_reg()
108 struct gxp_spi *spifi = chip->spifi; in gxp_spi_write_reg() local
109 void __iomem *reg_base = spifi->reg_base; in gxp_spi_write_reg()
123 memcpy_toio(spifi->dat_base, op->data.buf.in, op->data.nbytes); in gxp_spi_write_reg()
[all …]
/linux/Documentation/devicetree/bindings/mtd/
H A Dnxp-spifi.txt10 - compatible : Should be "nxp,lpc1773-spifi"
13 - reg-names: Should contain the reg names "spifi" and "flash"
16 - clock-names : Should contain the clock names "spifi" and "reg"
35 spifi: spifi@40003000 {
36 compatible = "nxp,lpc1773-spifi";
38 reg-names = "spifi", "flash";
41 clock-names = "spifi", "reg";
/linux/arch/arm/boot/dts/nxp/lpc/
H A Dlpc4350-hitex-eval.dts296 spifi_pins: spifi-pins {
299 function = "spifi";
308 function = "spifi";
317 function = "spifi";
449 &spifi {
H A Dlpc18xx.dtsi103 spifi: flash-controller@40003000 { label
104 compatible = "nxp,lpc1773-spifi";
106 reg-names = "spifi", "flash";
109 clock-names = "spifi", "reg";
/linux/
H A DMAINTAINERS2455 F: Documentation/devicetree/bindings/spi/hpe,gxp-spifi.yaml
2527 F: drivers/mtd/spi-nor/controllers/nxp-spifi.c