Angel Pons | b6636b0 | 2020-04-05 13:21:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 2 | |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <bootblock_common.h> |
| 5 | #include <soc/gpio.h> |
| 6 | |
Michael Niewöhner | 3a2d400 | 2020-12-21 03:46:58 +0100 | [diff] [blame] | 7 | void bootblock_mainboard_early_init(void) |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 8 | { |
Tim Wawrzynczak | 08eca5d | 2019-08-07 15:33:04 -0600 | [diff] [blame] | 9 | const struct pad_config *variant_early_table; |
| 10 | size_t variant_gpios; |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 11 | |
Tim Wawrzynczak | 08eca5d | 2019-08-07 15:33:04 -0600 | [diff] [blame] | 12 | variant_early_table = variant_early_gpio_table(&variant_gpios); |
| 13 | gpio_configure_pads(variant_early_table, variant_gpios); |
Shelley Chen | e3110b8 | 2018-12-10 12:59:01 -0800 | [diff] [blame] | 14 | } |