From b49fc60183045c582256c17d843fe1b001e5bc73 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Wed, 2 May 2012 11:09:26 +0900 Subject: [PATCH] CHERRY-PICK: ARM: EXYNOS4: Add PMU Wakeup-Stat Register Bits Change-Id: Id40ac31fe388bf266a013003e056d9dfe23d7404 Signed-off-by: MyungJoo Ham Signed-off-by: Kyungmin Park (cherry picked from commit c7284202121b663559e615e87ad447ea3f6177fb in branch charger-manager-for-next of git://git.infradead.org/users/kmpark/linux-2.6-samsung) BUG=chrome-os-partner:10617 TEST=build and boot to kernel prompt on snow Reviewed-on: https://gerrit.chromium.org/gerrit/40162 Reviewed-by: Sameer Nanda Commit-Queue: Simon Glass Tested-by: Simon Glass --- arch/arm/mach-exynos/include/mach/regs-pmu.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-exynos/include/mach/regs-pmu.h b/arch/arm/mach-exynos/include/mach/regs-pmu.h index e3b2302656f7d..ac2b1c14eba74 100644 --- a/arch/arm/mach-exynos/include/mach/regs-pmu.h +++ b/arch/arm/mach-exynos/include/mach/regs-pmu.h @@ -34,6 +34,15 @@ #define EXYNOS_SWRESET S5P_PMUREG(0x0400) #define S5P_WAKEUP_STAT S5P_PMUREG(0x0600) +#define S5P_WAKEUP_STAT_WKSRC_MASK (0x000ffe3f) +#define S5P_WAKEUP_STAT_SYSTIMER (1 << 14) +#define S5P_WAKEUP_STAT_AUDIO (1 << 13) +#define S5P_WAKEUP_STAT_MMC3 (1 << 12) +#define S5P_WAKEUP_STAT_MMC2 (1 << 11) +#define S5P_WAKEUP_STAT_RTCTICK (1 << 2) +#define S5P_WAKEUP_STAT_RTCALARM (1 << 1) +#define S5P_WAKEUP_STAT_EINT (1 << 0) + #define S5P_EINT_WAKEUP_MASK S5P_PMUREG(0x0604) #define S5P_WAKEUP_MASK S5P_PMUREG(0x0608) -- 2.39.5