summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rex/mainboard.c
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2022-05-23 16:21:36 +0800
committerSubrata Banik <subratabanik@google.com>2022-07-01 07:23:27 +0000
commit5c02779ec80b47c902ec7c2abc5a0f6e61bb5c63 (patch)
tree8939337adacdfdb64f46e0cf9cb26446f4f2cede /src/mainboard/google/rex/mainboard.c
parentf6c52f46846b4d6157bc1cddbadbbece8a872afc (diff)
mb/google/rex: Add GPIO stubs
Add stubbed out GPIO configuration and perform GPIO initialization during bootblock, romstage and ramstage. BUG=b:224325352 TEST=util/abuild/abuild -p none -t google/rex -a -c max Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: I51426f9557dafc357fc54a971b6f76fac5323e0a Reviewed-on: https://review.coreboot.org/c/coreboot/+/64593 Reviewed-by: Tarun Tuli <taruntuli@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/rex/mainboard.c')
-rw-r--r--src/mainboard/google/rex/mainboard.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/rex/mainboard.c b/src/mainboard/google/rex/mainboard.c
index 3dc2c41d69..d7c31565b9 100644
--- a/src/mainboard/google/rex/mainboard.c
+++ b/src/mainboard/google/rex/mainboard.c
@@ -1,10 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include <baseboard/variants.h>
#include <device/device.h>
static void mainboard_init(void *chip_info)
{
- /* TODO: Perform mainboard initialization */
+ const struct pad_config *pads;
+ size_t num;
+ pads = variant_gpio_table(&num);
+ gpio_configure_pads(pads, num);
}
static void mainboard_enable(struct device *dev)