From d76beb812915826e9dee6b7edf44d69faa5569e5 Mon Sep 17 00:00:00 2001 From: YH Lin Date: Thu, 6 Apr 2023 12:41:18 -0700 Subject: [PATCH] mb/google/rex: add variant gpio tables for variant creation BUG=b:276818954 TEST=new_variant_fulltest.sh rex0 BRANCH=None Signed-off-by: YH Lin Change-Id: Iebc098f8d480ac3e1835b00861fd844d97f281a8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74257 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Subrata Banik Reviewed-by: Paul Fagerburg Reviewed-by: Kapil Porwal --- .../google/rex0/template/Makefile.inc | 5 ++++ util/mainboard/google/rex0/template/gpio.c | 30 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 util/mainboard/google/rex0/template/Makefile.inc create mode 100644 util/mainboard/google/rex0/template/gpio.c diff --git a/util/mainboard/google/rex0/template/Makefile.inc b/util/mainboard/google/rex0/template/Makefile.inc new file mode 100644 index 0000000000..6c29346470 --- /dev/null +++ b/util/mainboard/google/rex0/template/Makefile.inc @@ -0,0 +1,5 @@ +bootblock-y += gpio.c + +romstage-y += gpio.c + +ramstage-y += gpio.c diff --git a/util/mainboard/google/rex0/template/gpio.c b/util/mainboard/google/rex0/template/gpio.c new file mode 100644 index 0000000000..b6e346f5a4 --- /dev/null +++ b/util/mainboard/google/rex0/template/gpio.c @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include +#include +#include +#include + +const struct pad_config *variant_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} + +const struct pad_config *variant_early_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} + +static const struct cros_gpio cros_gpios[] = { +}; + +DECLARE_CROS_GPIOS(cros_gpios); + +const struct pad_config *variant_romstage_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +}