Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/mtd/spi-nor/controllers/
Dnxp-spifi.c64 static int nxp_spifi_wait_for_cmd(struct nxp_spifi *spifi) in nxp_spifi_wait_for_cmd() argument
69 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd()
72 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd()
77 static int nxp_spifi_reset(struct nxp_spifi *spifi) in nxp_spifi_reset() argument
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()
86 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset()
91 static int nxp_spifi_set_memory_mode_off(struct nxp_spifi *spifi) in nxp_spifi_set_memory_mode_off() argument
95 if (!spifi->memory_mode) in nxp_spifi_set_memory_mode_off()
98 ret = nxp_spifi_reset(spifi); in nxp_spifi_set_memory_mode_off()
[all …]
DMakefile3 obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o
/Linux-v6.1/drivers/spi/
Dspi-gxp.c33 struct gxp_spi *spifi; member
51 static void gxp_spi_set_mode(struct gxp_spi *spifi, int mode) in gxp_spi_set_mode() argument
54 void __iomem *reg_base = spifi->reg_base; in gxp_spi_set_mode()
71 struct gxp_spi *spifi = chip->spifi; in gxp_spi_read_reg() local
72 void __iomem *reg_base = spifi->reg_base; in gxp_spi_read_reg()
98 dev_warn(spifi->dev, "read reg busy time out\n"); in gxp_spi_read_reg()
102 memcpy_fromio(op->data.buf.in, spifi->dat_base, op->data.nbytes); in gxp_spi_read_reg()
109 struct gxp_spi *spifi = chip->spifi; in gxp_spi_write_reg() local
110 void __iomem *reg_base = spifi->reg_base; in gxp_spi_write_reg()
124 memcpy_toio(spifi->dat_base, op->data.buf.in, op->data.nbytes); in gxp_spi_write_reg()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/mtd/
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-v6.1/arch/arm/boot/dts/
Dlpc4350-hitex-eval.dts296 spifi_pins: spifi-pins {
299 function = "spifi";
308 function = "spifi";
317 function = "spifi";
449 &spifi {
Dlpc4357-ea4357-devkit.dts379 spifi_pins: spifi-pins {
382 function = "spifi";
391 function = "spifi";
400 function = "spifi";
580 &spifi {
Dlpc4357-myd-lpc4357.dts315 spifi_pins: spifi-pins {
318 function = "spifi";
327 function = "spifi";
336 function = "spifi";
566 &spifi {
Dlpc18xx.dtsi103 spifi: flash-controller@40003000 { label
104 compatible = "nxp,lpc1773-spifi";
106 reg-names = "spifi", "flash";
109 clock-names = "spifi", "reg";
/Linux-v6.1/
DMAINTAINERS2220 F: Documentation/devicetree/bindings/spi/hpe,gxp-spifi.yaml
2315 F: drivers/mtd/spi-nor/controllers/nxp-spifi.c