/Linux-v4.19/drivers/mtd/spi-nor/ |
D | spi-nor.c | 93 int (*quad_enable)(struct spi_nor *nor); 105 static int read_sr(struct spi_nor *nor) in read_sr() argument 110 ret = nor->read_reg(nor, SPINOR_OP_RDSR, &val, 1); in read_sr() 124 static int read_fsr(struct spi_nor *nor) in read_fsr() argument 129 ret = nor->read_reg(nor, SPINOR_OP_RDFSR, &val, 1); in read_fsr() 143 static int read_cr(struct spi_nor *nor) in read_cr() argument 148 ret = nor->read_reg(nor, SPINOR_OP_RDCR, &val, 1); in read_cr() 150 dev_err(nor->dev, "error %d reading CR\n", ret); in read_cr() 161 static inline int write_sr(struct spi_nor *nor, u8 val) in write_sr() argument 163 nor->cmd_buf[0] = val; in write_sr() [all …]
|
D | cadence-quadspi.c | 50 struct spi_nor nor; member 295 static unsigned int cqspi_calc_rdreg(struct spi_nor *nor, const u8 opcode) in cqspi_calc_rdreg() argument 297 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_calc_rdreg() 364 static int cqspi_command_read(struct spi_nor *nor, in cqspi_command_read() argument 368 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_command_read() 377 dev_err(nor->dev, "Invalid input argument, len %d rxbuf 0x%p\n", in cqspi_command_read() 384 rdreg = cqspi_calc_rdreg(nor, txbuf[0]); in cqspi_command_read() 413 static int cqspi_command_write(struct spi_nor *nor, const u8 opcode, in cqspi_command_write() argument 416 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_command_write() 424 dev_err(nor->dev, in cqspi_command_write() [all …]
|
D | hisi-sfc.c | 111 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member 159 static int hisi_spi_nor_prep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_prep() argument 161 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_prep() 182 static void hisi_spi_nor_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_unprep() argument 184 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_unprep() 191 static int hisi_spi_nor_op_reg(struct spi_nor *nor, in hisi_spi_nor_op_reg() argument 194 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_op_reg() 214 static int hisi_spi_nor_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in hisi_spi_nor_read_reg() argument 217 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_read_reg() 221 ret = hisi_spi_nor_op_reg(nor, opcode, len, FMC_OP_READ_DATA_EN); in hisi_spi_nor_read_reg() [all …]
|
D | aspeed-smc.c | 104 struct spi_nor nor; member 281 static void aspeed_smc_start_user(struct spi_nor *nor) in aspeed_smc_start_user() argument 283 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_start_user() 300 static void aspeed_smc_stop_user(struct spi_nor *nor) in aspeed_smc_stop_user() argument 302 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_stop_user() 312 static int aspeed_smc_prep(struct spi_nor *nor, enum spi_nor_ops ops) in aspeed_smc_prep() argument 314 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_prep() 320 static void aspeed_smc_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in aspeed_smc_unprep() argument 322 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_unprep() 327 static int aspeed_smc_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in aspeed_smc_read_reg() argument [all …]
|
D | nxp-spifi.c | 63 struct spi_nor nor; member 130 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_read_reg() argument 132 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_read_reg() 152 static int nxp_spifi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_write_reg() argument 154 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write_reg() 175 static ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() argument 178 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_read() 190 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() argument 193 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write() 207 SPIFI_CMD_OPCODE(nor->program_opcode) | in nxp_spifi_write() [all …]
|
D | stm32-quadspi.c | 134 struct spi_nor nor; member 203 static void stm32_qspi_set_framemode(struct spi_nor *nor, in stm32_qspi_set_framemode() argument 211 switch (nor->read_proto) { in stm32_qspi_set_framemode() 351 static int stm32_qspi_read_reg(struct spi_nor *nor, in stm32_qspi_read_reg() argument 354 struct stm32_qspi_flash *flash = nor->priv; in stm32_qspi_read_reg() 367 stm32_qspi_set_framemode(nor, &cmd, false); in stm32_qspi_read_reg() 372 static int stm32_qspi_write_reg(struct spi_nor *nor, u8 opcode, in stm32_qspi_write_reg() argument 375 struct stm32_qspi_flash *flash = nor->priv; in stm32_qspi_write_reg() 388 stm32_qspi_set_framemode(nor, &cmd, false); in stm32_qspi_write_reg() 393 static ssize_t stm32_qspi_read(struct spi_nor *nor, loff_t from, size_t len, in stm32_qspi_read() argument [all …]
|
D | mtk-quadspi.c | 114 struct spi_nor nor; member 123 struct spi_nor *nor = &mtk_nor->nor; in mtk_nor_set_read_mode() local 125 switch (nor->read_proto) { in mtk_nor_set_read_mode() 127 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode() 133 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode() 139 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode() 237 struct spi_nor *nor = &mtk_nor->nor; in mtk_nor_set_addr_width() local 241 switch (nor->addr_width) { in mtk_nor_set_addr_width() 250 nor->addr_width); in mtk_nor_set_addr_width() 271 static ssize_t mtk_nor_read(struct spi_nor *nor, loff_t from, size_t length, in mtk_nor_read() argument [all …]
|
D | atmel-quadspi.c | 161 struct spi_nor nor; member 457 static int atmel_qspi_read_reg(struct spi_nor *nor, u8 opcode, in atmel_qspi_read_reg() argument 460 struct atmel_qspi *aq = nor->priv; in atmel_qspi_read_reg() 470 nor->reg_proto); in atmel_qspi_read_reg() 473 static int atmel_qspi_write_reg(struct spi_nor *nor, u8 opcode, in atmel_qspi_write_reg() argument 476 struct atmel_qspi *aq = nor->priv; in atmel_qspi_write_reg() 486 nor->reg_proto); in atmel_qspi_write_reg() 489 static ssize_t atmel_qspi_write(struct spi_nor *nor, loff_t to, size_t len, in atmel_qspi_write() argument 492 struct atmel_qspi *aq = nor->priv; in atmel_qspi_write() 498 cmd.enable.bits.address = nor->addr_width; in atmel_qspi_write() [all …]
|
D | fsl-quadspi.c | 282 struct spi_nor nor[FSL_QSPI_MAX_CHIP]; member 388 struct spi_nor *nor = &q->nor[0]; in fsl_qspi_init_lut() local 389 u8 addrlen = (nor->addr_width == 3) ? ADDR24BIT : ADDR32BIT; in fsl_qspi_init_lut() 390 u8 read_op = nor->read_opcode; in fsl_qspi_init_lut() 391 u8 read_dm = nor->read_dummy; in fsl_qspi_init_lut() 416 qspi_writel(q, LUT0(CMD, PAD1, nor->program_opcode) | in fsl_qspi_init_lut() 431 qspi_writel(q, LUT0(CMD, PAD1, nor->erase_opcode) | in fsl_qspi_init_lut() 505 if (cmd == q->nor[0].erase_opcode) in fsl_qspi_get_seqid() 615 static ssize_t fsl_qspi_nor_write(struct fsl_qspi *q, struct spi_nor *nor, in fsl_qspi_nor_write() argument 698 seqid = fsl_qspi_get_seqid(q, q->nor[0].read_opcode); in fsl_qspi_init_ahb_read() [all …]
|
D | intel-spi.c | 146 struct spi_nor nor; member 541 static int intel_spi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in intel_spi_read_reg() argument 543 struct intel_spi *ispi = nor->priv; in intel_spi_read_reg() 561 static int intel_spi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in intel_spi_write_reg() argument 563 struct intel_spi *ispi = nor->priv; in intel_spi_write_reg() 609 static ssize_t intel_spi_read(struct spi_nor *nor, loff_t from, size_t len, in intel_spi_read() argument 612 struct intel_spi *ispi = nor->priv; in intel_spi_read() 624 switch (nor->read_opcode) { in intel_spi_read() 674 static ssize_t intel_spi_write(struct spi_nor *nor, loff_t to, size_t len, in intel_spi_write() argument 677 struct intel_spi *ispi = nor->priv; in intel_spi_write() [all …]
|
/Linux-v4.19/drivers/mtd/devices/ |
D | m25p80.c | 36 static int m25p80_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len) in m25p80_read_reg() argument 38 struct m25p *flash = nor->priv; in m25p80_read_reg() 63 static int m25p80_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in m25p80_write_reg() argument 65 struct m25p *flash = nor->priv; in m25p80_write_reg() 84 static ssize_t m25p80_write(struct spi_nor *nor, loff_t to, size_t len, in m25p80_write() argument 87 struct m25p *flash = nor->priv; in m25p80_write() 89 SPI_MEM_OP(SPI_MEM_OP_CMD(nor->program_opcode, 1), in m25p80_write() 90 SPI_MEM_OP_ADDR(nor->addr_width, to, 1), in m25p80_write() 97 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->write_proto); in m25p80_write() 98 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->write_proto); in m25p80_write() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/mtd/ |
D | mtk-quadspi.txt | 4 - compatible: For mt8173, compatible should be "mediatek,mt8173-nor", 7 string and "mediatek,mt8173-nor". 9 "mediatek,mt2701-nor", "mediatek,mt8173-nor" 10 "mediatek,mt2712-nor", "mediatek,mt8173-nor" 11 "mediatek,mt7622-nor", "mediatek,mt8173-nor" 12 "mediatek,mt7623-nor", "mediatek,mt8173-nor" 13 "mediatek,mt8173-nor" 15 - clocks: the phandle of the clocks needed by the nor controller 19 hardware needs to enabling nor flash and nor flash controller. 25 compatible property. Also see jedec,spi-nor.txt. [all …]
|
D | hisilicon,fmc-spi-nor.txt | 4 - compatible : Should be "hisilicon,fmc-spi-nor" and one of the following strings: 5 "hisilicon,hi3519-spi-nor" 10 - clocks : handle to spi-nor flash controller clock. 13 spi-nor-controller@10000000 { 14 compatible = "hisilicon,hi3519-spi-nor", "hisilicon,fmc-spi-nor"; 20 spi-nor@0 { 21 compatible = "jedec,spi-nor";
|
D | gpmc-nor.txt | 4 child nodes of the GPMC controller with a name of "nor". 51 nor@0,0 { 82 label = "bootloader-nor"; 86 label = "params-nor"; 90 label = "kernel-nor"; 94 label = "filesystem-nor";
|
/Linux-v4.19/include/linux/mtd/ |
D | spi-nor.h | 301 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); 302 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); 303 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); 304 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); 306 ssize_t (*read)(struct spi_nor *nor, loff_t from, 308 ssize_t (*write)(struct spi_nor *nor, loff_t to, 310 int (*erase)(struct spi_nor *nor, loff_t offs); 312 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); 313 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); 314 int (*flash_is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); [all …]
|
/Linux-v4.19/arch/powerpc/boot/dts/fsl/ |
D | mpc8536ds.dtsi | 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 46 label = "ramdisk-nor"; 51 label = "diagnostic-nor"; 57 label = "dink-nor"; 63 label = "kernel-nor"; 68 label = "fs-nor"; 73 label = "dtb-nor"; 78 label = "u-boot-nor"; 145 compatible = "spansion,s25sl12801", "jedec,spi-nor"; [all …]
|
D | p1022ds.dtsi | 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 46 label = "ramdisk-nor"; 52 label = "diagnostic-nor"; 58 label = "dink-nor"; 64 label = "kernel-nor"; 70 label = "jffs2-nor"; 75 label = "dtb-nor"; 81 label = "u-boot-nor"; 163 compatible = "spansion,s25sl12801", "jedec,spi-nor";
|
D | mpc8544ds.dtsi | 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 46 label = "dtb-nor"; 51 label = "diagnostic-nor"; 57 label = "dink-nor"; 63 label = "kernel-nor"; 68 label = "u-boot-nor";
|
D | mpc8572ds.dtsi | 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 46 label = "ramdisk-nor"; 51 label = "diagnostic-nor"; 57 label = "dink-nor"; 63 label = "kernel-nor"; 68 label = "fs-nor"; 73 label = "dtb-nor"; 78 label = "env-nor"; 84 label = "u-boot-nor";
|
D | t1024qds.dts | 13 * * Neither the name of Freescale Semiconductor nor the 71 nor@0,0 { 119 compatible = "micron,n25q128a11", "jedec,spi-nor"; /* 16MB */ 127 compatible = "sst,sst25wf040", "jedec,spi-nor"; /* 512KB */ 135 compatible = "eon,en25s64", "jedec,spi-nor"; /* 8MB */
|
D | mpc8548cds.dtsi | 13 * * Neither the name of Freescale Semiconductor nor the 36 nor@0,0 { 46 label = "ramdisk-nor"; 51 label = "kernel-nor"; 56 label = "dtb-nor"; 61 label = "env-nor"; 67 label = "u-boot-nor";
|
/Linux-v4.19/arch/arm64/boot/dts/freescale/ |
D | fsl-ls1046a-qds.dts | 41 compatible = "n25q128a11", "jedec,spi-nor"; 49 compatible = "sst25wf040b", "jedec,spi-nor"; 59 compatible = "en25s64", "jedec,spi-nor"; 141 nor@0,0 {
|
D | fsl-ls1012a-qds.dts | 67 compatible = "n25q128a11", "jedec,spi-nor"; 75 compatible = "sst25wf040b", "jedec,spi-nor"; 85 compatible = "en25s64", "jedec,spi-nor";
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | omap3430-sdp.dts | 57 nor@0,0 { 88 label = "bootloader-nor"; 92 label = "params-nor"; 96 label = "kernel-nor"; 100 label = "filesystem-nor";
|
/Linux-v4.19/arch/arm64/boot/dts/broadcom/stingray/ |
D | bcm958742k.dts | 16 * * Neither the name of Broadcom nor the names of its 65 compatible = "jedec,spi-nor"; 80 compatible = "jedec,spi-nor";
|