[U-Boot] [PATCH v2 0/4] dm: core: Scan "/firmware" node by default
Rajan Vaja
rajan.vaja at xilinx.com
Wed Sep 19 10:43:42 UTC 2018
All Linux firmware drivers are put under "/firmware" node
and it has support to populate "/firmware" node by default.
u-boot and Linux can share same DTB. In this case, driver
probe for devices under "/firmware" will not be invoked
as "/firmware" does not have its own "compatible" property.
This patch series scans "/firmware" node by default like "/clocks".
To avoid duplication of code, first patch moves, node scan code
into separate function.
This series also test to make sure "/firmware" nodes are scanned
properly.
Rajan Vaja (4):
firmware: Add FIRMWARE config prompt string
dm: core: Move "/clock" node scan into function
dm: core: Scan "/firmware" node by default
dm: test: Add "/firmware" node scan test
arch/sandbox/dts/test.dts | 7 +++++++
drivers/core/root.c | 35 ++++++++++++++++++++++-------------
drivers/firmware/Kconfig | 2 +-
drivers/firmware/Makefile | 1 +
drivers/firmware/firmware-sandbox.c | 20 ++++++++++++++++++++
test/dm/Makefile | 1 +
test/dm/firmware.c | 22 ++++++++++++++++++++++
7 files changed, 74 insertions(+), 14 deletions(-)
create mode 100644 drivers/firmware/firmware-sandbox.c
create mode 100644 test/dm/firmware.c
--
Changes in v2:
* Add firmware device for sanbox and its test
* Fix Kconfig to enable FIRMWARE config
--
2.7.4
More information about the U-Boot
mailing list