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
388 B
Plaintext
24 lines
388 B
Plaintext
/*
|
|
* Copyright (c) 2018 Vincent van der Locht
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <atmel/sam4s.dtsi>
|
|
|
|
/ {
|
|
soc {
|
|
flash-controller@400e0a00 {
|
|
flash0: flash@400000 {
|
|
reg = <0x00400000 DT_SIZE_K(512)>;
|
|
erase-blocks = <&eefc 8 2048>, <&eefc 124 4096>;
|
|
};
|
|
};
|
|
|
|
sram0: memory@20100000 {
|
|
reg = <0x20100000 DT_SIZE_K(128)>;
|
|
};
|
|
};
|
|
};
|