acpi_device: Add special HID for DT namespace

BUG=chrome-os-partner:60194
BRANCH=None
TEST=Compiles successfully

Change-Id: I0fe146cf2235c7c4ad3ea5589ed556884de3a368
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17842
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Furquan Shaikh 2016-12-13 09:43:46 -08:00 committed by Martin Roth
parent ca80196ae2
commit c804826be9
1 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,18 @@
#define ACPI_DESCRIPTOR_GPIO (ACPI_DESCRIPTOR_LARGE | 12)
#define ACPI_DESCRIPTOR_SERIAL_BUS (ACPI_DESCRIPTOR_LARGE | 14)
/*
* PRP0001 is a special DT namespace link device ID. It provides a means to use
* existing DT-compatible device identification in ACPI. When this _HID is used
* by an ACPI device, the ACPI subsystem in OS looks up "compatible" property in
* device object's _DSD and will use the value of that property to identify the
* corresponding device in analogy with the original DT device identification
* algorithm.
* More details can be found in Linux kernel documentation:
* Documentation/acpi/enumeration.txt
*/
#define ACPI_DT_NAMESPACE_HID "PRP0001"
struct device;
const char *acpi_device_name(struct device *dev);
const char *acpi_device_path(struct device *dev);