1# Atmel SAM0 flash driver config
2
3# Copyright (c) 2018 Google LLC.
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig SOC_FLASH_SAM0
7	bool "Atmel SAM0 flash driver"
8	default y
9	depends on DT_HAS_ATMEL_SAM0_NVMCTRL_ENABLED
10	select FLASH_HAS_PAGE_LAYOUT
11	select FLASH_HAS_DRIVER_ENABLED
12	select FLASH_HAS_EXPLICIT_ERASE
13	select MPU_ALLOW_FLASH_WRITE if ARM_MPU
14	help
15	  Enable the Atmel SAM0 series internal flash driver.
16
17config SOC_FLASH_SAM0_EMULATE_BYTE_PAGES
18	bool "Emulate byte-sized pages"
19	depends on SOC_FLASH_SAM0
20	default y if SOC_SERIES_SAMC20 || \
21		     SOC_SERIES_SAMC21
22	help
23	  Emulate a device with byte-sized pages by doing a
24	  read/modify/erase/write.
25