acpi_device: Provide a new function to add a list of properties

Hardware / Coreboot - Duncan Laurie [google.com] - 30 August 2017 11:36 EDT

Provide a new function that will allow adding arbitrary properties to devicetree entries without needing a custom driver for the device.

This will allow the 'generic i2c' driver to support kernel drivers that need additional device properties exposed and have those board specific properties set with values from devicetree.

BUG=b:63413023 TEST=not used yet, compiles cleanly

Change-Id: Id272256639a8525406635e168a3db5ab1ba4df6b

b3023b6 acpi_device: Provide a new function to add a list of properties
src/arch/x86/acpi_device.c | 62 +++++++++++++++++++++------------
src/arch/x86/include/arch/acpi_device.h | 31 +++++++++++++++--
2 files changed, 68 insertions(+), 25 deletions(-)

Upstream: review.coreboot.org


  • Share