summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/global_data.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-12 22:42:24 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:34:14 +0100
commit1b4f25ff8e6967f14494c5a0d173758a7a3ac279 (patch)
treea39976e85bb51d2ffb80a5480bd957ed68bc2b64 /arch/x86/include/asm/global_data.h
parent8e0df066ffc40fde4cf43014114f8e472b8b9bd6 (diff)
downloadtalos-obmc-uboot-1b4f25ff8e6967f14494c5a0d173758a7a3ac279.tar.gz
talos-obmc-uboot-1b4f25ff8e6967f14494c5a0d173758a7a3ac279.zip
x86: ivybridge: Add support for early GPIO init
When not relying on Coreboot for GPIO init the GPIOs must be set up correctly. This is currently done statically through a rather ugly method. As the GPIOs are figured out they can be moved to the device tree and set up as needed rather than all at the start. In this implementation, board files should call ich_gpio_set_gpio_map() before the GPIO driver is used in order to provide the GPIO information. We use the early PCI interface so that this driver can now be used before relocation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm/global_data.h')
-rw-r--r--arch/x86/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index ff9574c4cd..4ea46d79eb 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -33,6 +33,7 @@ struct arch_global_data {
uint32_t bist; /* Built-in self test value */
struct pci_controller *hose; /* PCI hose for early use */
enum pei_boot_mode_t pei_boot_mode;
+ const struct pch_gpio_map *gpio_map; /* board GPIO map */
};
#endif
OpenPOWER on IntegriCloud