blob: 1bf1aa3aa63513ee5df736fa567493cff14f815a [file] [log] [blame]
Hannah Williamsd59f62b2017-05-05 16:39:21 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2017 Intel Corp.
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 <baseboard/variants.h>
17#include <bootblock_common.h>
18#include <ec/ec.h>
Ravi Sarawadiefa606b2017-08-04 16:26:09 -070019#include <intelblocks/lpc_lib.h>
Hannah Williamsd59f62b2017-05-05 16:39:21 -070020#include <soc/gpio.h>
21#include <variant/ec.h>
22
23void bootblock_mainboard_init(void)
24{
25 const struct pad_config *pads;
26 size_t num;
27
28 lpc_configure_pads();
29 pads = variant_early_gpio_table(&num);
30 gpio_configure_pads(pads, num);
31 mainboard_ec_init();
32}