Kenneth Chan has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59978 )
Change subject: mb/google/guybrush/var/dewatt: Override SPKR_EN GPIO ......................................................................
mb/google/guybrush/var/dewatt: Override SPKR_EN GPIO
Override SPKR_EN GPIO for dewatt.
BUG=b:208172493 TEST=emerge-guybrush coreboot chromeos-bootimage
Signed-off-by: Kenneth Chan kenneth.chan@quanta.corp-partner.google.com Change-Id: Idf705e12f30ad145449be8d97cb214c56c02ec33 --- M src/mainboard/google/guybrush/variants/dewatt/Makefile.inc A src/mainboard/google/guybrush/variants/dewatt/gpio.c 2 files changed, 24 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/59978/1
diff --git a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc index 88e75bd..dcdc83b 100644 --- a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc +++ b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc @@ -1,3 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-or-later
+bootblock-y += gpio.c +romstage-y += gpio.c +ramstage-y += gpio.c +verstage-y += gpio.c + subdirs-y += ./memory + +smm-y += gpio.c diff --git a/src/mainboard/google/guybrush/variants/dewatt/gpio.c b/src/mainboard/google/guybrush/variants/dewatt/gpio.c new file mode 100644 index 0000000..9bf3532 --- /dev/null +++ b/src/mainboard/google/guybrush/variants/dewatt/gpio.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <boardid.h> +#include <gpio.h> +#include <soc/gpio.h> +#include <baseboard/variants.h> +/* This table is used by dewatt*/ +static const struct soc_amd_gpio bid_override_gpio_table[] = { + /* EN_SPKR */ + PAD_GPO(GPIO_70, HIGH), +}; +const struct soc_amd_gpio *variant_override_gpio_table(size_t *size) +{ + *size = ARRAY_SIZE(bid_override_gpio_table); + return bid_override_gpio_table; +}