Angel Pons | 5c59680 | 2020-04-03 01:21:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 2 | |
| 3 | #include <bootblock_common.h> |
Elyes Haouas | 9aebc19 | 2023-01-30 20:02:03 +0100 | [diff] [blame^] | 4 | #include <gpio.h> |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 5 | #include <soc/southbridge.h> |
| 6 | |
| 7 | #include "../gpio.h" |
| 8 | |
Justin TerAvest | 23cff8b | 2018-02-28 11:45:02 -0700 | [diff] [blame] | 9 | void bootblock_mainboard_early_init(void) |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 10 | { |
| 11 | size_t num_gpios; |
Richard Spiegel | 6fcb9b0 | 2018-04-18 08:06:33 -0700 | [diff] [blame] | 12 | const struct soc_amd_gpio *gpios; |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 13 | gpios = early_gpio_table(&num_gpios); |
Felix Held | 7011fa1 | 2021-09-22 16:36:12 +0200 | [diff] [blame] | 14 | gpio_configure_pads(gpios, num_gpios); |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 15 | } |