coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spd.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
5 
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
11 
12 unsigned int variant_get_spd_index(void)
13 {
14  const int gpio_vector[] = {
19  -1,
20  };
21  return get_gpios(gpio_vector);
22 }
23 
24 bool variant_is_dual_channel(const unsigned int spd_index)
25 {
26  /* Assume same memory in both channels */
27  return true;
28 }
bool variant_is_dual_channel(const unsigned int spd_index)
Definition: spd.c:22
unsigned int variant_get_spd_index(void)
Definition: spd.c:11
#define SPD_GPIO_BIT1
Definition: spd.c:8
#define SPD_GPIO_BIT3
Definition: spd.c:10
#define SPD_GPIO_BIT0
Definition: spd.c:7
#define SPD_GPIO_BIT2
Definition: spd.c:9
static const int spd_index[32]
Definition: memory.c:10
unsigned int get_gpios(const int *gpio_num_array)
Definition: gpio.c:107