dm: core: Add a function to decode a memory region
authorSimon Glass <sjg@chromium.org>
Mon, 11 Jun 2018 19:07:18 +0000 (13:07 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Jul 2018 15:11:00 +0000 (09:11 -0600)
commit964cadc445f1437e63f1d2b4fffd233ac053c6e6
treee753eaf7147763c8d2a7aa8f20ab086c7a36c863
parent5e0a7341cdda182f310624d5c336fb48be04a703
dm: core: Add a function to decode a memory region

Add a way to decode a memory region, including the memory type (sram or
sdram) and its start address and size.

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