diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-09-21 16:06:46 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-01-16 09:26:05 +0100 |
commit | 77acc85ce797a4a19a46c9677dec5a9910c6e4e7 (patch) | |
tree | 788eb6758044f19d06d50595bea7b280099e2a31 /arch/arm/mach-mmp/pm-mmp2.c | |
parent | 028908f2ca6fc046a9932fb2d2f0409f4684ea41 (diff) | |
download | linux-77acc85ce797a4a19a46c9677dec5a9910c6e4e7.tar.gz linux-77acc85ce797a4a19a46c9677dec5a9910c6e4e7.tar.bz2 linux-77acc85ce797a4a19a46c9677dec5a9910c6e4e7.zip |
ARM: mmp: remove device definitions
Since all board support is now gone, a lot of code in the
platform is no longer called and can be removed as well.
The remaining parts are:
* The interrupt numbers for pxa910 are still needed for the
power management support.
* The 'mfp' device is still statically initialized from
platform code, though this could be moved into the
pinctrl code
* The CPU identification code is used for the cpu_is_mmp*()
macros.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-mmp/pm-mmp2.c')
-rw-r--r-- | arch/arm/mach-mmp/pm-mmp2.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/mach-mmp/pm-mmp2.c b/arch/arm/mach-mmp/pm-mmp2.c index 7a6f74c32d42..bd6563962d77 100644 --- a/arch/arm/mach-mmp/pm-mmp2.c +++ b/arch/arm/mach-mmp/pm-mmp2.c @@ -21,40 +21,6 @@ #include "addr-map.h" #include "pm-mmp2.h" #include "regs-icu.h" -#include "irqs.h" - -int mmp2_set_wake(struct irq_data *d, unsigned int on) -{ - unsigned long data = 0; - int irq = d->irq; - - /* enable wakeup sources */ - switch (irq) { - case IRQ_MMP2_RTC: - case IRQ_MMP2_RTC_ALARM: - data = MPMU_WUCRM_PJ_WAKEUP(4) | MPMU_WUCRM_PJ_RTC_ALARM; - break; - case IRQ_MMP2_PMIC: - data = MPMU_WUCRM_PJ_WAKEUP(7); - break; - case IRQ_MMP2_MMC2: - /* mmc use WAKEUP2, same as GPIO wakeup source */ - data = MPMU_WUCRM_PJ_WAKEUP(2); - break; - } - if (on) { - if (data) { - data |= __raw_readl(MPMU_WUCRM_PJ); - __raw_writel(data, MPMU_WUCRM_PJ); - } - } else { - if (data) { - data = ~data & __raw_readl(MPMU_WUCRM_PJ); - __raw_writel(data, MPMU_WUCRM_PJ); - } - } - return 0; -} static void pm_scu_clk_disable(void) { |