summaryrefslogtreecommitdiffstats
path: root/resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-05-11 15:39:41 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-05-11 15:39:41 (EDT)
commit99acc1a92ca50b861da4406f0e8dd6c8af4c7e62 (patch)
treeec3774a9bced18f0a68883b150dce1872c87c5cf /resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch
parentdc322fb4521a4088c3f5ec41825c2508740ef8c1 (diff)
downloadlibreboot-99acc1a92ca50b861da4406f0e8dd6c8af4c7e62.zip
libreboot-99acc1a92ca50b861da4406f0e8dd6c8af4c7e62.tar.gz
libreboot-99acc1a92ca50b861da4406f0e8dd6c8af4c7e62.tar.bz2
scripts/download/coreboot: use diffs, not gerrit
Solves the problem where coreboot.org down down makes libreboot.git useless. Now if coreboot.org goes down, you can just use a backup coreboot repository and then run the script.
Diffstat (limited to 'resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch')
-rw-r--r--resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch b/resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch
new file mode 100644
index 0000000..1c659e8
--- /dev/null
+++ b/resources/libreboot/patch/0005-mainboard-lenovo-x200-Use-defines-from-southbridge-f.patch
@@ -0,0 +1,49 @@
+From 654222e8ccc7bf3e7d222a16aaeb3d5e2846b0d9 Mon Sep 17 00:00:00 2001
+From: Timothy Pearson <tpearson@raptorengineeringinc.com>
+Date: Mon, 6 Apr 2015 03:41:28 -0500
+Subject: [PATCH 05/22] mainboard/lenovo/x200: Use defines from southbridge for
+ GPIO config
+
+Change-Id: I9f65922d0785e06a173221b3262e73b575087dfd
+Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
+---
+ src/mainboard/lenovo/x200/romstage.c | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/src/mainboard/lenovo/x200/romstage.c b/src/mainboard/lenovo/x200/romstage.c
+index f232642..5f50f32 100644
+--- a/src/mainboard/lenovo/x200/romstage.c
++++ b/src/mainboard/lenovo/x200/romstage.c
+@@ -40,21 +40,21 @@
+
+ static void default_southbridge_gpio_setup(void)
+ {
+- outl(0x197e23fe, DEFAULT_GPIOBASE + 0x00);
+- outl(0xe1a66dfe, DEFAULT_GPIOBASE + 0x04);
+- outl(0xe3faef3f, DEFAULT_GPIOBASE + 0x0c);
++ outl(0x197e23fe, DEFAULT_GPIOBASE + GP_IO_USE_SEL);
++ outl(0xe1a66dfe, DEFAULT_GPIOBASE + GP_IO_SEL);
++ outl(0xe3faef3f, DEFAULT_GPIOBASE + GP_LVL);
+
+ /* Disable blink [31:0]. */
+- outl(0x00000000, DEFAULT_GPIOBASE + 0x18);
++ outl(0x00000000, DEFAULT_GPIOBASE + GPO_BLINK);
+ /* Set input inversion [31:0]. */
+- outl(0x00000102, DEFAULT_GPIOBASE + 0x2c);
++ outl(0x00000102, DEFAULT_GPIOBASE + GPI_INV);
+
+ /* Enable GPIOs [60:32]. */
+- outl(0x030306f6, DEFAULT_GPIOBASE + 0x30);
++ outl(0x030306f6, DEFAULT_GPIOBASE + GP_IO_USE_SEL2);
+ /* Set input/output mode [60:32] (0 == out, 1 == in). */
+- outl(0x1f55f9f1, DEFAULT_GPIOBASE + 0x34);
++ outl(0x1f55f9f1, DEFAULT_GPIOBASE + GP_IO_SEL2);
+ /* Set gpio levels [60:32]. */
+- outl(0x1dffff53, DEFAULT_GPIOBASE + 0x38);
++ outl(0x1dffff53, DEFAULT_GPIOBASE + GP_LVL2);
+ }
+
+ static void early_lpc_setup(void)
+--
+1.9.1
+