author | Simon Glass <sjg@chromium.org> | |
Mon, 15 Mar 2021 04:25:35 +0000 (17:25 +1300) | ||
committer | Simon Glass <sjg@chromium.org> | |
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300) | ||
commit | 95a5825f3134ff47f1e0cf37b4014b5c2e2027b5 | |
tree | beb9aa23865aa046e36227e42f3bceddfb18cf8b | tree | snapshot (tar.xz tar.gz zip) |
parent | 6c914e4232cd262001645e932e9156555f1a5823 | commit | diff |
dm: core: Add an option to support SPL in read-only memory
Some systems (e.g. x86 APL) run SPL from read-only memory. The device
instances created by dtoc are therefore not writeable. To make things work
we would need to copy the devices to read/write memory.
To avoid this, add an option to use a separate runtime struct for devices,
just as is done for drivers. This can be used to hold information that
changes at runtime, avoiding the need for a copy.
Also add a Kconfig option for read-only SPL, which selects this feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Some systems (e.g. x86 APL) run SPL from read-only memory. The device
instances created by dtoc are therefore not writeable. To make things work
we would need to copy the devices to read/write memory.
To avoid this, add an option to use a separate runtime struct for devices,
just as is done for drivers. This can be used to hold information that
changes at runtime, avoiding the need for a copy.
Also add a Kconfig option for read-only SPL, which selects this feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/spl/Kconfig | diff | blob | history | |
dts/Kconfig | diff | blob | history |