summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 18:18:33 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 06:34:00 -0700
commit3e0332c0b90323ca3c0584e9ae5592b04b121bae (patch)
tree586ca4563946b2f1f83d6d451f33966e505f7030 /arch/x86/include/asm
parent4e7a6acac7a46cc5ab0ea7986cc9e74351eed165 (diff)
downloadu-boot-imx-3e0332c0b90323ca3c0584e9ae5592b04b121bae.zip
u-boot-imx-3e0332c0b90323ca3c0584e9ae5592b04b121bae.tar.gz
u-boot-imx-3e0332c0b90323ca3c0584e9ae5592b04b121bae.tar.bz2
x86: Add a simple header file for ACPI
We don't use many features yet, so this only has a few declarations. It will be expanded as needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/acpi.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h
new file mode 100644
index 0000000..4872b92
--- /dev/null
+++ b/arch/x86/include/asm/acpi.h
@@ -0,0 +1,24 @@
+/*
+ * From coreboot
+ *
+ * Copyright (C) 2004 SUSE LINUX AG
+ * Copyright (C) 2004 Nick Barker
+ * Copyright (C) 2008-2009 coresystems GmbH
+ * (Written by Stefan Reinauer <stepan@coresystems.de>)
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __ASM_ACPI_H
+#define __ASM_ACPI_H
+
+#define RSDP_SIG "RSD PTR " /* RSDT pointer signature */
+#define ACPI_TABLE_CREATOR "U-BootAC" /* Must be exactly 8 bytes long! */
+#define OEM_ID "U-Boot" /* Must be exactly 6 bytes long! */
+#define ASLC "U-Bo" /* Must be exactly 4 bytes long! */
+
+/* 0 = S0, 1 = S1 ...*/
+int acpi_get_slp_type(void);
+void apci_set_slp_type(int type);
+
+#endif