zephyr/dts/bindings/flash_controller/st,stm32-flash-controller.yaml
Patryk Duda 417368e63d drivers: flash: Add support for defining custom RDP1 byte value
This patch makes possible to choose custom byte which should be used
to enable non-permanent readout protection (RDP1). Actually, any byte
except 0xAA and 0xCC (which are used by RDP0 and RDP2 respectively)
can be used to enable RDP1 but in multi-image environment, some other
image could check if RDP1 is enabled by comparing it to some hardcoded
value.

If property is not defined, 0x55 will be used to enable RDP1. The
default value comes from STM32 HAL.

Signed-off-by: Patryk Duda <pdk@semihalf.com>
2023-03-28 15:43:16 +00:00

18 lines
622 B
YAML

description: STM32 Family flash controller
compatible: "st,stm32-flash-controller"
include: flash-controller.yaml
properties:
st,rdp1-enable-byte:
type: int
default: 0x55
description: |
This property provides a byte which should used to enable non-permanent
readout protection (RDP1). Actually, any byte except 0xAA and 0xCC
(which are used by RDP0 and RDP2 respectively) can be used to enable
RDP1 but in multi-image environment, some other image could check if
RDP1 is enabled by comparing it to some hardcoded value. The byte has to
be different than 0xAA and 0xCC.