diff options
Diffstat (limited to 'src/mainboard/google/octopus/variants/baseboard')
-rw-r--r-- | src/mainboard/google/octopus/variants/baseboard/gpio.c | 14 | ||||
-rw-r--r-- | src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/mainboard/google/octopus/variants/baseboard/gpio.c b/src/mainboard/google/octopus/variants/baseboard/gpio.c index e48ac632d8..667c5f4dcc 100644 --- a/src/mainboard/google/octopus/variants/baseboard/gpio.c +++ b/src/mainboard/google/octopus/variants/baseboard/gpio.c @@ -13,6 +13,7 @@ * GNU General Public License for more details. */ +#include <arch/acpi.h> #include <baseboard/gpio.h> #include <baseboard/variants.h> #include <commonlib/helpers.h> @@ -300,9 +301,20 @@ variant_early_gpio_table(size_t *num) static const struct pad_config sleep_gpio_table[] = { }; +/* GPIO settings before entering slp_s5. */ +static const struct pad_config sleep_s5_gpio_table[] = { + /* BT_DISABLE_L */ + PAD_CFG_GPO_IOSSTATE_IOSTERM(GPIO_109, 0, DEEP, NONE, Tx0RXDCRx1, SAME), +}; + const struct pad_config *__weak -variant_sleep_gpio_table(size_t *num) +variant_sleep_gpio_table(size_t *num, int slp_typ) { + if (slp_typ == ACPI_S5) { + *num = ARRAY_SIZE(sleep_s5_gpio_table); + return sleep_s5_gpio_table; + } + *num = ARRAY_SIZE(sleep_gpio_table); return sleep_gpio_table; } diff --git a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h index c278cdee26..4c3fbbef7b 100644 --- a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h @@ -28,7 +28,7 @@ uint8_t variant_board_id(void); * entries for each table. */ const struct pad_config *variant_gpio_table(size_t *num); const struct pad_config *variant_early_gpio_table(size_t *num); -const struct pad_config *variant_sleep_gpio_table(size_t *num); +const struct pad_config *variant_sleep_gpio_table(size_t *num, int slp_typ); /* Baseboard default swizzle. Can be reused if swizzle is same. */ extern const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle; |