1# Copyright (c) 2020 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig SPI_FLASH_AT45 5 bool "AT45 family flash driver" 6 default y 7 depends on DT_HAS_ATMEL_AT45_ENABLED 8 select FLASH_HAS_DRIVER_ENABLED 9 select FLASH_HAS_PAGE_LAYOUT 10 select FLASH_HAS_EXPLICIT_ERASE 11 select SPI 12 help 13 This driver can handle several instances of AT45 family chips that 14 are enabled by specifying devicetree nodes with the "compatible" 15 property set to "atmel,at45" and other required properties like 16 JEDEC ID, chip capacity, block and page size etc. configured 17 accordingly. 18 19 The driver is only capable of using "power of 2" binary page sizes 20 in those chips and at initialization configures them to work in 21 that mode (unless it is already done). 22 23if SPI_FLASH_AT45 24 25config SPI_FLASH_AT45_USE_READ_MODIFY_WRITE 26 bool "Use Read-Modify-Write command in flash_write()" 27 default y 28 help 29 Use the Read-Modify-Write command (opcode 0x58) instead of the default 30 Main Memory Program without Built-In Erase (opcode 0x02). This allows 31 writing of data without prior erasing of corresponding pages. 32 33config SPI_FLASH_AT45_INIT_PRIORITY 34 int "Driver initialization priority" 35 default 80 36 help 37 Device driver initialization priority. 38 SPI driver needs to be initialized before this one. 39 40endif # SPI_FLASH_AT45 41