mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
62fba44d6d
commit
11e27ae92b
2 changed files with 14 additions and 9 deletions
|
@ -15,15 +15,6 @@
|
|||
#include <asm/io.h>
|
||||
#include <power/acpi_pmc.h>
|
||||
|
||||
enum {
|
||||
PM1_STS = 0x00,
|
||||
PM1_EN = 0x02,
|
||||
PM1_CNT = 0x04,
|
||||
|
||||
GPE0_STS = 0x20,
|
||||
GPE0_EN = 0x30,
|
||||
};
|
||||
|
||||
struct tco_regs {
|
||||
u32 tco_rld;
|
||||
u32 tco_sts;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue