mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / auron / variants / gandof / spd / spd.c
blobd144e20ec39403b46a4da9d85e6189d01711cc20
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/google/auron/variant.h>
4 #include <southbridge/intel/lynxpoint/lp_gpio.h>
6 /* Gandof board memory configuration GPIOs */
7 #define SPD_GPIO_BIT0 13
8 #define SPD_GPIO_BIT1 9
9 #define SPD_GPIO_BIT2 47
11 unsigned int variant_get_spd_index(void)
13 const int gpio_vector[] = {
14 SPD_GPIO_BIT0,
15 SPD_GPIO_BIT1,
16 SPD_GPIO_BIT2,
17 -1,
19 return get_gpios(gpio_vector);
22 bool variant_is_dual_channel(const unsigned int spd_index)
24 /* Index 0-2 are 4GB config with both CH0 and CH1.
25 * Index 4-6 are 2GB config with CH0 only. */
26 return !(spd_index > 3);