Ren Kuo has uploaded this change for review.

View Change

mb/google/dedede/var/lalala: Set write protection pin of CBI

Set `GPP_B16` pin to GPO of lalala hardware design change:
CBI_EEPROM_WP is changed to be controlled through an AP GPIO(GP_B16) with lock function

BUG=b:184592299
TEST=check the GPIO pin function

Signed-off-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Change-Id: I6a67cb49b6ba5147fb964cd468d4aa84cff3c4e4
---
M src/mainboard/google/dedede/variants/lalala/Makefile.inc
A src/mainboard/google/dedede/variants/lalala/gpio.c
2 files changed, 19 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/55352/1
diff --git a/src/mainboard/google/dedede/variants/lalala/Makefile.inc b/src/mainboard/google/dedede/variants/lalala/Makefile.inc
index 24c75d1..04eb9a4 100644
--- a/src/mainboard/google/dedede/variants/lalala/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/lalala/Makefile.inc
@@ -1,3 +1,4 @@
## SPDX-License-Identifier: GPL-2.0-or-later

+ramstage-y += gpio.c
ramstage-$(CONFIG_FW_CONFIG) += variant.c
diff --git a/src/mainboard/google/dedede/variants/lalala/gpio.c b/src/mainboard/google/dedede/variants/lalala/gpio.c
new file mode 100644
index 0000000..fb146f8
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/lalala/gpio.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+#include <commonlib/helpers.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
+/* Pad configuration in ramstage*/
+static const struct pad_config gpio_table[] = {
+ /* B6 : PCIE_CLKREQ1_N */
+ PAD_CFG_GPO(GPP_B16, 0, DEEP),
+};
+
+const struct pad_config *variant_override_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(gpio_table);
+ return gpio_table;
+}

To view, visit change 55352. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6a67cb49b6ba5147fb964cd468d4aa84cff3c4e4
Gerrit-Change-Number: 55352
Gerrit-PatchSet: 1
Gerrit-Owner: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Gerrit-MessageType: newchange