summaryrefslogtreecommitdiff
path: root/src/mainboard/google/glados/mainboard.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-07-24 13:06:12 -0500
committerAaron Durbin <adurbin@chromium.org>2015-08-14 15:13:26 +0200
commit9506aea3511d626da936df0cee431b6dcabb8734 (patch)
treea41385b9ee305c60a0f5b6cfabf04d176d6e0970 /src/mainboard/google/glados/mainboard.c
parentffdf901c765db8bb01006fa81839fb5703eea4e1 (diff)
downloadcoreboot-9506aea3511d626da936df0cee431b6dcabb8734.tar.xz
glados: move to native gpio configuration
Instead of relying on FSP to do gpio configuration in one place use the native support in coreboot. This also removes the open coded configuration of the memory configuration ids. BUG=chrome-os-partner:42982 BRANCH=None TEST=Built and booted glados. Original-Change-Id: I4655221d821d91a2270d774305a02d6bd5c3959c Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/289800 Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: I2e66242d050c3825f6bc65d3d2c7f51d2cdfbd73 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11175 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/google/glados/mainboard.c')
-rw-r--r--src/mainboard/google/glados/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/glados/mainboard.c b/src/mainboard/google/glados/mainboard.c
index 26b622ab1e..61a548578f 100644
--- a/src/mainboard/google/glados/mainboard.c
+++ b/src/mainboard/google/glados/mainboard.c
@@ -20,10 +20,14 @@
*/
#include <device/device.h>
+#include <stdlib.h>
#include "ec.h"
+#include "gpio.h"
static void mainboard_init(device_t dev)
{
+ gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
+
if (IS_ENABLED(CONFIG_GOOGLE_CHROME_EC))
mainboard_ec_init();
}