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>
This commit is contained in:
Andriy Skulysh
2006-09-27 16:20:22 +09:00
committed by Paul Mundt
parent ef48e8e349
commit 3aa770e797
21 changed files with 1124 additions and 22 deletions

View File

@@ -15,7 +15,6 @@
#define HP680_TS_ABS_Y_MIN 80
#define HP680_TS_ABS_Y_MAX 910
#define SCPCR 0xa4000116
#define PHDR 0xa400012e
#define SCPDR 0xa4000136
@@ -77,19 +76,6 @@ static irqreturn_t hp680_ts_interrupt(int irq, void *dev, struct pt_regs *regs)
static int __init hp680_ts_init(void)
{
u8 scpdr;
u16 scpcr;
scpdr = ctrl_inb(SCPDR);
scpdr |= SCPDR_TS_SCAN_X | SCPDR_TS_SCAN_Y;
scpdr &= ~SCPDR_TS_SCAN_ENABLE;
ctrl_outb(scpdr, SCPDR);
scpcr = ctrl_inw(SCPCR);
scpcr &= ~SCPCR_TS_MASK;
scpcr |= SCPCR_TS_ENABLE;
ctrl_outw(scpcr, SCPCR);
hp680_ts_dev = input_allocate_device();
if (!hp680_ts_dev)
return -ENOMEM;