| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/gpio.h> |
| 4 | #include <baseboard/variants.h> |
| 5 | #include <gpio.h> |
| 6 | |
| 7 | static const struct mb_cfg baseboard_memcfg = { |
| 8 | .type = MEM_TYPE_DDR4, |
| 9 | }; |
| 10 | |
| 11 | const struct mb_cfg *variant_memory_params(void) |
| 12 | { |
| 13 | return &baseboard_memcfg; |
| 14 | } |
| 15 | |
| 16 | int variant_memory_sku(void) |
| 17 | { |
| 18 | gpio_t spd_gpios[] = { |
| 19 | GPIO_MEM_CONFIG_3, |
| 20 | GPIO_MEM_CONFIG_2, |
| 21 | GPIO_MEM_CONFIG_1, |
| 22 | GPIO_MEM_CONFIG_0, |
| 23 | }; |
| 24 | |
| 25 | return gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios)); |
| 26 | } |