diff options
author | Eric Lai <ericr_lai@compal.corp-partner.google.com> | 2021-01-07 16:11:21 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-11 07:36:29 +0000 |
commit | c1befbe5d079b24316a69ce3c0d82b0e5b8d88ce (patch) | |
tree | 0b3618e2d0c1d805b73ef2917e6e81a26308aa56 /src/soc/amd/common/acpi | |
parent | 5378219988a3cd2c481c1e62583020a0bfdb4122 (diff) |
soc/amd/picasso: Separate GPIO define into gpio_defs.h
Separate GPIO define into gpio_defs.h, then we can use it in asl include.
Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: If2a779eae228f621e77610889205853de2fb179a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49216
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/amd/common/acpi')
-rw-r--r-- | src/soc/amd/common/acpi/gpio_bank_lib.asl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/amd/common/acpi/gpio_bank_lib.asl b/src/soc/amd/common/acpi/gpio_bank_lib.asl index 8640cc114d..df55cbfa47 100644 --- a/src/soc/amd/common/acpi/gpio_bank_lib.asl +++ b/src/soc/amd/common/acpi/gpio_bank_lib.asl @@ -1,11 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <soc/iomap.h> - -#define GPIO_INPUT_SHIFT 16 -#define GPIO_INPUT_VALUE (1 << GPIO_INPUT_SHIFT) -#define GPIO_OUTPUT_SHIFT 22 -#define GPIO_OUTPUT_VALUE (1 << GPIO_OUTPUT_SHIFT) +#include <amdblocks/gpio_defs.h> /* Get pin control MMIO address */ Method (GPAD, 0x1) |