acpi: Call acpi_gen_writeSTA by status from device tree
commitb4be50c9ca3651e4124cde57f227203b47399eab
authorHung-Te Lin <hungte@chromium.org>
Mon, 10 Sep 2018 02:55:49 +0000 (10 10:55 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Sun, 16 Sep 2018 08:37:42 +0000 (16 08:37 +0000)
treec36a63662a40aea91c3053e1324aecc18ef2a968
parent936dbe1d064b24bb5f38889d50795e68a2309e62
acpi: Call acpi_gen_writeSTA by status from device tree

The device tree now supports 'hidden' and the status can be found in
`struct device.hidden`. A new acpi_device_status() will return the
expected setting of STA from a `struct device`.

BUG=b:72200466
BRANCH=eve
TEST=Builds and boots properly on device eve

Change-Id: I6dc62aff63cc3cb950739398a4dcac21836c9766
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://review.coreboot.org/28567
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
14 files changed:
src/arch/x86/acpi_device.c
src/arch/x86/include/arch/acpi_device.h
src/drivers/generic/adau7002/adau7002.c
src/drivers/generic/max98357a/max98357a.c
src/drivers/i2c/da7219/da7219.c
src/drivers/i2c/generic/generic.c
src/drivers/i2c/max98373/max98373.c
src/drivers/i2c/max98927/max98927.c
src/drivers/i2c/nau8825/nau8825.c
src/drivers/i2c/rt5663/rt5663.c
src/drivers/i2c/sx9310/sx9310.c
src/drivers/i2c/tpm/chip.c
src/drivers/intel/mipi_camera/camera.c
src/drivers/spi/acpi/acpi.c