summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@chromium.org>2017-12-20 16:45:47 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2018-01-11 01:10:01 +0000
commit6603c01dd3652295c576725c57f0039573bad204 (patch)
tree891e79169083cf71a4b253d2a79478ab67868f74 /src/mainboard
parenta9569cea61d4491ba874c4c63ea57e8714f15b97 (diff)
downloadcoreboot-6603c01dd3652295c576725c57f0039573bad204.tar.xz
mainboard/google/zoombini: add gpio init to ramstage
-add initialization of gpio table to mainboard_silicon_init_params() -fix input parameter type for mainboard_silicon_init_params() for FSP2_0. BUG=b:69011806 BRANCH=chromeos-2016.05 TEST=none Change-Id: If8cba786a127a8704eb240380841362e3eb06552 Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org> Reviewed-on: https://review.coreboot.org/23194 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/zoombini/ramstage.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mainboard/google/zoombini/ramstage.c b/src/mainboard/google/zoombini/ramstage.c
index ffbf6fe987..7c73357430 100644
--- a/src/mainboard/google/zoombini/ramstage.c
+++ b/src/mainboard/google/zoombini/ramstage.c
@@ -13,10 +13,15 @@
* GNU General Public License for more details.
*/
+#include <baseboard/variants.h>
#include <soc/ramstage.h>
#include <variant/gpio.h>
-void mainboard_silicon_init_params(FSP_SIL_UPD *params)
+void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{
- gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
+ size_t num;
+ const struct pad_config *gpio_table;
+
+ gpio_table = variant_gpio_table(&num);
+ gpio_configure_pads(gpio_table, num);
}