summaryrefslogtreecommitdiffstats
path: root/include/power
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-07 21:32:33 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-07-17 14:32:24 +0800
commit11e27ae92b1b7596a2ad5755be119c14e68895ac (patch)
tree7033da8f6d325494a33ef2acc3708da9489f269b /include/power
parent62fba44d6d331d8faa3389cd84c24212a2d69cf3 (diff)
downloadu-boot-11e27ae92b1b7596a2ad5755be119c14e68895ac.tar.gz
u-boot-11e27ae92b1b7596a2ad5755be119c14e68895ac.tar.xz
u-boot-11e27ae92b1b7596a2ad5755be119c14e68895ac.zip
pmc: Move common registers to the header file
These registers need to be accesses from ACPI code, so move them to the header file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/acpi_pmc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/power/acpi_pmc.h b/include/power/acpi_pmc.h
index 1f50c23f5f..5fbf745136 100644
--- a/include/power/acpi_pmc.h
+++ b/include/power/acpi_pmc.h
@@ -6,10 +6,22 @@
#ifndef __ACPI_PMC_H
#define __ACPI_PMC_H
+#ifndef __ACPI__
+
enum {
GPE0_REG_MAX = 4,
};
+enum {
+ PM1_STS = 0x00,
+ PM1_EN = 0x02,
+ PM1_CNT = 0x04,
+ PM1_TMR = 0x08,
+
+ GPE0_STS = 0x20,
+ GPE0_EN = 0x30,
+};
+
/**
* struct acpi_pmc_upriv - holds common data for the x86 PMC
*
@@ -182,4 +194,6 @@ void pmc_dump_info(struct udevice *dev);
*/
int pmc_gpe_init(struct udevice *dev);
+#endif /* !__ACPI__ */
+
#endif