diff options
author | Tomasz Figa <t.figa@samsung.com> | 2014-07-02 13:40:44 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-07-18 15:32:18 -0400 |
commit | d78c16ccde96eddf42942c093b241b5e5135b777 (patch) | |
tree | 3bedb6c54ec937d57d8d9e3f473739a78c1ae5ad /arch/arm/plat-samsung/s5p-irq-pm.c | |
parent | 09ee2dac4c07016c6bc7577152822996c9a7c122 (diff) |
ARM: SAMSUNG: Remove remaining legacy code
After refactoring suspend/resume, which was last part with dependencies
on legacy code, all Kconfig symbols related to Samsung ATAGS support can
be deselected and more unused code removed. This includes most of s5p-*
code as well, as s5pv210 was their last user.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/s5p-irq-pm.c')
-rw-r--r-- | arch/arm/plat-samsung/s5p-irq-pm.c | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/arch/arm/plat-samsung/s5p-irq-pm.c b/arch/arm/plat-samsung/s5p-irq-pm.c deleted file mode 100644 index 52b16943617e..000000000000 --- a/arch/arm/plat-samsung/s5p-irq-pm.c +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
3 | * http://www.samsung.com | ||
4 | * | ||
5 | * Based on arch/arm/plat-s3c24xx/irq-pm.c, | ||
6 | * Copyright (c) 2003,2004 Simtec Electronics | ||
7 | * Ben Dooks <ben@simtec.co.uk> | ||
8 | * http://armlinux.simtec.co.uk/ | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/init.h> | ||
16 | #include <linux/module.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | |||
19 | #include <plat/cpu.h> | ||
20 | #include <plat/irqs.h> | ||
21 | #include <plat/pm.h> | ||
22 | #include <mach/map.h> | ||
23 | |||
24 | #include <mach/regs-gpio.h> | ||
25 | #include <mach/regs-irq.h> | ||
26 | |||
27 | /* state for IRQs over sleep */ | ||
28 | |||
29 | /* default is to allow for EINT0..EINT31, and IRQ_RTC_TIC, IRQ_RTC_ALARM, | ||
30 | * as wakeup sources | ||
31 | * | ||
32 | * set bit to 1 in allow bitfield to enable the wakeup settings on it | ||
33 | */ | ||
34 | |||
35 | unsigned long s3c_irqwake_intallow = 0x00000006L; | ||
36 | unsigned long s3c_irqwake_eintallow = 0xffffffffL; | ||
37 | |||
38 | int s3c_irq_wake(struct irq_data *data, unsigned int state) | ||
39 | { | ||
40 | unsigned long irqbit; | ||
41 | unsigned int irq_rtc_tic, irq_rtc_alarm; | ||
42 | |||
43 | irq_rtc_tic = IRQ_RTC_TIC; | ||
44 | irq_rtc_alarm = IRQ_RTC_ALARM; | ||
45 | |||
46 | if (data->irq == irq_rtc_tic || data->irq == irq_rtc_alarm) { | ||
47 | irqbit = 1 << (data->irq + 1 - irq_rtc_alarm); | ||
48 | |||
49 | if (!state) | ||
50 | s3c_irqwake_intmask |= irqbit; | ||
51 | else | ||
52 | s3c_irqwake_intmask &= ~irqbit; | ||
53 | } else { | ||
54 | return -ENOENT; | ||
55 | } | ||
56 | |||
57 | return 0; | ||
58 | } | ||
59 | |||
60 | static struct sleep_save eint_save[] = { | ||
61 | SAVE_ITEM(S5P_EINT_CON(0)), | ||
62 | SAVE_ITEM(S5P_EINT_CON(1)), | ||
63 | SAVE_ITEM(S5P_EINT_CON(2)), | ||
64 | SAVE_ITEM(S5P_EINT_CON(3)), | ||
65 | |||
66 | SAVE_ITEM(S5P_EINT_FLTCON(0)), | ||
67 | SAVE_ITEM(S5P_EINT_FLTCON(1)), | ||
68 | SAVE_ITEM(S5P_EINT_FLTCON(2)), | ||
69 | SAVE_ITEM(S5P_EINT_FLTCON(3)), | ||
70 | SAVE_ITEM(S5P_EINT_FLTCON(4)), | ||
71 | SAVE_ITEM(S5P_EINT_FLTCON(5)), | ||
72 | SAVE_ITEM(S5P_EINT_FLTCON(6)), | ||
73 | SAVE_ITEM(S5P_EINT_FLTCON(7)), | ||
74 | |||
75 | SAVE_ITEM(S5P_EINT_MASK(0)), | ||
76 | SAVE_ITEM(S5P_EINT_MASK(1)), | ||
77 | SAVE_ITEM(S5P_EINT_MASK(2)), | ||
78 | SAVE_ITEM(S5P_EINT_MASK(3)), | ||
79 | }; | ||
80 | |||
81 | int s3c24xx_irq_suspend(void) | ||
82 | { | ||
83 | s3c_pm_do_save(eint_save, ARRAY_SIZE(eint_save)); | ||
84 | |||
85 | return 0; | ||
86 | } | ||
87 | |||
88 | void s3c24xx_irq_resume(void) | ||
89 | { | ||
90 | s3c_pm_do_restore(eint_save, ARRAY_SIZE(eint_save)); | ||
91 | } | ||
92 | |||