blob: dde7e8612a1c09b64dd053ceecfd2ce0ed77781b [file] [log] [blame]
Naresh G Solankiab5d6902016-10-15 18:13:55 +05301/*
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 <bootblock_common.h>
17#include <soc/gpio.h>
Barnali Sarkara5b10412016-11-28 14:53:12 +053018#include <variant/gpio.h>
Naresh G Solankiab5d6902016-10-15 18:13:55 +053019
20static void early_config_gpio(void)
21{
22 /* This is a hack for FSP because it does things in MemoryInit()
23 * which it shouldn't do. We have to prepare certain gpios here
24 * because of the brokenness in FSP. */
25 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
26}
27
28void bootblock_mainboard_init(void)
29{
30 early_config_gpio();
31}