2019-11-01 20:45:29 +08:00
|
|
|
# Atmel SAM0 flash driver config
|
|
|
|
|
2017-11-23 05:53:29 +08:00
|
|
|
# Copyright (c) 2018 Google LLC.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig SOC_FLASH_SAM0
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Atmel SAM0 flash driver"
|
2019-03-22 23:23:04 +08:00
|
|
|
default y
|
2022-07-22 14:53:16 +08:00
|
|
|
depends on DT_HAS_ATMEL_SAM0_NVMCTRL_ENABLED
|
2017-11-23 05:53:29 +08:00
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2018-03-07 21:31:56 +08:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
2019-11-04 22:49:21 +08:00
|
|
|
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
|
2017-11-23 05:53:29 +08:00
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Enable the Atmel SAM0 series internal flash driver.
|
2017-11-23 05:53:29 +08:00
|
|
|
|
|
|
|
config SOC_FLASH_SAM0_EMULATE_BYTE_PAGES
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Emulate byte-sized pages"
|
2017-11-23 05:53:29 +08:00
|
|
|
depends on SOC_FLASH_SAM0
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Emulate a device with byte-sized pages by doing a
|
2020-01-13 19:56:02 +08:00
|
|
|
read/modify/erase/write.
|