summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 21:45:18 +0300
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 06:27:19 +0300
commit022256b95b134dc62317d4aba11510add00a0c28 (patch)
treef9b41bf2699ef6d6f16dc9cf9ec09f9c8df557b8 /include
parent94c5ad2534248e562abf1b083cc308fc1b3cd1e1 (diff)
downloadu-boot-022256b95b134dc62317d4aba11510add00a0c28.tar.xz
p2sb: Add some definitions used for ACPI
Allow this header to be included in ASL files by adding a header guard and a few definitions that are needed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/p2sb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/p2sb.h b/include/p2sb.h
index 93e1155dca..a25170e3d1 100644
--- a/include/p2sb.h
+++ b/include/p2sb.h
@@ -10,6 +10,12 @@
/* Port Id lives in bits 23:16 and register offset lives in 15:0 of address */
#define PCR_PORTID_SHIFT 16
+#if !defined(__ACPI__)
+
+/* These registers contain IOAPIC and HPET devfn */
+#define PCH_P2SB_IBDF 0x6c
+#define PCH_P2SB_HBDF 0x70
+
/**
* struct p2sb_child_platdata - Information about each child of a p2sb device
*
@@ -164,4 +170,6 @@ int p2sb_get_port_id(struct udevice *dev);
*/
void *pcr_reg_address(struct udevice *dev, uint offset);
+#endif /* !__ACPI__ */
+
#endif