1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
6 static const struct soc_amd_gpio woomax_bid0_gpio_set_stage_ram
[] = {
18 PAD_GPO(GPIO_89
, HIGH
),
22 PAD_GPO(GPIO_140
, HIGH
),
29 static const struct soc_amd_gpio woomax_gpio_set_stage_ram
[] = {
41 PAD_GPO(GPIO_89
, HIGH
),
43 PAD_GPO(GPIO_140
, HIGH
),
50 const struct soc_amd_gpio
*variant_override_gpio_table(size_t *size
)
52 uint32_t board_version
;
54 /* If board version cannot be read, assume it is board_version 0. */
55 if (google_chromeec_cbi_get_board_version(&board_version
) != 0)
58 if (board_version
== 0) {
59 *size
= ARRAY_SIZE(woomax_bid0_gpio_set_stage_ram
);
60 return woomax_bid0_gpio_set_stage_ram
;
62 *size
= ARRAY_SIZE(woomax_gpio_set_stage_ram
);
63 return woomax_gpio_set_stage_ram
;