
13 Jul
2020
13 Jul
'20
5:10 a.m.
On Wed, Jul 8, 2020 at 3:13 AM Simon Glass sjg@chromium.org wrote:
Add a way for devices to enable and disable themselves using ACPI code that updates GPIOs. This takes several timing parameters and supports enable, reset and stop.
Signed-off-by: Simon Glass sjg@chromium.org Reviewed-by: Wolfgang Wallner wolfgang.wallner@br-automation.com
Changes in v4:
- Use new shared acpi_test_alloc_context_size() in test
- Update functions to return GPIO/IRQ pin number
- Use a separate variables for reading and writing DW0
include/acpi/acpi_device.h | 42 ++++++++++++++++ lib/acpi/acpi_device.c | 99 ++++++++++++++++++++++++++++++++++++++ test/dm/acpigen.c | 68 ++++++++++++++++++++++++++ 3 files changed, 209 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com