diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2017-10-16 08:44:15 +0200 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-10-19 15:13:45 +0000 |
commit | 0e35eb2434026293db5ab2e466c479b91d634311 (patch) | |
tree | 2d3a71e3f20fa4ab89a298703d1e26db69bd387b /src/mainboard/siemens/mc_bdx1/romstage.c | |
parent | 4bf11ce2b5de81ec0bd6799f4830a48c7376c122 (diff) | |
download | coreboot-0e35eb2434026293db5ab2e466c479b91d634311.tar.xz |
siemens/mc_bdx1: Initialize GPIOs
Add GPIO initialization for mc_bdx1 mainboard. Call init_gpios() as
early as possible as FSP will set up things (like hiding PCI devices)
rather early. If connections on the mainboard are dependent on GPIO
settings then FSP can screw things up (e.g. disabling not yet connected
PCI root ports).
Change-Id: I003277cfb871f861900b7fcdc5ec851d4c1c1e6a
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/22035
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/siemens/mc_bdx1/romstage.c')
-rw-r--r-- | src/mainboard/siemens/mc_bdx1/romstage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/siemens/mc_bdx1/romstage.c b/src/mainboard/siemens/mc_bdx1/romstage.c index cf52c01f04..eec8f04d3d 100644 --- a/src/mainboard/siemens/mc_bdx1/romstage.c +++ b/src/mainboard/siemens/mc_bdx1/romstage.c @@ -3,6 +3,7 @@ * * Copyright (C) 2013 Google Inc. * Copyright (C) 2015 Intel Corp. + * Copyright (C) 2017 Siemens AG * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +18,8 @@ #include <stddef.h> #include <soc/romstage.h> #include <drivers/intel/fsp1_0/fsp_util.h> +#include <soc/gpio.h> +#include "gpio.h" /** * /brief mainboard call for setup that needs to be done before fsp init @@ -24,7 +27,7 @@ */ void early_mainboard_romstage_entry(void) { - + init_gpios(mc_bdx1_gpio_config); } /** |