zephyr/drivers/flash/Kconfig.sam0
Michael Hope cd92dd139b flash: add a driver for the internal flash on the SAM0 series.
The SAM0 has a 64 byte page (the programing unit) with 4 pages to a
row (the erase unit).  This driver implements a read/modify/write to
emulate the byte level writes used by NFFS.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-01-11 19:03:52 -05:00

33 lines
704 B
Plaintext

# Kconfig - Atmel SAM0 flash driver config
#
# Copyright (c) 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
if FLASH && SOC_FAMILY_SAM0
menuconfig SOC_FLASH_SAM0
bool
prompt "Atmel SAM0 flash driver"
default n
select FLASH_HAS_PAGE_LAYOUT
help
Enable the Atmel SAM0 series internal flash driver.
config SOC_FLASH_SAM0_DEV_NAME
string "Flash device name"
depends on SOC_FLASH_SAM0
default "FLASH_0"
help
Specify the device name for the flash driver.
config SOC_FLASH_SAM0_EMULATE_BYTE_PAGES
bool
prompt "Emulate byte-sized pages"
depends on SOC_FLASH_SAM0
default n
help
Emulate a device with byte-sized pages by doing a
read/modify/erase/write. Needed for NFFS.
endif