
13 Jul
2020
13 Jul
'20
5:09 a.m.
On Wed, Jul 8, 2020 at 3:13 AM Simon Glass sjg@chromium.org wrote:
Power to some devices is controlled by GPIOs. Add a way to generate ACPI code to enable and disable a GPIO so that this can be handled within an ACPI method.
Signed-off-by: Simon Glass sjg@chromium.org Reviewed-by: Wolfgang Wallner wolfgang.wallner@br-automation.com
Changes in v4:
- Update functions to return GPIO/IRQ pin number
- Use a separate variables for reading and writing DW0
- Correct bug in acpigen_set_gpio_val() by putting tx_state_val in LOCAL0
- Fix up the comment for acpigen_set_enable_tx_gpio()
- Explain access to DW0 register a bit better and provide a sample
- Expand the comments for acpigen_get_dw0_in_local5()
- Fix 'diabl' typo
include/acpi/acpigen.h | 56 ++++++++++++++++++++++++++++ lib/acpi/acpigen.c | 85 ++++++++++++++++++++++++++++++++++++++++++ test/dm/acpigen.c | 64 +++++++++++++++++++++++++++++++ 3 files changed, 205 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com