[PATCH 00/21] dm: Various enhancements to prepare for ACPI

Simon Glass sjg at chromium.org
Mon Jan 27 16:49:35 CET 2020


This series contains various minor enhancements needed to implement the
programmatic generation of ACPI tables on x86 devices. These are mostly
generic routines and are likely to be useful elsewhere.

It also includes a few test improvements to support checking console
output more easily.


Simon Glass (21):
  dm: core: Use const where possible in device.h
  dm: pci: Update the PCI read_config() method to const dev *
  dm: pci: Update a few more interfaces for const udevice *
  dm: core: Use const device for the devfdt...() interface
  dm: core: Use const device for the dev_read_...() interface
  test: Add underscore prefix to macro parameters
  dm: core: Update comment for ofnode_get_chosen_node()
  dm: core: Rename ofnode_get_chosen_prop()
  dm: core: Add ofnode_read_prop()
  dm: core: Reimplement ofnode_read_size()
  dm: core: Add ofnode_get_chosen_prop()
  dm: core: Add a way to read platdata for all child devices
  dm: core: Add a way to iterate through children, probing each
  dm: core: Drop uclass_find_next_free_req_seq() conditions
  bloblist: Add a new function to add or check size
  bloblist: Tidy up a few comments and code-style nits
  bloblist: Zero records when adding
  sandbox: pmic: Correct i2c pmic emulator platdata method
  console: Add a function to read a line of the output / eof
  test: Enable console recording in tests
  test: Add a way to check each line of console output

 arch/sandbox/dts/test.dts                     |   3 +
 .../puma_rk3399/puma-rk3399.c                 |   2 +-
 board/xilinx/common/board.c                   |   2 +-
 common/bloblist.c                             |  23 +-
 common/console.c                              |  11 +
 doc/README.bloblist                           |   4 +-
 drivers/core/device.c                         |  85 +++++--
 drivers/core/fdtaddr.c                        |  26 +--
 drivers/core/ofnode.c                         |  71 +++---
 drivers/core/read.c                           |  97 ++++----
 drivers/core/uclass.c                         |   4 -
 drivers/misc/p2sb_emul.c                      |   5 +-
 drivers/misc/swap_case.c                      |   9 +-
 drivers/pci/pci-aardvark.c                    |   2 +-
 drivers/pci/pci-emul-uclass.c                 |   2 +-
 drivers/pci/pci-rcar-gen2.c                   |   4 +-
 drivers/pci/pci-rcar-gen3.c                   |   2 +-
 drivers/pci/pci-uclass.c                      |  32 +--
 drivers/pci/pci_mpc85xx.c                     |   2 +-
 drivers/pci/pci_mvebu.c                       |   2 +-
 drivers/pci/pci_sandbox.c                     |   2 +-
 drivers/pci/pci_sh7751.c                      |   2 +-
 drivers/pci/pci_tegra.c                       |   2 +-
 drivers/pci/pci_x86.c                         |   5 +-
 drivers/pci/pcie_dw_mvebu.c                   |   2 +-
 drivers/pci/pcie_dw_ti.c                      |   2 +-
 drivers/pci/pcie_ecam_generic.c               |  11 +-
 drivers/pci/pcie_fsl.c                        |   2 +-
 drivers/pci/pcie_imx.c                        |   2 +-
 drivers/pci/pcie_intel_fpga.c                 |   4 +-
 drivers/pci/pcie_layerscape.c                 |   4 +-
 drivers/pci/pcie_layerscape_gen4.c            |   2 +-
 drivers/pci/pcie_mediatek.c                   |   4 +-
 drivers/pci/pcie_phytium.c                    |   7 +-
 drivers/pci/pcie_xilinx.c                     |   4 +-
 drivers/power/acpi_pmc/pmc_emul.c             |   2 +-
 drivers/power/pmic/i2c_pmic_emul.c            |  16 +-
 include/bloblist.h                            |  16 +-
 include/console.h                             |  19 ++
 include/dm/device.h                           | 111 +++++++--
 include/dm/fdtaddr.h                          |  26 +--
 include/dm/ofnode.h                           |  39 +++-
 include/dm/read.h                             | 212 +++++++++---------
 include/fdtdec.h                              |   2 +-
 include/pci.h                                 |  38 ++--
 include/test/test.h                           |   4 +
 include/test/ut.h                             | 109 +++++++--
 lib/fdtdec.c                                  |   2 +-
 test/bloblist.c                               |  61 ++++-
 test/dm/ofnode.c                              |  55 +++++
 test/dm/test-fdt.c                            |  38 ++++
 test/dm/test-main.c                           |   4 +-
 test/ut.c                                     |  46 ++++
 53 files changed, 892 insertions(+), 351 deletions(-)

-- 
2.25.0.341.g760bfbb309-goog



More information about the U-Boot mailing list