summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/bootblock.c
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2020-11-26 12:58:10 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-12-02 23:00:36 +0000
commit5e053af7a677d0c1f98e624057ba7409f8492596 (patch)
tree02ecdedb929d66da09b00e8c9c87510d83a0f4d4 /src/mainboard/google/brya/bootblock.c
parent50886827b59e9f7ed4d583a4ad91c2a24748a1a2 (diff)
mb/google/brya: Add GPIO stubs
Add stubbed out GPIO configuration and perform GPIO initialization during bootblock and ramstage. BUG=b:174266035 TEST=Build Test Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ia658ab4b466242cf8658abb239f19a9c0a03849a Reviewed-on: https://review.coreboot.org/c/coreboot/+/48065 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/bootblock.c')
-rw-r--r--src/mainboard/google/brya/bootblock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/bootblock.c b/src/mainboard/google/brya/bootblock.c
index 8a7b93a968..817dd0fa42 100644
--- a/src/mainboard/google/brya/bootblock.c
+++ b/src/mainboard/google/brya/bootblock.c
@@ -1,8 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include <baseboard/variants.h>
#include <bootblock_common.h>
void bootblock_mainboard_init(void)
{
- /* TODO: Perform mainboard initialization */
+ const struct pad_config *pads;
+ size_t num;
+ pads = variant_early_gpio_table(&num);
+ gpio_configure_pads(pads, num);
}