mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 02:12:40 +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>
23 lines
327 B
Plaintext
23 lines
327 B
Plaintext
/*
|
|
* Copyright (c) 2018 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <atmel/same70.dtsi>
|
|
|
|
/ {
|
|
sram0: memory@20400000 {
|
|
reg = <0x20400000 DT_SIZE_K(384)>;
|
|
};
|
|
|
|
soc {
|
|
flash-controller@400e0c00 {
|
|
flash0: flash@400000 {
|
|
reg = <0x00400000 DT_SIZE_K(2048)>;
|
|
};
|
|
};
|
|
};
|
|
};
|