dm: core: Add size operations on device tree references
authorChen Guanqiao <chenguanqiao@kuaishou.com>
Mon, 12 Apr 2021 06:51:11 +0000 (14:51 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Apr 2021 10:23:39 +0000 (03:23 -0700)
commitaa351a14bd0a78221014719d190b565be60cb4ce
treebb9c83d868e56ef811ef06229978ba2ac3b81628
parentf1a83abe60b4ef8b2652e4c8e1d11a9afc909b71
dm: core: Add size operations on device tree references

Add functions to add size of addresses in the device tree using ofnode
references.

If the size is not set, return FDT_SIZE_T_NONE.

Signed-off-by: Chen Guanqiao <chenguanqiao@kuaishou.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
include/fdtdec.h