u-boot-brain/lib/acpi
Simon Glass fefac0b064 dm: acpi: Enhance acpi_get_name()
For many device types it is possible to figure out the name just by
looking at its uclass or parent. Add a function to handle this, since it
allows us to cover the vast majority of cases automatically.

However it is sometimes impossible to figure out an ACPI name for a device
just by looking at its uclass. For example a touch device may have a
vendor-specific name. Add a new "acpi,name" property to allow a custom
name to be created.

With this new feature we can drop the get_name() methods in the sandbox
I2C and SPI drivers. They were only added for testing purposes. Update the
tests to use the new values.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2020-07-17 14:32:24 +08:00
..
acpi_device.c dm: acpi: Enhance acpi_get_name() 2020-07-17 14:32:24 +08:00
acpi_dp.c acpi: Support copying properties from device tree to ACPI 2020-07-17 14:32:24 +08:00
acpi_table.c acpi: Support generation of ACPI code 2020-07-17 14:32:24 +08:00
acpigen.c acpi: Add support for writing a GPIO power sequence 2020-07-17 14:32:24 +08:00
Makefile acpi: Support writing Device Properties objects via _DSD 2020-07-17 14:32:24 +08:00