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