dm: core: Use separate priv/plat data region
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:40 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
commitcfb9c9b77c29f48ae2c71ff30ca294bdaf369d87
tree9852a1cb811d66aef1cb045cc28679efe4b90105
parentd5cc19288e00cd287a13717f495d5f1a517feffd
dm: core: Use separate priv/plat data region

Make use of the new priv/plat data region if enabled. This is implemented
as a simple offset from the position set up by dtoc to the new position.

So long as all access goes through dm_priv_to_rw() this is safe.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/core/root.c
include/dm/util.h