summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-10 07:49:17 -0600
committerSimon Glass <sjg@chromium.org>2014-10-23 19:45:28 -0600
commitc15b0b86d1cf74b2ca5b340d9caf1517cee1cf9e (patch)
tree7b16184547136647455c0656d4d90b30e8e258f9 /arch
parent5dbcaa2128c50b4625f17ab2d9a5a8e5182441ba (diff)
downloadblackbird-obmc-uboot-c15b0b86d1cf74b2ca5b340d9caf1517cee1cf9e.tar.gz
blackbird-obmc-uboot-c15b0b86d1cf74b2ca5b340d9caf1517cee1cf9e.zip
dm: x86: Add a gpio header for coreboot
This code doesn't follow the normal approach of having its arch-specific definitions in an arch-specific directory. Add a new arch-specific file and make use of it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/arch-coreboot/gpio.h15
-rw-r--r--arch/x86/include/asm/gpio.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-coreboot/gpio.h b/arch/x86/include/asm/arch-coreboot/gpio.h
new file mode 100644
index 0000000000..3ec1816833
--- /dev/null
+++ b/arch/x86/include/asm/arch-coreboot/gpio.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2014, Google Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _X86_ARCH_GPIO_H_
+#define _X86_ARCH_GPIO_H_
+
+struct ich6_bank_platdata {
+ uint32_t base_addr;
+ const char *bank_name;
+};
+
+#endif /* _X86_ARCH_GPIO_H_ */
diff --git a/arch/x86/include/asm/gpio.h b/arch/x86/include/asm/gpio.h
index fe09f31515..8bda414dbd 100644
--- a/arch/x86/include/asm/gpio.h
+++ b/arch/x86/include/asm/gpio.h
@@ -6,6 +6,7 @@
#ifndef _X86_GPIO_H_
#define _X86_GPIO_H_
+#include <asm/arch/gpio.h>
#include <asm-generic/gpio.h>
#endif /* _X86_GPIO_H_ */
OpenPOWER on IntegriCloud