Searched +full:xspi +full:- +full:nor (Results 1 – 4 of 4) sorted by relevance
/linux/Documentation/devicetree/bindings/spi/ |
H A D | cdns,xspi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2020-21 Cadence 4 --- 5 $id: http://devicetree.org/schemas/spi/cdns,xspi.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Cadence XSPI Controller 11 - Parshuram Thombare <pthombar@cadence.com> 14 The XSPI controller allows SPI protocol communication in 16 read/write access to slaves such as SPI-NOR flash. 21 - cdns,xspi-nor [all …]
|
/linux/drivers/mtd/spi-nor/ |
H A D | sfdp.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/mtd/spi-nor.h> 14 #define SFDP_PARAM_HEADER_ID(p) (((p)->id_msb << 8) | (p)->id_lsb) 16 (((p)->parameter_table_pointer[2] << 16) | \ 17 ((p)->parameter_table_pointer[1] << 8) | \ 18 ((p)->parameter_table_pointer[0] << 0)) 19 #define SFDP_PARAM_HEADER_PARAM_LEN(p) ((p)->length * 4) 23 #define SFDP_4BAIT_ID 0xff84 /* 4-byte Address Instruction Table */ 24 #define SFDP_PROFILE1_ID 0xff05 /* xSPI Profile 1.0 table. */ 31 * Register Map Offsets for Multi-Chip [all …]
|
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/mtd/spi-nor.h> 31 * For everything but full-chip erase; probably could be much smaller, but kept 37 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up 48 * spi_nor_get_cmd_ext() - Get the command opcode extension based on the 50 * @nor: pointer to a 'struct spi_nor' 58 static u8 spi_nor_get_cmd_ext(const struct spi_nor *nor, in spi_nor_get_cmd_ext() argument 61 switch (nor->cmd_ext_type) { in spi_nor_get_cmd_ext() 63 return ~op->cmd.opcode; in spi_nor_get_cmd_ext() 66 return op->cmd.opcode; in spi_nor_get_cmd_ext() [all …]
|
/linux/drivers/spi/ |
H A D | spi-cadence-xspi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Cadence XSPI flash controller driver 3 // Copyright (C) 2020-21 Cadence 19 #include <linux/spi/spi-mem.h> 27 #define CDNS_XSPI_NAME "cadence-xspi" 31 * configure XSPI controller pin-strap settings 157 FIELD_PREP(CDNS_XSPI_CMD_P1_R1_ADDR0, (op)->addr.val & 0xff)) 160 FIELD_PREP(CDNS_XSPI_CMD_P1_R2_ADDR1, ((op)->addr.val >> 8) & 0xFF) | \ 161 FIELD_PREP(CDNS_XSPI_CMD_P1_R2_ADDR2, ((op)->addr.val >> 16) & 0xFF) | \ 162 FIELD_PREP(CDNS_XSPI_CMD_P1_R2_ADDR3, ((op)->addr.val >> 24) & 0xFF) | \ [all …]
|