repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libpayload: configs: Add new config.featuretest to broaden CI
[coreboot2.git]
/
src
/
mainboard
/
pcengines
/
apu2
/
gpio_ftns.c
blob
1fd6fdaac44a8a4befecba996e541b41a22a8046
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <gpio.h>
4
#include
"gpio_ftns.h"
5
6
int
get_spd_offset
(
void
)
7
{
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.
12
*/
13
if
(
gpio_get
(
GPIO_49
))
14
index
|=
1
<<
0
;
15
if
(
gpio_get
(
GPIO_50
))
16
index
|=
1
<<
1
;
17
18
return
index
;
19
}