PMC Driver : Expose the power gate status for BYT
PATCH 2/3 PMC Driver : Expose the power gate status for BYT
The PSS register reflects the power state of each island on SoC. It would be useful to know which of the islands is on or off at the momemnt. This interface would help indicate the S0ix blocker IPs in the system.
Signed-off-by Andy Shevchenko <[email protected]>
Signed-off-by Kumar P Mahesh <[email protected]>
--- arch/x86/include/asm/pmc_atom.h | 23 ++++++++++++++ arch/x86/kernel/pmc_atom.c | 63 +++++++++++++++++++++++++++++++++++---- 2 files changed, 81 insertions(+), 5 deletions(-)
arch/x86/include/asm/pmc_atom.h +23 -0
@@ -44,6 +44,29 @@ BIT_ORED_DEDICATED_IRQ_GPSC | \ BIT_SHARED_IRQ_GPSS) +/* Power gate status register */ +#define PMC_PSS 0x98 + +#define PMC_PSS_BIT_GBE BIT(0) +#define PMC_PSS_BIT_SATA BIT(1) +#define PMC_PSS_BIT_HDA BIT(2) +#define PMC_PSS_BIT_SEC BIT(3) +#define PMC_PSS_BIT_PCIE BIT(4) +#define PMC_PSS_BIT_LPSS BIT(5) +#define PMC_PSS_BIT_LPE BIT(6) +#define PMC_PSS_BIT_DFX BIT(7) +#define PMC_PSS_BIT_USH_CTRL BIT(8) +#define PMC_PSS_BIT_USH_SUS BIT(9) +#define PMC_PSS_BIT_USH_VCCS BIT(10) +#define PMC_PSS_BIT_USH_VCCA BIT(11) +#define PMC_PSS_BIT_OTG_CTRL BIT(12) +#define PMC_PSS_BIT_OTG_VCCS BIT(13) +#define PMC_PSS_BIT_OTG_VCCA_CLK BIT(14) +#define PMC_PSS_BIT_OTG_VCCA BIT(15) +#define PMC_PSS_BIT_USB BIT(16) +#define PMC_PSS_BIT_USB_SUS BIT(17) + +/* The timers acumulate time spent in sleep state */ #define PMC_S0IR_TMR 0x80#define PMC_S0I1_TMR 0x84
arch/x86/kernel/pmc_atom.c +58 -5
99 lines not on this page · raw message
Signature · 1 line
1.7.9.5