dm: core: Add a way to read platdata for all child devices
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:47 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:45 +0000 (19:33 -0700)
commitf262d4ca4b2bf8a99acb37c6151c54cd80251566
treeb61079187edfb4d66f8fed45577f694e083beafb
parentbd933bfd834364bca6cc6f3a62e4255090a5bec1
dm: core: Add a way to read platdata for all child devices

When generating ACPI tables we need to make sure that all devices have
read their platform data, so that they can generate the tables correctly.

Rather than adding this code in ACPI, create a core function to handle it.

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