blob: f9e932e2ffb944c1c9903b9e92e9dd9d4ef362fe [file] [log] [blame]
Brenton Dong35f03d92017-02-06 16:07:27 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2016 Google Inc.
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 <device/device.h>
Brenton Dong6530b6d2017-02-15 16:13:27 -070017#include "gpio.h"
Brenton Dong35f03d92017-02-06 16:07:27 -070018
19static void mainboard_init(void *chip_info)
20{
Brenton Dong6530b6d2017-02-15 16:13:27 -070021 const struct pad_config *pads;
22 size_t num;
23
24 /* Configure GPIOs in Ramstage */
25 pads = gpio_table(&num);
26 gpio_configure_pads(pads, num);
Brenton Dong35f03d92017-02-06 16:07:27 -070027}
28
29struct chip_operations mainboard_ops = {
30 .init = mainboard_init,
31};