Naresh G Solanki | ab5d690 | 2016-10-15 18:13:55 +0530 | [diff] [blame] | 1 | /* |
| 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 Sarkar | a5b1041 | 2016-11-28 14:53:12 +0530 | [diff] [blame] | 18 | #include <variant/gpio.h> |
Naresh G Solanki | ab5d690 | 2016-10-15 18:13:55 +0530 | [diff] [blame] | 19 | |
| 20 | static 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 | |
| 28 | void bootblock_mainboard_init(void) |
| 29 | { |
| 30 | early_config_gpio(); |
| 31 | } |