]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add an option to support SPL in read-only memory
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:35 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
commit6e465ede438f8cf6e17fad931cc620ef2c1b15d3
treebeb9aa23865aa046e36227e42f3bceddfb18cf8b
parent891cc3ab1608d09bb32dedcf3c0946d37dd65953
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>
common/spl/Kconfig
dts/Kconfig