diff options
author | Marco Chen <marcochen@chromium.org> | 2019-07-15 08:50:35 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-07-16 16:32:35 +0000 |
commit | 8a6174d6e8925fed42b16b2d8db8c6403c1b3368 (patch) | |
tree | 0b92bbb60abb91d93074749d69102ad86aa721a6 /src/mainboard/google/octopus/bootblock.c | |
parent | 9310ff4b3df272c912347add5e45f270d003e2ed (diff) |
mb/google/octopus: add variant_early_override_gpio_table
Allow variants to override GPIO configurations of baseboard in the
bootblock stage.
BUG=b:137033609
BRANCH=octopus
TEST=built
Change-Id: I18d380cdf58f0f24e1bb1bff394ed8a91188a22c
Signed-off-by: Marco Chen <marcochen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34339
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/octopus/bootblock.c')
-rw-r--r-- | src/mainboard/google/octopus/bootblock.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/google/octopus/bootblock.c b/src/mainboard/google/octopus/bootblock.c index 0c239db369..4da3e94b83 100644 --- a/src/mainboard/google/octopus/bootblock.c +++ b/src/mainboard/google/octopus/bootblock.c @@ -21,8 +21,8 @@ void bootblock_mainboard_init(void) { - const struct pad_config *pads; - size_t num; + const struct pad_config *pads, *override_pads; + size_t num, override_num; lpc_configure_pads(); @@ -34,5 +34,7 @@ void bootblock_mainboard_init(void) mainboard_ec_init(); pads = variant_early_gpio_table(&num); - gpio_configure_pads(pads, num); + override_pads = variant_early_override_gpio_table(&override_num); + gpio_configure_pads_with_override(pads, num, + override_pads, override_num); } |