mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / pcengines / apu2 / gpio_ftns.c
blob1fd6fdaac44a8a4befecba996e541b41a22a8046
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <gpio.h>
4 #include "gpio_ftns.h"
6 int get_spd_offset(void)
8 u8 index = 0;
9 /*
10 * One SPD file contains all 4 options, determine which index to
11 * read here, then call into the standard routines.
13 if (gpio_get(GPIO_49))
14 index |= 1 << 0;
15 if (gpio_get(GPIO_50))
16 index |= 1 << 1;
18 return index;