Simon Glass 95a5825f31 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>
2021-03-26 17:03:09 +13:00
..
2020-11-19 09:45:49 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2021-03-12 17:41:35 -05:00
2021-03-12 17:41:35 -05:00
2021-01-06 07:57:33 -05:00
2020-10-22 09:54:53 -04:00