| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <gpio.h> |
| 5 |
|
| 6 |
static const struct soc_amd_gpio woomax_bid0_gpio_set_stage_ram[] = { |
| 7 |
|
| 8 |
PAD_NC(GPIO_4), |
| 9 |
|
| 10 |
PAD_NC(GPIO_5), |
| 11 |
|
| 12 |
PAD_NC(GPIO_6), |
| 13 |
|
| 14 |
PAD_NC(GPIO_69), |
| 15 |
|
| 16 |
PAD_NC(GPIO_84), |
| 17 |
|
| 18 |
PAD_GPO(GPIO_89, HIGH), |
| 19 |
|
| 20 |
PAD_NC(GPIO_90), |
| 21 |
|
| 22 |
PAD_GPO(GPIO_140, HIGH), |
| 23 |
|
| 24 |
PAD_NC(GPIO_141), |
| 25 |
|
| 26 |
PAD_NC(GPIO_143), |
| 27 |
}; |
| 28 |
|
| 29 |
static const struct soc_amd_gpio woomax_gpio_set_stage_ram[] = { |
| 30 |
|
| 31 |
PAD_NC(GPIO_4), |
| 32 |
|
| 33 |
PAD_NC(GPIO_5), |
| 34 |
|
| 35 |
PAD_NC(GPIO_6), |
| 36 |
|
| 37 |
PAD_NC(GPIO_69), |
| 38 |
|
| 39 |
PAD_NC(GPIO_84), |
| 40 |
|
| 41 |
PAD_GPO(GPIO_89, HIGH), |
| 42 |
|
| 43 |
PAD_GPO(GPIO_140, HIGH), |
| 44 |
|
| 45 |
PAD_NC(GPIO_141), |
| 46 |
|
| 47 |
PAD_NC(GPIO_143), |
| 48 |
}; |
| 49 |
|
| 50 |
const struct soc_amd_gpio *variant_override_gpio_table(size_t *size) |
| 51 |
{ |
| 52 |
uint32_t board_version; |
| 53 |
|
| 54 |
|
| 55 |
if (google_chromeec_cbi_get_board_version(&board_version) != 0) |
| 56 |
board_version = 0; |
| 57 |
|
| 58 |
if (board_version == 0) { |
| 59 |
*size = ARRAY_SIZE(woomax_bid0_gpio_set_stage_ram); |
| 60 |
return woomax_bid0_gpio_set_stage_ram; |
| 61 |
} |
| 62 |
*size = ARRAY_SIZE(woomax_gpio_set_stage_ram); |
| 63 |
return woomax_gpio_set_stage_ram; |
| 64 |
} |