mb/google/auron: Refactor memory-down SPD handling
[coreboot.git] / src / mainboard / google / auron / variants / samus / spd / spd.c
blobf12744143b6a890f1a5d5120437c3e56b6a5580c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/google/auron/variant.h>
4 #include <southbridge/intel/lynxpoint/lp_gpio.h>
6 /* Samus board memory configuration GPIOs */
7 #define SPD_GPIO_BIT0 69
8 #define SPD_GPIO_BIT1 68
9 #define SPD_GPIO_BIT2 67
10 #define SPD_GPIO_BIT3 65
12 unsigned int variant_get_spd_index(void)
14 const int gpio_vector[] = {
15 SPD_GPIO_BIT0,
16 SPD_GPIO_BIT1,
17 SPD_GPIO_BIT2,
18 SPD_GPIO_BIT3,
19 -1,
21 return get_gpios(gpio_vector);
24 bool variant_is_dual_channel(const unsigned int spd_index)
26 /* Assume same memory in both channels */
27 return true;