Eric Lai | 5088682 | 2020-11-26 12:10:39 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
Eric Lai | 5e053af | 2020-11-26 12:58:10 +0800 | [diff] [blame] | 3 | #include <baseboard/variants.h> |
Eric Lai | 5088682 | 2020-11-26 12:10:39 +0800 | [diff] [blame] | 4 | #include <bootblock_common.h> |
| 5 | |
Tim Wawrzynczak | 3b7b06d | 2021-04-02 12:11:08 -0600 | [diff] [blame] | 6 | void bootblock_mainboard_early_init(void) |
Eric Lai | 5088682 | 2020-11-26 12:10:39 +0800 | [diff] [blame] | 7 | { |
Eric Lai | 5e053af | 2020-11-26 12:58:10 +0800 | [diff] [blame] | 8 | const struct pad_config *pads; |
| 9 | size_t num; |
| 10 | pads = variant_early_gpio_table(&num); |
| 11 | gpio_configure_pads(pads, num); |
Eric Lai | 5088682 | 2020-11-26 12:10:39 +0800 | [diff] [blame] | 12 | } |