diff options
author | David Wu <david_wu@quanta.corp-partner.google.com> | 2018-09-14 20:55:10 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-19 09:23:49 +0000 |
commit | d1be92ce071933919d8c81b929e007264b88d3b0 (patch) | |
tree | 14b3e7382d5e7e8edb1648538052f33c556f1e48 /src/mainboard/google/fizz/bootblock.c | |
parent | aceaa71531e39042d98c6029313fc7d49a4c1d2b (diff) | |
download | coreboot-d1be92ce071933919d8c81b929e007264b88d3b0.tar.xz |
mb/google/fizz: Add variant API for gpio
Provide API for gpio table functionality. Default weak
implementations are provided from the baseboard.
BUG=b:117066935
BRANCH=Fizz
TEST=emerge-fizz coreboot
Change-Id: Iaafa8d6932bc0a37826175b15816f1b9a4f4c314
Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/28963
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/fizz/bootblock.c')
-rw-r--r-- | src/mainboard/google/fizz/bootblock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/google/fizz/bootblock.c b/src/mainboard/google/fizz/bootblock.c index 4114cd55c7..ce669ccb38 100644 --- a/src/mainboard/google/fizz/bootblock.c +++ b/src/mainboard/google/fizz/bootblock.c @@ -13,17 +13,17 @@ * GNU General Public License for more details. */ +#include <baseboard/variants.h> #include <bootblock_common.h> #include <soc/gpio.h> #include <variant/gpio.h> -static void early_config_gpio(void) -{ - gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); -} - void bootblock_mainboard_init(void) { - early_config_gpio(); + const struct pad_config *pads; + size_t num; + + pads = variant_early_gpio_table(&num); + gpio_configure_pads(pads, num); } |