1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
7 /* This table is used by guybrush variant */
8 static const struct soc_amd_gpio override_ramstage_gpio_table
[] = {
39 /* SOC_TCHPAD_INT_ODL */
40 PAD_SCI(GPIO_9
, PULL_NONE
, LEVEL_LOW
),
43 static const struct soc_amd_gpio override_early_gpio_table
[] = {
54 /* This table is used by guybrush variant */
55 static const struct soc_amd_gpio override_romstage_gpio_table
[] = {
63 static const struct soc_amd_gpio override_bootblock_gpio_table
[] = {
68 const struct soc_amd_gpio
*variant_override_gpio_table(size_t *size
)
70 *size
= ARRAY_SIZE(override_ramstage_gpio_table
);
71 return override_ramstage_gpio_table
;
74 const struct soc_amd_gpio
*variant_early_override_gpio_table(size_t *size
)
76 *size
= ARRAY_SIZE(override_early_gpio_table
);
77 return override_early_gpio_table
;
80 const struct soc_amd_gpio
*variant_romstage_override_gpio_table(size_t *size
)
82 *size
= ARRAY_SIZE(override_romstage_gpio_table
);
83 return override_romstage_gpio_table
;
86 const struct soc_amd_gpio
*variant_bootblock_override_gpio_table(size_t *size
)
88 *size
= ARRAY_SIZE(override_bootblock_gpio_table
);
89 return override_bootblock_gpio_table
;