aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/hatch/bootblock.c
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2019-08-07 15:33:04 -0600
committerMartin Roth <martinroth@google.com>2019-08-09 01:25:46 +0000
commit08eca5dcc3659e5211eec94ef4c3c3fc4bf5d90b (patch)
treedf04efbadf5334caaa210f0f13ac18b3e02afe83 /src/mainboard/google/hatch/bootblock.c
parentc6e37081749c3518a87a24b2b92bd9b0e293ebbf (diff)
mb/google/hatch: Refactor override_early_gpio_table
There was the potential for misuse of the override early GPIO table, because if the override early GPIO table did not have a corresponding entry in the base table, it would not get overridden, and there was no way to know except manual inspection (this has already happened here), so now all hatch mainboards are required to explicitly list out all of their required early GPIOs. TEST=booted several hatch boards, verified that they can communicate with TPM and successfully train memory Change-Id: I0552b08a284fd6fb41a09fef431a0d006b0cf0bd Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34782 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/mainboard/google/hatch/bootblock.c')
-rw-r--r--src/mainboard/google/hatch/bootblock.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mainboard/google/hatch/bootblock.c b/src/mainboard/google/hatch/bootblock.c
index 9534af11d9..15dfe933eb 100644
--- a/src/mainboard/google/hatch/bootblock.c
+++ b/src/mainboard/google/hatch/bootblock.c
@@ -19,18 +19,11 @@
static void early_config_gpio(void)
{
- const struct pad_config *base_early_table;
- const struct pad_config *override_early_table;
- size_t base_gpios;
- size_t override_gpios;
+ const struct pad_config *variant_early_table;
+ size_t variant_gpios;
- base_early_table = base_early_gpio_table(&base_gpios);
- override_early_table = override_early_gpio_table(&override_gpios);
-
- gpio_configure_pads_with_override(base_early_table,
- base_gpios,
- override_early_table,
- override_gpios);
+ variant_early_table = variant_early_gpio_table(&variant_gpios);
+ gpio_configure_pads(variant_early_table, variant_gpios);
}
void bootblock_mainboard_init(void)