blob: bee9b1ad7a37a84c4cc0eaea3af8bce5f7bc9f54 [file] [log] [blame]
Thejaswani Puttae3443d82019-07-18 16:23:20 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2018 Google LLC
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <bootblock_common.h>
17#include <ec/google/wilco/bootblock.h>
18#include <soc/gpio.h>
19#include <variant/gpio.h>
20
21static void early_config_gpio(void)
22{
23 const struct pad_config *early_gpio_table;
24 size_t num_gpios = 0;
25
26 early_gpio_table = variant_early_gpio_table(&num_gpios);
27 gpio_configure_pads(early_gpio_table, num_gpios);
28}
29
30void bootblock_mainboard_init(void)
31{
32 early_config_gpio();
33 wilco_ec_early_init();
34}