/Zephyr-latest/drivers/flash/ |
D | jesd216.c | 27 const struct jesd216_bfp *bfp, in jesd216_bfp_read_support() argument 36 && (sys_le32_to_cpu(bfp->dw10[5]) & BIT(9))) { in jesd216_bfp_read_support() 42 && (sys_le32_to_cpu(bfp->dw10[9]) & BIT(9))) { in jesd216_bfp_read_support() 50 if (sys_le32_to_cpu(bfp->dw1) & BIT(16)) { in jesd216_bfp_read_support() 51 uint32_t dw4 = sys_le32_to_cpu(bfp->dw4); in jesd216_bfp_read_support() 57 if (sys_le32_to_cpu(bfp->dw1) & BIT(22)) { in jesd216_bfp_read_support() 58 uint32_t dw3 = sys_le32_to_cpu(bfp->dw3); in jesd216_bfp_read_support() 65 uint32_t dw17 = sys_le32_to_cpu(bfp->dw10[7]); in jesd216_bfp_read_support() 73 if (sys_le32_to_cpu(bfp->dw1) & BIT(20)) { in jesd216_bfp_read_support() 74 uint32_t dw4 = sys_le32_to_cpu(bfp->dw4); in jesd216_bfp_read_support() [all …]
|
D | jesd216.h | 172 /* Data can be extracted from the BFP words using these APIs: 193 /* Extract the supported address bytes from BFP DW1. */ 203 /* Extract the density of the chip in bits from BFP DW2. */ 266 * @param php pointer to the BFP header. 268 * @param bfp pointer to the BFP table. 280 * BFP). 285 const struct jesd216_bfp *bfp, 305 /* Extract a supported erase size and command from BFP DW8 or DW9. 307 * @param bfp pointer to the parameter table. 317 int jesd216_bfp_erase(const struct jesd216_bfp *bfp, [all …]
|
D | flash_andes_qspi.c | 58 const struct jesd216_bfp *bfp; member 507 const struct jesd216_bfp *bfp) in spi_nor_process_bfp() argument 511 const size_t flash_size = jesd216_bfp_density(bfp) / 8U; in spi_nor_process_bfp() 520 if (jesd216_bfp_erase(bfp, ti, etp) == 0) { in spi_nor_process_bfp() 527 dev_data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 532 LOG_ERR("BFP flash size mismatch with devicetree"); in spi_nor_process_bfp() 548 /* We only process BFP so use one parameter block */ in spi_nor_process_sfdp() 584 struct jesd216_bfp bfp; in spi_nor_process_sfdp() member 586 const struct jesd216_bfp *bfp = &u_param.bfp; in spi_nor_process_sfdp() local 595 ret = spi_nor_process_bfp(dev, php, bfp); in spi_nor_process_sfdp() [all …]
|
D | spi_nor.c | 101 /* Length of BFP structure, in 32-bit words. */ 104 /* Pointer to the BFP table as read from the device 105 * (little-endian stored words), from sfdp-bfp property 107 const struct jesd216_bfp *bfp; member 1113 * DW16 of SFDP BFP. A value of all zeros or all ones is interpreted 1170 const struct jesd216_bfp *bfp) in spi_nor_process_bfp() argument 1174 const size_t flash_size = jesd216_bfp_density(bfp) / 8U; in spi_nor_process_bfp() 1186 if (jesd216_bfp_erase(bfp, ti, etp) == 0) { in spi_nor_process_bfp() 1192 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 1197 LOG_ERR("BFP flash size mismatch with devicetree"); in spi_nor_process_bfp() [all …]
|
D | Kconfig.andes | 30 sfdp-bfp property in devicetree. The size and jedec-id properties are
|
D | flash_stm32_qspi.c | 1156 const struct jesd216_bfp *bfp) in spi_nor_process_bfp() argument 1162 const size_t flash_size = (jesd216_bfp_density(bfp) / 8U) << STM32_QSPI_DOUBLE_FLASH; in spi_nor_process_bfp() 1176 if (jesd216_bfp_erase(bfp, ti, etp) == 0) { in spi_nor_process_bfp() 1183 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 1188 addr_mode = jesd216_bfp_addrbytes(bfp); in spi_nor_process_bfp() 1192 if (jesd216_bfp_decode_dw16(php, bfp, &dw16) == 0) { in spi_nor_process_bfp() 1232 rc = jesd216_bfp_read_support(php, bfp, supported_modes[i], &res); in spi_nor_process_bfp() 1256 rc = jesd216_bfp_decode_dw15(php, bfp, &dw15); in spi_nor_process_bfp() 1469 /* We only process BFP so use one parameter block */ in flash_stm32_qspi_init() 1505 struct jesd216_bfp bfp; in flash_stm32_qspi_init() member [all …]
|
D | Kconfig.nor | 35 sfdp-bfp property in devicetree. The size and jedec-id properties are
|
D | flash_mcux_flexspi_nor.c | 741 * @param bfp: basic flash parameters for flash 747 struct jesd216_bfp *bfp, in flash_flexspi_nor_config_flash() argument 759 ret = jesd216_bfp_decode_dw14(&header->phdr[0], bfp, &dw14); in flash_flexspi_nor_config_flash() 778 addr_width = jesd216_bfp_addrbytes(bfp) == in flash_flexspi_nor_config_flash() 782 ret = jesd216_bfp_decode_dw16(&header->phdr[0], bfp, &dw16); in flash_flexspi_nor_config_flash() 804 if (jesd216_bfp_read_support(&header->phdr[0], bfp, in flash_flexspi_nor_config_flash() 829 ret = jesd216_bfp_decode_dw15(&header->phdr[0], bfp, &dw15); in flash_flexspi_nor_config_flash() 846 } else if (jesd216_bfp_read_support(&header->phdr[0], bfp, in flash_flexspi_nor_config_flash() 1144 struct jesd216_bfp *bfp = (struct jesd216_bfp *)param_buf; in flash_flexspi_nor_probe() local 1223 ret = flash_flexspi_nor_config_flash(data, header, bfp, in flash_flexspi_nor_probe()
|
D | flash_stm32_ospi.c | 494 /* There is a sfdp-bfp property in the deviceTree : do not read the flash */ in ospi_read_sfdp() 509 /* Get the SFDP from the octoFlash (no sfdp-bfp table in the DeviceTree) */ in ospi_read_sfdp() 1046 /* use SFDP:BFP read instruction */ in stm32_ospi_set_memorymap() 1406 /* use SFDP:BFP read instruction */ in flash_stm32_ospi_read() 1972 const struct jesd216_bfp *bfp) in spi_nor_process_bfp() argument 1983 const size_t flash_size = jesd216_bfp_density(bfp) / 8U; in spi_nor_process_bfp() 1998 if (jesd216_bfp_erase(bfp, idx, etp) == 0) { in spi_nor_process_bfp() 2005 spi_nor_process_bfp_addrbytes(dev, jesd216_bfp_addrbytes(bfp)); in spi_nor_process_bfp() 2041 if (jesd216_bfp_read_support(php, bfp, supported_read_modes[idx], in spi_nor_process_bfp() 2068 if (jesd216_bfp_decode_dw15(php, bfp, &dw15) < 0) { in spi_nor_process_bfp() [all …]
|
D | flash_stm32_xspi.c | 356 /* Get the SFDP from the external Flash (no sfdp-bfp table in the DeviceTree) */ in xspi_read_sfdp() 1240 /* use SFDP:BFP read instruction */ in flash_stm32_xspi_read() 1809 const struct jesd216_bfp *bfp) in spi_nor_process_bfp() argument 1820 const size_t flash_size = jesd216_bfp_density(bfp) / 8U; in spi_nor_process_bfp() 1835 if (jesd216_bfp_erase(bfp, idx, etp) == 0) { in spi_nor_process_bfp() 1842 spi_nor_process_bfp_addrbytes(dev, jesd216_bfp_addrbytes(bfp)); in spi_nor_process_bfp() 1878 if (jesd216_bfp_read_support(php, bfp, supported_read_modes[idx], in spi_nor_process_bfp() 1905 if (jesd216_bfp_decode_dw15(php, bfp, &dw15) < 0) { in spi_nor_process_bfp() 1924 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 2238 /* We only process BFP so use one parameter block */ in flash_stm32_xspi_init() [all …]
|
/Zephyr-latest/samples/drivers/jesd216/src/ |
D | main.c | 35 const struct jesd216_bfp *bfp); 52 const struct jesd216_bfp *bfp) in summarize_dw1() argument 54 uint32_t dw1 = sys_le32_to_cpu(bfp->dw1); in summarize_dw1() 84 int rc = jesd216_bfp_read_support(php, bfp, in summarize_dw1() 99 const struct jesd216_bfp *bfp) in summarize_dw2() argument 101 printf("Flash density: %u bytes\n", (uint32_t)(jesd216_bfp_density(bfp) / 8)); in summarize_dw2() 105 const struct jesd216_bfp *bfp) in summarize_dw89() argument 112 if (jesd216_bfp_erase(bfp, idx, &etype) == 0) { in summarize_dw89() 113 typ_max_mul = jesd216_bfp_erase_type_times(php, bfp, in summarize_dw89() 128 const struct jesd216_bfp *bfp) in summarize_dw11() argument [all …]
|
/Zephyr-latest/dts/bindings/mtd/ |
D | jedec,jesd216.yaml | 9 # This allows encoding the entire BFP block in devicetree to avoid 13 # Alternatively the BFP block can be absent, but critical fields like 29 sfdp-bfp: 49 Quad Enable Requirements value from JESD216 BFP DW15. 59 Enter 4-Byte Addressing value from JESD216 BFP DW16 62 from the sfdp-bfp property (CONFIG_SPI_NOR_SFDP_DEVICETREE) or to read 75 Number of bytes in a page from JESD216 BFP DW11 79 from the sfdp-bfp property (CONFIG_SPI_NOR_SFDP_DEVICETREE) or
|
/Zephyr-latest/samples/drivers/jesd216/ |
D | README.rst | 34 Summary of BFP content: 55 sfdp-bfp = [
|
D | sample.yaml | 12 - "sfdp-bfp ="
|
/Zephyr-latest/boards/nordic/nrf9161dk/ |
D | nrf9161dk_nrf9161_common_0_7_0.dtsi | 17 sfdp-bfp = [
|
/Zephyr-latest/tests/drivers/flash/common/boards/ |
D | nrf52840dk_mx25r_high_perf.overlay | 17 sfdp-bfp = [
|
D | nrf52840dk_spi_nor_wp_hold.overlay | 50 sfdp-bfp = [
|
D | nrf52840dk_spi_nor.overlay | 48 sfdp-bfp = [
|
D | nrf52840dk_mx25l51245g.overlay | 51 sfdp-bfp = [
|
/Zephyr-latest/boards/nordic/nrf9160dk/ |
D | nrf9160dk_nrf9160_common_0_14_0.dtsi | 48 sfdp-bfp = [
|
/Zephyr-latest/samples/subsys/fs/littlefs/boards/ |
D | nrf52840dk_nrf52840_spi.overlay | 32 sfdp-bfp = [
|
/Zephyr-latest/boards/nordic/nrf54l15dk/ |
D | nrf54l_05_10_15_cpuapp_common.dtsi | 107 sfdp-bfp = [
|
/Zephyr-latest/boards/seeed/xiao_ble/ |
D | xiao_ble_common.dtsi | 125 sfdp-bfp = [
|
/Zephyr-latest/boards/silabs/dev_kits/sltb010a/ |
D | thunderboard.dtsi | 88 sfdp-bfp = [
|
/Zephyr-latest/boards/silabs/dev_kits/xg27_dk2602a/ |
D | thunderboard.dtsi | 88 sfdp-bfp = [
|