6f28ea08a5
This commit adds layput page cells to the atmel sam flash controller and the flash node. These allow for describing the actual flash page layout of each soc, allowing the flash driver to fully utilize the capabilities of the flash. With this update, we unlock the following capabilties: - utilize 2048 erase block size for small sectors - utilize 16384 erase block size for large sectors Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
24 lines
389 B
Plaintext
24 lines
389 B
Plaintext
/*
|
|
* Copyright (c) 2019 Gerson Fernando Budke
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <atmel/sam4e.dtsi>
|
|
|
|
/ {
|
|
soc {
|
|
flash-controller@400e0a00 {
|
|
flash0: flash@400000 {
|
|
reg = <0x00400000 DT_SIZE_K(1024)>;
|
|
erase-blocks = <&eefc 8 2048>, <&eefc 252 4096>;
|
|
};
|
|
};
|
|
|
|
sram0: memory@20000000 {
|
|
reg = <0x20000000 DT_SIZE_K(128)>;
|
|
};
|
|
};
|
|
};
|