The commit restricts erase-value to either 0xff or 0x00. On program-erase type devices writes can only change from erase value of bit to opposite, ease usually consists of two operations which is programming the opposite value to every bit of erase range and then turning back all bits to the "erase-value"; above makes it impossible to have erase value of device to be other than 0xff or 0x00. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
19 lines
444 B
YAML
19 lines
444 B
YAML
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: Simulated flash memory
|
|
|
|
compatible: "zephyr,sim-flash"
|
|
|
|
include: base.yaml
|
|
|
|
properties:
|
|
erase-value:
|
|
type: int
|
|
enum: [0xff, 0x00]
|
|
description: Value of erased flash cell
|
|
memory-region:
|
|
type: phandle
|
|
description: |
|
|
Memory region used by the simulated flash memory. If this option is used
|
|
the memory that is used by the simulated flash memory is not erased.
|