<p>John Zhao would like John Zhao to <strong>review</strong> this change.</p><p><a href="https://review.coreboot.org/22129">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mainboard/intel/cannonlake_rvp: Enable variant gpio configuration<br><br>This patch refers to variant_gpio_table for board gpio configuration.<br><br>Change-Id: If5b4c20ceccb32fc1ab4246482d8fecb491777c4<br>Signed-off-by: John Zhao <john.zhao@intel.com><br>---<br>M src/mainboard/intel/cannonlake_rvp/Makefile.inc<br>A src/mainboard/intel/cannonlake_rvp/mainboard.c<br>2 files changed, 34 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/22129/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/intel/cannonlake_rvp/Makefile.inc b/src/mainboard/intel/cannonlake_rvp/Makefile.inc<br>index 247f171..7e82196 100644<br>--- a/src/mainboard/intel/cannonlake_rvp/Makefile.inc<br>+++ b/src/mainboard/intel/cannonlake_rvp/Makefile.inc<br>@@ -24,6 +24,7 @@<br> romstage-$(CONFIG_CHROMEOS) += chromeos.c<br> <br> ramstage-$(CONFIG_CHROMEOS) += chromeos.c<br>+ramstage-y += mainboard.c<br> <br> smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c<br> subdirs-y += variants/baseboard<br>diff --git a/src/mainboard/intel/cannonlake_rvp/mainboard.c b/src/mainboard/intel/cannonlake_rvp/mainboard.c<br>new file mode 100644<br>index 0000000..33b0bc9<br>--- /dev/null<br>+++ b/src/mainboard/intel/cannonlake_rvp/mainboard.c<br>@@ -0,0 +1,33 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright 2017 Intel Corp.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <baseboard/variants.h><br>+#include <device/device.h><br>+#include <soc/gpio.h><br>+#include <vendorcode/google/chromeos/chromeos.h><br>+#include <variant/gpio.h><br>+<br>+static void mainboard_init(void *chip_info)<br>+{<br>+     const struct pad_config *pads;<br>+       size_t num;<br>+<br>+       pads = variant_gpio_table(&num);<br>+ gpio_configure_pads(pads, num);<br>+}<br>+<br>+struct chip_operations mainboard_ops = {<br>+    .init = mainboard_init,<br>+};<br></pre><p>To view, visit <a href="https://review.coreboot.org/22129">change 22129</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22129"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If5b4c20ceccb32fc1ab4246482d8fecb491777c4 </div>
<div style="display:none"> Gerrit-Change-Number: 22129 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: John Zhao <john.zhao@intel.corp-partner.google.com> </div>
<div style="display:none"> Gerrit-Reviewer: John Zhao <john.zhao@intel.com> </div>