mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-21 23:45:21 +00:00
This patch adds a flash driver for the Atmel SAM E70 SoC. The driver has been kept simple by considering that the flash is only composed of 8-KiB blocks. Indeed an area at the beginning of the flash might be erased with a smaller granularity, and the other blocks can also be erased with a higher granularity. It also only handles the global read/write protection, not the 128-KiB lock regions. A write error is returned if a region is locked. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
16 lines
323 B
Plaintext
16 lines
323 B
Plaintext
# Kconfig - Atmel SAM flash driver config
|
|
#
|
|
# Copyright (c) 2018 Aurelien Jarno
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_FAMILY_SAM
|
|
|
|
menuconfig SOC_FLASH_SAM
|
|
bool "Atmel SAM flash driver"
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enable the Atmel SAM series internal flash driver.
|
|
|
|
endif
|