diff options
author | Zhou Jingyu <b02241@freescale.com> | 2011-05-13 16:09:47 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2011-05-18 14:24:42 +0800 |
commit | 055a883239e5941fb28bfd1df0654fb0e576568f (patch) | |
tree | 7a512f91b731b08688ea34181db9b777a15f50e0 | |
parent | 0016bfc6ced64572c6352a24cdd4ddf76ad14983 (diff) |
ENGR00143396-2 MX53 SMD: detect DA9053 version
detect DA9053 version to determin if other irqs can be used
as wakeup source
Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
-rw-r--r-- | arch/arm/mach-mx5/pm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/pm.c b/arch/arm/mach-mx5/pm.c index 3052374663a1..95cf4a2eb894 100644 --- a/arch/arm/mach-mx5/pm.c +++ b/arch/arm/mach-mx5/pm.c @@ -24,6 +24,7 @@ #include <linux/cpufreq.h> #include <linux/iram_alloc.h> #include <linux/fsl_devices.h> +#include <linux/mfd/da9052/da9052.h> #include <asm/mach-types.h> #include <asm/cacheflush.h> #include <asm/tlb.h> @@ -122,9 +123,11 @@ static int mx5_suspend_enter(suspend_state_t state) mx53_smd_loco_irq_wake_fixup(); da9053_suspend_cmd_sw(); } else { - /* for new OTP DA9053 board, comment out next */ - /* line to enable other irq for wakeup */ - mx53_smd_loco_irq_wake_fixup(); + /* for new OTP DA9053 board, enable other irq for wakeup */ + /* otherwise disable other wakeup sources */ + if (da9053_get_chip_version() != + DA9053_VERSION_BB) + mx53_smd_loco_irq_wake_fixup(); da9053_suspend_cmd_hw(); } } |