summaryrefslogtreecommitdiff
path: root/board/glados/lfw/gpio.inc
diff options
context:
space:
mode:
Diffstat (limited to 'board/glados/lfw/gpio.inc')
-rw-r--r--board/glados/lfw/gpio.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/glados/lfw/gpio.inc b/board/glados/lfw/gpio.inc
new file mode 100644
index 0000000000..f7500436eb
--- /dev/null
+++ b/board/glados/lfw/gpio.inc
@@ -0,0 +1,19 @@
+/* -*- mode:c -*-
+ *
+ * Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Minimal set of GPIOs needed for LFW loader
+ */
+
+/* SPI PVT chip select */
+GPIO(PVT_CS0, PORT(14), 6, GPIO_ODR_HIGH)
+
+/* Alternate functions GPIO definition */
+/* UART */
+ALTERNATE(PORT(16), 0x24, 1, MODULE_UART, 0)
+/* SPI pins */
+ALTERNATE(PORT(5), 0x10, 1, MODULE_SPI, 0)
+ALTERNATE(PORT(16), 0x10, 1, MODULE_SPI, 0)
+ALTERNATE(PORT(15), 0x08, 1, MODULE_SPI, 0)