summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/bootblock
diff options
context:
space:
mode:
authorJustin TerAvest <teravest@chromium.org>2018-02-14 19:10:15 -0700
committerAaron Durbin <adurbin@chromium.org>2018-02-17 00:18:38 +0000
commit3fe3f0409cd340112d62283bf79be9f106a6dff8 (patch)
tree5df7ca98aa87050586b382be1e83920684a80ba1 /src/mainboard/google/kahlee/bootblock
parent5b131e27c5d21d006950337cfd00e5fb35c7ed3b (diff)
downloadcoreboot-3fe3f0409cd340112d62283bf79be9f106a6dff8.tar.xz
soc/amd/stoneyridge: Normalize GPIO init
This makes the flow for GPIO initialization more closely follow that what is performed for other boards so that it's easier to read the flow (and stops relying on BS_WRITE_TABLES). BUG=b:72875858 TEST=Built and booted grunt, built gardenia. Change-Id: Ic97db96581a69798b193a6bdeb93644f6a74fc9d Signed-off-by: Justin TerAvest <teravest@chromium.org> Reviewed-on: https://review.coreboot.org/23679 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/kahlee/bootblock')
-rw-r--r--src/mainboard/google/kahlee/bootblock/bootblock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c
index 90c8acbabf..244abe051f 100644
--- a/src/mainboard/google/kahlee/bootblock/bootblock.c
+++ b/src/mainboard/google/kahlee/bootblock/bootblock.c
@@ -13,12 +13,18 @@
* GNU General Public License for more details.
*/
+#include <baseboard/variants.h>
#include <bootblock_common.h>
#include <soc/southbridge.h>
#include <variant/ec.h>
void bootblock_mainboard_init(void)
{
+ size_t num_gpios;
+ const struct soc_amd_stoneyridge_gpio *gpios;
+ gpios = variant_early_gpio_table(&num_gpios);
+ sb_program_gpios(gpios, num_gpios);
+
/* Enable the EC as soon as we have visibility */
mainboard_ec_init();