Angel Pons | 60ec365 | 2020-04-03 01:22:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 849e4f5 | 2016-01-25 17:02:11 -0600 | [diff] [blame] | 2 | |
Subrata Banik | 50b9258 | 2016-07-21 23:47:38 +0530 | [diff] [blame] | 3 | #include <bootblock_common.h> |
Aaron Durbin | 849e4f5 | 2016-01-25 17:02:11 -0600 | [diff] [blame] | 4 | #include <soc/gpio.h> |
| 5 | #include "gpio.h" |
| 6 | |
| 7 | static void early_config_gpio(void) |
| 8 | { |
| 9 | /* This is a hack for FSP because it does things in MemoryInit() |
Subrata Banik | 50b9258 | 2016-07-21 23:47:38 +0530 | [diff] [blame] | 10 | * which it shouldn't do. We have to prepare certain gpios here |
Aaron Durbin | 849e4f5 | 2016-01-25 17:02:11 -0600 | [diff] [blame] | 11 | * because of the brokenness in FSP. */ |
| 12 | gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); |
| 13 | } |
| 14 | |
Subrata Banik | 50b9258 | 2016-07-21 23:47:38 +0530 | [diff] [blame] | 15 | void bootblock_mainboard_init(void) |
Aaron Durbin | 849e4f5 | 2016-01-25 17:02:11 -0600 | [diff] [blame] | 16 | { |
Aaron Durbin | 849e4f5 | 2016-01-25 17:02:11 -0600 | [diff] [blame] | 17 | early_config_gpio(); |
| 18 | } |