| /linux/drivers/mtd/spi-nor/ |
| H A D | sst.c | 16 static int sst26vf_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_lock() argument 21 static int sst26vf_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_unlock() argument 26 if (ofs != 0 || len != nor->params->size) in sst26vf_nor_unlock() 29 ret = spi_nor_read_cr(nor, nor->bouncebuf); in sst26vf_nor_unlock() 33 if (!(nor->bouncebuf[0] & SST26VF_CR_BPNV)) { in sst26vf_nor_unlock() 34 dev_dbg(nor->dev, "Any block has been permanently locked\n"); in sst26vf_nor_unlock() 38 return spi_nor_global_block_unlock(nor); in sst26vf_nor_unlock() 41 static int sst26vf_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len) in sst26vf_nor_is_locked() argument 52 static int sst26vf_nor_late_init(struct spi_nor *nor) in sst26vf_nor_late_init() argument 54 nor->params->locking_ops = &sst26vf_nor_locking_ops; in sst26vf_nor_late_init() [all …]
|
| H A D | Makefile | 3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o 4 spi-nor-objs += atmel.o 5 spi-nor-objs += eon.o 6 spi-nor-objs += esmt.o 7 spi-nor-objs += everspin.o 8 spi-nor-objs += gigadevice.o 9 spi-nor-objs += intel.o 10 spi-nor-objs += issi.o 11 spi-nor-objs += macronix.o 12 spi-nor-objs += micron-st.o [all …]
|
| H A D | sysfs.c | 15 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in manufacturer_show() local 17 return sysfs_emit(buf, "%s\n", nor->manufacturer->name); in manufacturer_show() 26 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in partname_show() local 28 return sysfs_emit(buf, "%s\n", nor->info->name); in partname_show() 37 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in jedec_id_show() local 38 const u8 *id = nor->info->id ? nor->info->id->bytes : nor->id; in jedec_id_show() 39 u8 id_len = nor->info->id ? nor->info->id->len : SPI_NOR_MAX_ID_LEN; in jedec_id_show() 58 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in sfdp_read() local 59 struct sfdp *sfdp = nor->sfdp; in sfdp_read() 62 return memory_read_from_buffer(buf, count, &off, nor->sfdp->dwords, in sfdp_read() [all …]
|
| H A D | debugfs.c | 78 struct spi_nor *nor = s->private; in spi_nor_params_show() local 79 struct spi_nor_flash_parameter *params = nor->params; in spi_nor_params_show() 82 const struct flash_info *info = nor->info; in spi_nor_params_show() 87 seq_printf(s, "id\t\t%*ph\n", SPI_NOR_MAX_ID_LEN, nor->id); in spi_nor_params_show() 92 seq_printf(s, "address nbytes\t%u\n", nor->addr_nbytes); in spi_nor_params_show() 95 spi_nor_print_flags(s, nor->flags, snor_f_names, sizeof(snor_f_names)); in spi_nor_params_show() 99 seq_printf(s, " read\t\t0x%02x\n", nor->read_opcode); in spi_nor_params_show() 100 seq_printf(s, " dummy cycles\t%u\n", nor->read_dummy); in spi_nor_params_show() 101 seq_printf(s, " erase\t\t0x%02x\n", nor->erase_opcode); in spi_nor_params_show() 102 seq_printf(s, " program\t0x%02x\n", nor->program_opcode); in spi_nor_params_show() [all …]
|
| H A D | issi.c | 12 is25lp256_post_bfpt_fixups(struct spi_nor *nor, in is25lp256_post_bfpt_fixups() argument 23 nor->params->addr_nbytes = 4; in is25lp256_post_bfpt_fixups() 32 static int pm25lv_nor_late_init(struct spi_nor *nor) in pm25lv_nor_late_init() argument 34 struct spi_nor_erase_map *map = &nor->params->erase_map; in pm25lv_nor_late_init() 132 static void issi_nor_default_init(struct spi_nor *nor) in issi_nor_default_init() argument 134 nor->params->quad_enable = spi_nor_sr1_bit6_quad_enable; in issi_nor_default_init()
|
| H A D | everspin.c | 37 static void everspin_nor_default_init(struct spi_nor *nor) in everspin_nor_default_init() argument 40 nor->params->hwcaps.mask &= ~SNOR_HWCAPS_READ_FAST; in everspin_nor_default_init()
|
| /linux/drivers/mtd/spi-nor/controllers/ |
| H A D | hisi-sfc.c | 99 struct spi_nor *nor[HIFMC_MAX_CHIP_NUM]; member 147 static int hisi_spi_nor_prep(struct spi_nor *nor) 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) 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 …]
|
| H A D | nxp-spifi.c | 58 struct spi_nor nor; member 125 static int nxp_spifi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, 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, const u8 *buf, in nxp_spifi_write_reg() argument 151 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write_reg() 172 static ssize_t nxp_spifi_read(struct spi_nor *nor, loff_t from, size_t len, in nxp_spifi_read() argument 175 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_read() 187 static ssize_t nxp_spifi_write(struct spi_nor *nor, loff_t to, size_t len, in nxp_spifi_write() argument 190 struct nxp_spifi *spifi = nor->priv; in nxp_spifi_write() 204 SPIFI_CMD_OPCODE(nor->program_opcode) | in nxp_spifi_write() [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/ |
| H A 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"; 21 compatible = "jedec,spi-nor";
|
| /linux/include/linux/mtd/ |
| H A D | spi-nor.h | 306 int (*prepare)(struct spi_nor *nor); 307 void (*unprepare)(struct spi_nor *nor); 308 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, size_t len); 309 int (*write_reg)(struct spi_nor *nor, u8 opcode, const u8 *buf, 312 ssize_t (*read)(struct spi_nor *nor, loff_t from, size_t len, u8 *buf); 313 ssize_t (*write)(struct spi_nor *nor, loff_t to, size_t len, 315 int (*erase)(struct spi_nor *nor, loff_t offs); 425 static inline void spi_nor_set_flash_node(struct spi_nor *nor, in spi_nor_set_flash_node() argument 428 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node() 431 static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor) in spi_nor_get_flash_node() argument [all …]
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A 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 …]
|
| H A 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";
|
| H A 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";
|
| H A 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";
|
| H A 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 */
|
| /linux/arch/arm/boot/dts/xilinx/ |
| H A D | zynq-zc770-xm012.dts | 64 label = "nor-fsbl-uboot"; 68 label = "nor-linux"; 72 label = "nor-device-tree"; 76 label = "nor-rootfs"; 80 label = "nor-bitstream";
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1088a-qds.dts | 27 compatible = "jedec,spi-nor"; 35 compatible = "jedec,spi-nor"; 45 compatible = "jedec,spi-nor"; 150 compatible = "jedec,spi-nor"; 160 compatible = "jedec,spi-nor";
|
| H A D | fsl-ls1028a-qds.dts | 152 compatible = "jedec,spi-nor"; 162 compatible = "jedec,spi-nor"; 172 compatible = "jedec,spi-nor"; 187 compatible = "jedec,spi-nor"; 197 compatible = "jedec,spi-nor"; 207 compatible = "jedec,spi-nor"; 222 compatible = "jedec,spi-nor"; 260 compatible = "jedec,spi-nor";
|
| H A D | fsl-ls2081a-rdb.dts | 33 compatible = "jedec,spi-nor"; 98 compatible = "jedec,spi-nor"; 108 compatible = "jedec,spi-nor";
|
| /linux/Documentation/driver-api/mtd/ |
| H A D | spi-nor.rst | 17 on its SFDP data. All one has to do is to specify the "jedec,spi-nor" 41 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/partname 43 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/jedec_id 45 root@1:~# cat /sys/bus/spi/devices/spi0.0/spi-nor/manufacturer 47 root@1:~# xxd -p /sys/bus/spi/devices/spi0.0/spi-nor/sfdp 69 root@1:~# sha256sum /sys/bus/spi/devices/spi0.0/spi-nor/sfdp 70 …0461876f189ac97f93e68a05fa6428c6650b3b7baf736a921e5898ed1 /sys/bus/spi/devices/spi0.0/spi-nor/sfdp 79 root@1:~# cat /sys/kernel/debug/spi-nor/spi0.0/capabilities 114 root@1:~# cat /sys/kernel/debug/spi-nor/spi0.0/params
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-spi-devices-spi-nor | 1 What: /sys/bus/spi/devices/.../spi-nor/jedec_id 12 What: /sys/bus/spi/devices/.../spi-nor/manufacturer 22 What: /sys/bus/spi/devices/.../spi-nor/partname 32 What: /sys/bus/spi/devices/.../spi-nor/sfdp
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | Makefile | 86 dtb-$(CONFIG_ARCH_K3) += k3-am6xx-phycore-disable-spi-nor.dtbo 87 dtb-$(CONFIG_ARCH_K3) += k3-am6xx-phycore-qspi-nor.dtbo 183 k3-am625-phyboard-lyra-disable-spi-nor-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ 184 k3-am6xx-phycore-disable-spi-nor.dtbo 187 k3-am625-phyboard-lyra-qspi-nor-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ 188 k3-am6xx-phycore-qspi-nor.dtbo 202 k3-am62a7-phyboard-lyra-disable-spi-nor-dtbs := k3-am62a7-phyboard-lyra-rdk.dtb \ 203 k3-am6xx-phycore-disable-spi-nor.dtbo 206 k3-am62a7-phyboard-lyra-qspi-nor-dtbs := k3-am62a7-phyboard-lyra-rdk.dtb \ 207 k3-am6xx-phycore-qspi-nor.dtbo [all …]
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | spi1-nvram.dtsi | 3 // Devicetree include for common spi-nor nvram flash. 20 compatible = "jedec,spi-nor";
|
| /linux/arch/arm64/boot/dts/mediatek/ |
| H A D | mt7981b-openwrt-one.dts | 112 compatible = "jedec,spi-nor"; 125 label = "bl2-nor"; 152 label = "fip-nor";
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun5i-a13-pocketbook-touch-lux-3.dts | 67 regulator-name = "vdd-1v8-nor-ctp"; 74 reg_1v8_nor: regulator-nor { 76 regulator-name = "vdd-nor"; 230 compatible = "macronix,mx25u4033", "jedec,spi-nor";
|