summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-07-20 18:29:26 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:09 -0700
commit36e904eb688e194f20d0bdbbe5fc7b2b6c28df40 (patch)
treeea727b47146be51b8d5e111211599752efb2f13a /arch/x86/include
parent2db874cfcbfb004af122e06fb7e7d49cdcac9ee9 (diff)
Add some header files with stub implementations/definitions that vboot needs.
BUG=chrome-os-partner:4552 TEST=Built and booted u-boot on an Alex. Change-Id: I3d60b4e3c212976b160f0ca3a3b026a3945ca954 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://gerrit.chromium.org/gerrit/4702 Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@google.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/arch-coreboot/clock.h33
-rw-r--r--arch/x86/include/asm/arch-coreboot/gpio.h54
2 files changed, 87 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-coreboot/clock.h b/arch/x86/include/asm/arch-coreboot/clock.h
new file mode 100644
index 00000000000..f3fcd739863
--- /dev/null
+++ b/arch/x86/include/asm/arch-coreboot/clock.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2011 The Chromium OS Authors.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _CLOCK_H
+#define _CLOCK_H
+
+/* The clocks supported by the hardware */
+enum periph_id {
+ PERIPH_ID_FIRST,
+
+ PERIPH_ID_COUNT = PERIPH_ID_FIRST,
+};
+
+#endif
+
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 00000000000..f6e35867b49
--- /dev/null
+++ b/arch/x86/include/asm/arch-coreboot/gpio.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2011, Google Inc. All rights reserved.
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _I386_COREBOOT_GPIO_H_
+#define _I386_COREBOOT_GPIO_H_
+
+#include <common.h>
+
+static inline
+int gpio_direction_input(int gp)
+{
+ printf("gpio_direction_input used but not implemented.\n");
+ return 0;
+}
+
+static inline
+int gpio_direction_output(int gp, int value)
+{
+ printf("gpio_direction_output used but not implemented.\n");
+ return 0;
+}
+
+static inline
+int gpio_get_value(int gp)
+{
+ printf("gpio_get_value used but not implemented.\n");
+ return 0;
+}
+
+static inline
+void gpio_set_value(int gp, int value)
+{
+ printf("gpio_set_value used but not implemented.\n");
+}
+
+#endif /* _I386_COREBOOT_GPIO_H_ */