Home
last modified time | relevance | path

Searched +full:spi +full:- +full:flash (Results 1 – 25 of 1041) sorted by relevance

12345678910>>...42

/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A DKconfig1 menu "SPI Flash Support"
4 bool "Enable Driver Model for SPI flash"
7 Enable driver model for SPI flash. This SPI flash interface
9 implemented by the SPI flash uclass. There is one standard
10 SPI flash driver which knows how to probe most chips
11 supported by U-Boot. The uclass interface is defined in
14 during the transition parent. SPI and SPI flash must be
19 bool "Support sandbox SPI flash device"
23 provided instead. Drivers can be connected up to the sandbox SPI
24 bus (see CONFIG_SANDBOX_SPI) and SPI traffic will be routed to this
[all …]
H A Dspi_flash.c2 * SPI Flash Core
9 * SPDX-License-Identifier: GPL-2.0+
16 #include <spi.h>
34 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr() argument
40 ret = spi_flash_read_common(flash, &cmd, 1, rs, 1); in read_sr()
49 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr() argument
54 ret = spi_flash_read_common(flash, &cmd, 1, fsr, 1); in read_fsr()
63 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr() argument
69 ret = spi_flash_write_common(flash, &cmd, 1, &ws, 1); in write_sr()
79 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr() argument
[all …]
H A Dsf_probe.c2 * SPI flash probing
8 * SPDX-License-Identifier: GPL-2.0+
16 #include <spi.h>
22 * spi_flash_probe_slave() - Probe for a SPI flash device on a bus
24 * @flashp: Pointer to place to put flash info, which may be NULL if the
27 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave() argument
29 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave() local
33 if (!spi) { in spi_flash_probe_slave()
35 return -ENODEV; in spi_flash_probe_slave()
38 /* Claim spi bus */ in spi_flash_probe_slave()
[all …]
H A D.spi-nor-ids.o.cmd
/OK3568_Linux_fs/u-boot/drivers/spi/
H A DKconfig1 menuconfig SPI config
2 bool "SPI Support"
4 if SPI
7 bool "Enable Driver Model for SPI drivers"
10 Enable driver model for SPI. The SPI slave interface
12 the SPI uclass. Drivers provide methods to access the SPI
14 include/spi.h. The existing spi_slave structure is attached
16 typically use driver-private data instead of extending the
20 bool "SPI memory extension"
22 Enable this option if you want to enable the SPI memory extension.
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/devices/
H A Dsst25l.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Driver for SST25L SPI Flash chips
24 #include <linux/spi/spi.h>
25 #include <linux/spi/flash.h>
47 struct spi_device *spi; member
67 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument
83 err = spi_sync(flash->spi, &m); in sst25l_status()
91 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
[all …]
H A Dmchp23k256.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Driver for Microchip 23k256 SPI RAM chips
16 #include <linux/spi/flash.h>
17 #include <linux/spi/spi.h>
28 struct spi_device *spi; member
41 static void mchp23k256_addr2cmd(struct mchp23k256_flash *flash, in mchp23k256_addr2cmd() argument
51 for (i = flash->caps->addr_width; i > 0; i--, addr >>= 8) in mchp23k256_addr2cmd()
55 static int mchp23k256_cmdsz(struct mchp23k256_flash *flash) in mchp23k256_cmdsz() argument
57 return 1 + flash->caps->addr_width; in mchp23k256_cmdsz()
63 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd); in mchp23k256_write() local
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/controllers/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "Aspeed flash controllers in SPI mode"
8 in the Aspeed AST2500/AST2400 SoCs when attached to SPI NOR chips,
9 and support for the SPI flash memory controller (SPI) for
10 the host firmware. The implementation only supports SPI NOR.
13 tristate "Hisilicon FMC SPI NOR Flash Controller(SFC)"
17 This enables support for HiSilicon FMC SPI NOR flash controller.
20 tristate "NXP SPI Flash Interface (SPIFI)"
24 Enable support for the NXP LPC SPI Flash Interface controller.
26 SPIFI is a specialized controller for connecting serial SPI
[all …]
/OK3568_Linux_fs/u-boot/arch/x86/include/asm/
H A Dmrccache.h5 * SPDX-License-Identifier: GPL-2.0+
34 * mrccache_find_current() - find the latest MRC cache record
39 * @entry: Position and size of MRC cache in SPI flash
45 * mrccache_update() - update the MRC cache with a new record
50 * @sf: SPI flash to write to
51 * @entry: Position and size of MRC cache in SPI flash
53 * @return 0 if updated, -EEXIST if the record is the same as the latest
54 * record, -EINVAL if the record is not valid, other error if SPI write failed
60 * mrccache_reserve() - reserve MRC data on the stack
62 * This copies MRC data pointed by gd->arch.mrc_output to a new place on the
[all …]
/OK3568_Linux_fs/u-boot/include/
H A Dspi_flash.h2 * Common SPI flash Interface
7 * SPDX-License-Identifier: GPL-2.0
15 #include <linux/mtd/spi-nor.h>
38 * get_sw_write_prot() - Check state of software write-protect feature
40 * SPI flash chips can lock a region of the flash defined by a
44 * @dev: SPI flash device
45 * @return 0 if no region is write-protected, 1 if a region is
46 * write-protected, -ENOSYS if the driver does not implement this,
47 * other -ve value on error
53 #define sf_get_ops(dev) ((struct dm_spi_flash_ops *)(dev)->driver->ops)
[all …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # SPI driver configuration
5 menuconfig SPI config
6 bool "SPI support"
10 protocol. Chips that support SPI can have data transfer rates
12 controller and a chipselect. Most SPI slaves don't support
13 dynamic device discovery; some are even write-only or read-only.
15 SPI is widely used by microcontrollers to talk with sensors,
16 eeprom and flash memory, codecs and various other controller
17 chips, analog to digital (and d-to-a) converters, and more.
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/
H A Dnxp-spifi.txt1 * NXP SPI Flash Interface (SPIFI)
3 NXP SPIFI is a specialized SPI interface for serial Flash devices.
4 It supports one Flash device with 1-, 2- and 4-bits width in SPI
6 mode. In memory mode the Flash is accessible from the CPU as
10 - compatible : Should be "nxp,lpc1773-spifi"
11 - reg : the first contains the register location and length,
13 - reg-names: Should contain the reg names "spifi" and "flash"
14 - interrupts : Should contain the interrupt for the device
15 - clocks : The clocks needed by the SPIFI controller
16 - clock-names : Should contain the clock names "spifi" and "reg"
[all …]
H A Daspeed-smc.txt2 * Aspeed SPI Flash Memory Controller
5 three chip selects, two of which are always of SPI type and the third
6 can be SPI or NOR type flash. These bindings only describe SPI.
8 The two SPI flash memory controllers in the AST2500 each support two
12 - compatible : Should be one of
13 "aspeed,ast2400-fmc" for the AST2400 Firmware Memory Controller
14 "aspeed,ast2400-spi" for the AST2400 SPI Flash memory Controller
15 "aspeed,ast2500-fmc" for the AST2500 Firmware Memory Controller
16 "aspeed,ast2500-spi" for the AST2500 SPI flash memory controllers
18 - reg : the first contains the control register location and length,
[all …]
H A Djedec,spi-nor.txt1 * SPI NOR flash: ST M25Pxx (and similar) serial flash chips
4 - #address-cells, #size-cells : Must be present if the device has sub-nodes
6 - compatible : May include a device-specific string consisting of the
9 Must also include "jedec,spi-nor" for any SPI NOR flash that can
51 designate quirky versions of flash chips that do not support the
53 m25p05-nonjedec
54 m25p10-nonjedec
55 m25p20-nonjedec
56 m25p40-nonjedec
57 m25p80-nonjedec
[all …]
/OK3568_Linux_fs/u-boot/drivers/mtd/
H A DKconfig11 flash, RAM and similar chips, often used for solid state file
21 bool "support for nand & spi nand & spi nor write operations"
25 Enable write access to nand & spi nand & spi nor
28 bool "Enable parallel NOR flash support"
30 Enable support for parallel NOR flash.
39 bool "Enable CFI Flash driver"
41 The Common Flash Interface specification was developed by Intel,
42 AMD and other flash manufactures. It provides a universal method
43 for probing the capabilities of flash devices. If you wish to
44 support any device that is CFI-compliant, you need to enable this
[all …]
/OK3568_Linux_fs/u-boot/doc/SPI/
H A Dstatus.txt1 Status on SPI subsystem:
4 SPI COMMAND (common/cmd_sf, cmd_spi):
5 -
7 SPI FLASH (drivers/mtd/spi):
8 - sf_probe.c: SPI flash probing code.
9 - sf_ops.c: SPI flash operations code.
10 - sf.c: SPI flash interface, which interacts controller driver.
11 - Bank Address Register (Accessing flashes > 16Mbytes in 3-byte addressing)
12 - Added memory_mapped support for read operations.
13 - Common probe support for all supported flash vendors except, ramtron.
[all …]
H A DREADME.dual-flash1 SPI/QSPI Dual flash connection modes:
4 This describes how SPI/QSPI flash memories are connected to a given
7 Current spi_flash framework supports, single flash memory connected
12 "dual_flash" from include/spi.h describes these types of connection mode
15 --------------------
17 - single spi flash memory connected with single chip select line.
19 +------------+ CS +---------------+
20 | |----------------------->| |
21 | Controller | I0[3:0] | Flash memory |
22 | SPI/QSPI |<======================>| (SPI/QSPI) |
[all …]
/OK3568_Linux_fs/u-boot/doc/
H A DREADME.at914 - I. Board mapping & boot media
5 - II. NAND partition table
6 - III. watchdog support
9 ------------------------------------------------------------------------------
11 ------------------------------------------------------------------------------
14 0x20000000 - 23FFFFFF SDRAM (64 MB)
15 0xC0000000 - Cxxxxxxx Atmel Dataflash card (J13)
16 0xD0000000 - D07FFFFF Soldered Atmel Dataflash (AT45DB642)
20 U-Boot environment variables can be stored at different places:
21 - Dataflash on SPI chip select 1 (default)
[all …]
/OK3568_Linux_fs/kernel/drivers/rkflash/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 tristate "Rockchip Flash Devices Support"
11 This enables support for Rockchip Flash Devices including Nandc Slc
12 Nand, SFC Spi Nand and SFC Spi Nor.
20 comment "Rockchip Flash Devices"
29 Say Y when you have a board with Slc Nand Flash register as block device.
40 Say Y when you have a board with Slc Nand Flash supported by Rockchip
44 tristate "Rockchip SFC Spi Nand Devices support"
48 This enables support for Rockchip SFC Spi Nand Devices.
52 Say Y when you have a board with Spi Nand Flash supported by Rockchip
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/mtd/
H A Dintel-spi.rst2 Upgrading BIOS using intel-spi
5 Many Intel CPUs like Baytrail and Braswell include SPI serial flash host
7 Since contents of the SPI serial flash is crucial for machine to function,
11 Not all manufacturers protect the SPI serial flash, mainly because it
14 The intel-spi driver makes it possible to read and write the SPI serial
15 flash, if certain protection bits are not set and locked. If it finds
16 any of them set, the whole MTD device is made read-only to prevent
17 partial overwrites. By default the driver exposes SPI serial flash
18 contents as read-only but it can be changed from kernel command line,
19 passing "intel-spi.writeable=1".
[all …]
/OK3568_Linux_fs/u-boot/drivers/rkflash/
H A DKconfig4 # SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 bool "Rockchip Flash Devices support"
12 This enables support for Rockchip Flash Devices including Nandc Slc
13 Nand, SFC SPI Nand and SFC SPI Nor.
21 comment "Rockchip Flash Devices"
32 Say Y when you have a board with Slc Nand Flash supported by Rockchip
36 bool "Rockchip SFC SPI Nand Devices support"
40 This enables support for Rockchip SFC SPI Nand Devices.
44 Say Y when you have a board with SPI Nand Flash supported by Rockchip
45 Serial Flash Controller(SFC).
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/
H A Dcore.h1 /* SPDX-License-Identifier: GPL-2.0 */
48 /* Dual SPI */
54 /* Quad SPI */
60 /* Octal SPI */
72 /* Quad SPI */
77 /* Octal SPI */
86 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
92 * @opcode: the SPI command op code to erase the sector/block.
93 * @idx: Erase Type index as sorted in the Basic Flash Parameter
107 * struct spi_nor_erase_command - Used for non-uniform erases
[all …]
/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_spi.c9 * SPDX-License-Identifier: GPL-2.0+
13 #include <spi.h>
26 struct spi_flash *flash, in spi_load_image_os() argument
32 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, 0x40, in spi_load_image_os()
36 return -1; in spi_load_image_os()
42 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, in spi_load_image_os()
43 spl_image->size, (void *)spl_image->load_addr); in spi_load_image_os()
46 spi_flash_read(flash, CONFIG_SYS_SPI_ARGS_OFFS, in spi_load_image_os()
57 struct spi_flash *flash = load->dev; in spl_spi_fit_read() local
60 ret = spi_flash_read(flash, sector, count, buf); in spl_spi_fit_read()
[all …]
/OK3568_Linux_fs/u-boot/spl/drivers/mtd/spi/
H A D.spi-nor-ids.o.cmd
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/memory-controllers/
H A Drenesas,rpc-if.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas Reduced Pin Count Interface (RPC-IF)
10 - Sergei Shtylyov <sergei.shtylyov@gmail.com>
13 Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to
16 The flash chip itself should be represented by a subnode of the RPC-IF node.
17 The flash interface is selected based on the "compatible" property of this
19 - if it contains "jedec,spi-nor", then SPI is used;
[all …]

12345678910>>...42