Home
last modified time | relevance | path

Searched refs:nor (Results 1 – 25 of 685) sorted by relevance

12345678910>>...28

/Linux-v5.4/drivers/mtd/spi-nor/
Dspi-nor.c171 void (*default_init)(struct spi_nor *nor);
172 int (*post_bfpt)(struct spi_nor *nor,
176 void (*post_sfdp)(struct spi_nor *nor);
251 static ssize_t spi_nor_spimem_xfer_data(struct spi_nor *nor, in spi_nor_spimem_xfer_data() argument
268 if (op->data.nbytes > nor->bouncebuf_size) in spi_nor_spimem_xfer_data()
269 op->data.nbytes = nor->bouncebuf_size; in spi_nor_spimem_xfer_data()
273 op->data.buf.in = nor->bouncebuf; in spi_nor_spimem_xfer_data()
275 op->data.buf.out = nor->bouncebuf; in spi_nor_spimem_xfer_data()
276 memcpy(nor->bouncebuf, buf, in spi_nor_spimem_xfer_data()
281 ret = spi_mem_adjust_op_size(nor->spimem, op); in spi_nor_spimem_xfer_data()
[all …]
Dhisi-sfc.c99 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member
147 static int hisi_spi_nor_prep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_prep() argument
149 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_prep()
170 static void hisi_spi_nor_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in hisi_spi_nor_unprep() argument
172 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_unprep()
179 static int hisi_spi_nor_op_reg(struct spi_nor *nor, in hisi_spi_nor_op_reg() argument
182 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_op_reg()
202 static int hisi_spi_nor_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, in hisi_spi_nor_read_reg() argument
205 struct hifmc_priv *priv = nor->priv; in hisi_spi_nor_read_reg()
209 ret = hisi_spi_nor_op_reg(nor, opcode, len, FMC_OP_READ_DATA_EN); in hisi_spi_nor_read_reg()
[all …]
Dcadence-quadspi.c47 struct spi_nor nor; member
288 static unsigned int cqspi_calc_rdreg(struct spi_nor *nor, const u8 opcode) in cqspi_calc_rdreg() argument
290 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_calc_rdreg()
357 static int cqspi_command_read(struct spi_nor *nor, in cqspi_command_read() argument
361 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_command_read()
370 dev_err(nor->dev, "Invalid input argument, len %d rxbuf 0x%p\n", in cqspi_command_read()
377 rdreg = cqspi_calc_rdreg(nor, txbuf[0]); in cqspi_command_read()
406 static int cqspi_command_write(struct spi_nor *nor, const u8 opcode, in cqspi_command_write() argument
409 struct cqspi_flash_pdata *f_pdata = nor->priv; in cqspi_command_write()
418 dev_err(nor->dev, in cqspi_command_write()
[all …]
Daspeed-smc.c100 struct spi_nor nor; member
277 static void aspeed_smc_start_user(struct spi_nor *nor) in aspeed_smc_start_user() argument
279 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_start_user()
296 static void aspeed_smc_stop_user(struct spi_nor *nor) in aspeed_smc_stop_user() argument
298 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_stop_user()
308 static int aspeed_smc_prep(struct spi_nor *nor, enum spi_nor_ops ops) in aspeed_smc_prep() argument
310 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_prep()
316 static void aspeed_smc_unprep(struct spi_nor *nor, enum spi_nor_ops ops) in aspeed_smc_unprep() argument
318 struct aspeed_smc_chip *chip = nor->priv; in aspeed_smc_unprep()
323 static int aspeed_smc_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in aspeed_smc_read_reg() argument
[all …]
Dnxp-spifi.c59 struct spi_nor nor; member
126 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_read_reg() argument
128 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_read_reg()
148 static int nxp_spifi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in nxp_spifi_write_reg() argument
150 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write_reg()
171 static ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() argument
174 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_read()
186 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() argument
189 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write()
203 SPIFI_CMD_OPCODE(nor->program_opcode) | in nxp_spifi_write()
[all …]
Dmtk-quadspi.c106 struct spi_nor nor; member
115 struct spi_nor *nor = &mtk_nor->nor; in mtk_nor_set_read_mode() local
117 switch (nor->read_proto) { in mtk_nor_set_read_mode()
119 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode()
125 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode()
131 writeb(nor->read_opcode, mtk_nor->base + in mtk_nor_set_read_mode()
229 struct spi_nor *nor = &mtk_nor->nor; in mtk_nor_set_addr_width() local
233 switch (nor->addr_width) { in mtk_nor_set_addr_width()
242 nor->addr_width); in mtk_nor_set_addr_width()
263 static ssize_t mtk_nor_read(struct spi_nor *nor, loff_t from, size_t length, in mtk_nor_read() argument
[all …]
Dintel-spi.c143 struct spi_nor nor; member
538 static int intel_spi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in intel_spi_read_reg() argument
540 struct intel_spi *ispi = nor->priv; in intel_spi_read_reg()
558 static int intel_spi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in intel_spi_write_reg() argument
560 struct intel_spi *ispi = nor->priv; in intel_spi_write_reg()
606 static ssize_t intel_spi_read(struct spi_nor *nor, loff_t from, size_t len, in intel_spi_read() argument
609 struct intel_spi *ispi = nor->priv; in intel_spi_read()
621 switch (nor->read_opcode) { in intel_spi_read()
677 static ssize_t intel_spi_write(struct spi_nor *nor, loff_t to, size_t len, in intel_spi_write() argument
680 struct intel_spi *ispi = nor->priv; in intel_spi_write()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/mtd/
Dmtk-quadspi.txt4 - 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,mt7629-nor", "mediatek,mt8173-nor"
14 "mediatek,mt8173-nor"
16 - clocks: the phandle of the clocks needed by the nor controller
20 hardware needs to enabling nor flash and nor flash controller.
[all …]
Dhisilicon,fmc-spi-nor.txt4 - 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";
Dgpmc-nor.txt4 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";
Dcadence-quadspi.txt5 Generic default - "cdns,qspi-nor".
6 For TI 66AK2G SoC - "ti,k2g-qspi", "cdns,qspi-nor".
7 For TI AM654 SoC - "ti,am654-ospi", "cdns,qspi-nor".
45 compatible = "cdns,qspi-nor";
/Linux-v5.4/include/linux/mtd/
Dspi-nor.h475 int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
476 int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
477 int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
517 int (*quad_enable)(struct spi_nor *nor);
518 int (*set_4byte)(struct spi_nor *nor, bool enable);
519 u32 (*convert_addr)(struct spi_nor *nor, u32 addr);
520 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps);
591 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops);
592 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops);
593 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
[all …]
/Linux-v5.4/arch/powerpc/boot/dts/fsl/
Dmpc8536ds.dtsi13 * * 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 …]
Dp1022ds.dtsi13 * * 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";
Dmpc8544ds.dtsi13 * * 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";
Dmpc8572ds.dtsi13 * * 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";
Dt1024qds.dts13 * * 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 */
Dmpc8548cds.dtsi13 * * 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-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls1088a-qds.dts27 compatible = "jedec,spi-nor";
35 compatible = "jedec,spi-nor";
45 compatible = "jedec,spi-nor";
116 nor@0,0 {
Dfsl-ls1046a-qds.dts42 compatible = "n25q128a11", "jedec,spi-nor";
50 compatible = "sst25wf040b", "jedec,spi-nor";
60 compatible = "en25s64", "jedec,spi-nor";
142 nor@0,0 {
Dfsl-ls1012a-qds.dts67 compatible = "n25q128a11", "jedec,spi-nor";
75 compatible = "sst25wf040b", "jedec,spi-nor";
85 compatible = "en25s64", "jedec,spi-nor";
/Linux-v5.4/arch/arm/boot/dts/
Domap3430-sdp.dts54 nor@0,0 {
85 label = "bootloader-nor";
89 label = "params-nor";
93 label = "kernel-nor";
97 label = "filesystem-nor";
/Linux-v5.4/Documentation/devicetree/bindings/spi/
Dspi-fsl-qspi.txt38 compatible = "spansion,s25fl128s", "jedec,spi-nor";
54 compatible = "micron,n25q256a", "jedec,spi-nor";
62 compatible = "micron,n25q256a", "jedec,spi-nor";
/Linux-v5.4/Documentation/devicetree/bindings/mtd/partitions/
Dbrcm,bcm963xx-cfe-nor-partitions.txt12 - compatible : must be "brcm,bcm963xx-cfe-nor-partitions"
22 compatible = "brcm,bcm963xx-cfe-nor-partitions";
/Linux-v5.4/arch/arm64/boot/dts/broadcom/stingray/
Dbcm958742k.dts16 * * Neither the name of Broadcom nor the names of its
65 compatible = "jedec,spi-nor";
80 compatible = "jedec,spi-nor";

12345678910>>...28