u-boot/include/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.h dm: acpi: Enhance acpi_get_name() 2020-07-17 14:32:24 +08:00
acpi_dp.h acpi: Support copying properties from device tree to ACPI 2020-07-17 14:32:24 +08:00
acpi_s3.h x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00
acpi_table.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
acpigen.h acpi: Add support for writing a GPIO power sequence 2020-07-17 14:32:24 +08:00