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
387 B
Plaintext
24 lines
387 B
Plaintext
/*
|
|
* Copyright (c) 2019 Gerson Fernando Budke
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <atmel/samv71.dtsi>
|
|
|
|
/ {
|
|
sram0: memory@20400000 {
|
|
reg = <0x20400000 DT_SIZE_K(384)>;
|
|
};
|
|
|
|
soc {
|
|
flash-controller@400e0c00 {
|
|
flash0: flash@400000 {
|
|
reg = <0x00400000 DT_SIZE_K(2048)>;
|
|
erase-blocks = <&eefc 8 2048>, <&eefc 252 8192>;
|
|
};
|
|
};
|
|
};
|
|
};
|