Home
last modified time | relevance | path

Searched refs:spi_nor (Results 1 – 23 of 23) sorted by relevance

/rk3399_rockchip-uboot/include/linux/mtd/
H A Dspi-nor.h262 #define spi_flash spi_nor
303 struct spi_nor { struct
329 int (*prepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
330 void (*unprepare)(struct spi_nor *nor, enum spi_nor_ops ops); argument
331 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
332 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); argument
334 ssize_t (*read)(struct spi_nor *nor, loff_t from, argument
336 ssize_t (*write)(struct spi_nor *nor, loff_t to, argument
338 int (*erase)(struct spi_nor *nor, loff_t offs); argument
340 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); argument
[all …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi-nor-tiny.c37 static int spi_nor_read_write_reg(struct spi_nor *nor, struct spi_mem_op in spi_nor_read_write_reg()
47 static int spi_nor_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len) in spi_nor_read_reg()
63 static int spi_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in spi_nor_write_reg()
73 static ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, in spi_nor_read_data()
117 static int read_cr(struct spi_nor *nor) in read_cr()
136 static inline int write_sr(struct spi_nor *nor, u8 val) in write_sr()
146 static inline int write_enable(struct spi_nor *nor) in write_enable()
154 static inline int write_disable(struct spi_nor *nor) in write_disable()
159 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) in mtd_to_spi_nor()
191 static void spi_nor_set_4byte_opcodes(struct spi_nor *nor, in spi_nor_set_4byte_opcodes()
[all …]
H A Dspi-nor-core.c37 static int spi_nor_read_write_reg(struct spi_nor *nor, struct spi_mem_op in spi_nor_read_write_reg()
47 static int spi_nor_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len) in spi_nor_read_reg()
63 static int spi_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in spi_nor_write_reg()
73 static ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, in spi_nor_read_data()
111 static ssize_t spi_nor_write_data(struct spi_nor *nor, loff_t to, size_t len, in spi_nor_write_data()
146 static int read_sr(struct spi_nor *nor) in read_sr()
165 static int read_fsr(struct spi_nor *nor) in read_fsr()
185 static int read_cr(struct spi_nor *nor) in read_cr()
204 static int write_sr(struct spi_nor *nor, u8 val) in write_sr()
215 static int write_cr(struct spi_nor *nor, u8 val) in write_cr()
[all …]
/rk3399_rockchip-uboot/arch/arm/dts/
H A Drv1126-bat-evb.dts17 u-boot,spl-boot-order = &spi_nor, &emmc;
91 &spi_nor {
H A Drv1106b-evb2.dts22 u-boot,spl-boot-order = &spi_nor, &emmc;
78 &spi_nor {
H A Drk3506-evb-tb.dts11 u-boot,spl-boot-order = &spi_nand, &spi_nor, &mmc;
H A Drv1103b-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc0, &spi_nand, &spi_nor, &emmc;
109 spi_nor: flash@1 { label
H A Drv1106-evb2.dts18 u-boot,spl-boot-order = &spi_nor, &emmc;
125 &spi_nor {
H A Drk1808-u-boot.dtsi24 u-boot,spl-boot-order = &spi_nand, &spi_nor, &emmc;
79 spi_nor: flash@1 { label
H A Drk3506-u-boot.dtsi14 u-boot,spl-boot-order = &mmc, &spi_nand, &spi_nor;
128 spi_nor: flash@1 { label
H A Drk3308-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc, &spi_nand, &spi_nor, &nandc, &emmc;
113 spi_nor: flash@1 { label
H A Drk3562-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc0, &sdhci, &spi_nand, &spi_nor;
149 spi_nor: flash@1 { label
H A Drv1106-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc, &spi_nor, &spi_nand, &emmc;
190 spi_nor: flash@1 { label
H A Drk3528-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc, &sdhci, &spi_nand, &spi_nor;
92 spi_nor: flash@1 { label
H A Drk3576-u-boot.dtsi17 u-boot,spl-boot-order = &sdmmc, &spi_nand, &spi_nor, "same-as-spl";
123 spi_nor: flash@1 { label
H A Drv1126b-u-boot.dtsi17 u-boot,spl-boot-order = &sdmmc0, &spi_nand, &spi_nor, &emmc;
143 spi_nor: flash@1 { label
H A Drk3588-u-boot.dtsi17 u-boot,spl-boot-order = &sdmmc, &sdhci, &spi_nand, &spi_nor;
150 spi_nor: flash@1 { label
H A Drv1126-u-boot.dtsi15 u-boot,spl-boot-order = &sdmmc, &spi_nand, &spi_nor, &nandc, &emmc;
132 spi_nor: flash@1 { label
H A Dkeystone-k2g-evm.dts47 spi_nor: flash@0 { label
H A Drk3576-tb.dts69 spi_nor: flash@1 { label
H A Dpx30-u-boot.dtsi136 spi_nor: flash@1 { label
H A Drk3568-u-boot.dtsi18 u-boot,spl-boot-order = &sdmmc0, &sdhci, &nandc0, &spi_nand, &spi_nor;
125 spi_nor: flash@1 { label
/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtd_blk.c549 struct spi_nor *nor = (struct spi_nor *)mtd->priv; in mtd_dread()