diff options
author | Andriy Skulysh <askulysh@gmail.com> | 2006-09-27 03:20:22 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 03:20:22 -0400 |
commit | 3aa770e7972723f479122cf66b529017d2175289 (patch) | |
tree | f70d870381cec8034693704e346c53b311db688f /drivers/input/touchscreen | |
parent | ef48e8e3498605351f91f195cc9af0ef981b0dde (diff) |
sh: APM/PM support.
This adds some simple PM stubs and the basic APM interfaces,
primarily for use by hp6xx, where the existing userland
expects it.
Signed-off-by: Andriy Skulysh <askulysh@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/hp680_ts_input.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/input/touchscreen/hp680_ts_input.c b/drivers/input/touchscreen/hp680_ts_input.c index fa97e0f79e7e..ee6c2f40cdf6 100644 --- a/drivers/input/touchscreen/hp680_ts_input.c +++ b/drivers/input/touchscreen/hp680_ts_input.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #define HP680_TS_ABS_Y_MIN 80 | 15 | #define HP680_TS_ABS_Y_MIN 80 |
16 | #define HP680_TS_ABS_Y_MAX 910 | 16 | #define HP680_TS_ABS_Y_MAX 910 |
17 | 17 | ||
18 | #define SCPCR 0xa4000116 | ||
19 | #define PHDR 0xa400012e | 18 | #define PHDR 0xa400012e |
20 | #define SCPDR 0xa4000136 | 19 | #define SCPDR 0xa4000136 |
21 | 20 | ||
@@ -77,19 +76,6 @@ static irqreturn_t hp680_ts_interrupt(int irq, void *dev, struct pt_regs *regs) | |||
77 | 76 | ||
78 | static int __init hp680_ts_init(void) | 77 | static int __init hp680_ts_init(void) |
79 | { | 78 | { |
80 | u8 scpdr; | ||
81 | u16 scpcr; | ||
82 | |||
83 | scpdr = ctrl_inb(SCPDR); | ||
84 | scpdr |= SCPDR_TS_SCAN_X | SCPDR_TS_SCAN_Y; | ||
85 | scpdr &= ~SCPDR_TS_SCAN_ENABLE; | ||
86 | ctrl_outb(scpdr, SCPDR); | ||
87 | |||
88 | scpcr = ctrl_inw(SCPCR); | ||
89 | scpcr &= ~SCPCR_TS_MASK; | ||
90 | scpcr |= SCPCR_TS_ENABLE; | ||
91 | ctrl_outw(scpcr, SCPCR); | ||
92 | |||
93 | hp680_ts_dev = input_allocate_device(); | 79 | hp680_ts_dev = input_allocate_device(); |
94 | if (!hp680_ts_dev) | 80 | if (!hp680_ts_dev) |
95 | return -ENOMEM; | 81 | return -ENOMEM; |