[PATCH v4 28/42] dm: core: Allow storing priv/plat data separately

Simon Glass sjg at chromium.org
Wed Mar 17 02:28:20 CET 2021


At present the device priv/data data allocated by dtoc is stored in the
data section along with other variables. On some platforms it is better
to allocate space for it separately, e.g. if SPL is running from read-only
memory.

Create a new space with the same size as that allocated by dtoc, ready for
use.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 drivers/core/root.c               | 12 ++++++++++++
 include/asm-generic/global_data.h | 10 ++++++++++
 include/asm-generic/sections.h    |  3 +++
 3 files changed, 25 insertions(+)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list