<p>Marc Jones has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20311">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">google/kahlee: Add trackpad SMBIOS information<br><br>Change-Id: I5920f91eac06fa74056dab8bee789c1513c425fa<br>Signed-off-by: Marc Jones <marcj303@gmail.com><br>---<br>M src/mainboard/google/kahlee/mainboard.c<br>A src/mainboard/google/kahlee/onboard.h<br>2 files changed, 44 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/11/20311/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c<br>index 1150a3c..b5800b4 100644<br>--- a/src/mainboard/google/kahlee/mainboard.c<br>+++ b/src/mainboard/google/kahlee/mainboard.c<br>@@ -19,6 +19,8 @@<br> #include <agesawrapper.h><br> #include <amd_pci_util.h><br> #include <ec.h><br>+#include "onboard.h"<br>+#include <smbios.h><br> <br> /***********************************************************<br>  * These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.<br>@@ -76,7 +78,22 @@<br>      picr_data_ptr = mainboard_picr_data;<br> }<br> <br>+static int mainboard_smbios_data(device_t dev, int *handle,<br>+                             unsigned long *current)<br>+{<br>+ int len = 0;<br> <br>+      len += smbios_write_type41(<br>+          current, handle,<br>+             BOARD_TRACKPAD_NAME,            /* name */<br>+           BOARD_TRACKPAD_IRQ,             /* instance */<br>+               BOARD_TRACKPAD_I2C_BUS,         /* segment */<br>+                BOARD_TRACKPAD_I2C_ADDR,        /* bus */<br>+            0,                              /* device */<br>+         0);                             /* function */<br>+<br>+    return len;<br>+}<br> <br> /*************************************************<br>  * Dedicated mainboard function<br>@@ -89,8 +106,10 @@<br>        pirq_setup();<br> <br>      mainboard_ec_init();<br>+ dev->ops->get_smbios_data = mainboard_smbios_data;<br> }<br> <br>+<br> struct chip_operations mainboard_ops = {<br>         .enable_dev = kahlee_enable,<br> };<br>diff --git a/src/mainboard/google/kahlee/onboard.h b/src/mainboard/google/kahlee/onboard.h<br>new file mode 100644<br>index 0000000..d51eac2<br>--- /dev/null<br>+++ b/src/mainboard/google/kahlee/onboard.h<br>@@ -0,0 +1,25 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2014 Google Inc.<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>+#ifndef ONBOARD_H<br>+#define ONBOARD_H<br>+<br>+#define BOARD_TRACKPAD_NAME              "trackpad"<br>+#define BOARD_TRACKPAD_IRQ               29<br>+#define BOARD_TRACKPAD_WAKE_GPIO   5       /* AGPIO5 */<br>+#define BOARD_TRACKPAD_I2C_BUS           3       /* I2C3 */<br>+#define BOARD_TRACKPAD_I2C_ADDR            0x15<br>+<br>+#endif<br></pre><p>To view, visit <a href="https://review.coreboot.org/20311">change 20311</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/20311"/><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: I5920f91eac06fa74056dab8bee789c1513c425fa </div>
<div style="display:none"> Gerrit-Change-Number: 20311 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marc Jones <marc@marcjonesconsulting.com> </div>