[PATCH v4 24/35] acpi: Add support for writing a GPIO power sequence

Bin Meng bmeng.cn at gmail.com
Mon Jul 13 05:09:02 CEST 2020


On Wed, Jul 8, 2020 at 3:13 AM Simon Glass <sjg at 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 at chromium.org>
> Reviewed-by: Wolfgang Wallner <wolfgang.wallner at 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 at gmail.com>


More information about the U-Boot mailing list