ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property
This gets rid of the use of static irq mappings there. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
d8fdec1685
commit
b4a343e5b3
1 changed files with 4 additions and 4 deletions
|
@ -30,18 +30,18 @@
|
||||||
* set bit to 1 in allow bitfield to enable the wakeup settings on it
|
* set bit to 1 in allow bitfield to enable the wakeup settings on it
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned long s3c_irqwake_intallow = 1L << (IRQ_RTC - IRQ_EINT0) | 0xfL;
|
unsigned long s3c_irqwake_intallow = 1L << 30 | 0xfL;
|
||||||
unsigned long s3c_irqwake_eintallow = 0x0000fff0L;
|
unsigned long s3c_irqwake_eintallow = 0x0000fff0L;
|
||||||
|
|
||||||
int s3c_irq_wake(struct irq_data *data, unsigned int state)
|
int s3c_irq_wake(struct irq_data *data, unsigned int state)
|
||||||
{
|
{
|
||||||
unsigned long irqbit = 1 << (data->irq - IRQ_EINT0);
|
unsigned long irqbit = 1 << data->hwirq;
|
||||||
|
|
||||||
if (!(s3c_irqwake_intallow & irqbit))
|
if (!(s3c_irqwake_intallow & irqbit))
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
||||||
printk(KERN_INFO "wake %s for irq %d\n",
|
pr_info("wake %s for hwirq %lu\n",
|
||||||
state ? "enabled" : "disabled", data->irq);
|
state ? "enabled" : "disabled", data->hwirq);
|
||||||
|
|
||||||
if (!state)
|
if (!state)
|
||||||
s3c_irqwake_intmask |= irqbit;
|
s3c_irqwake_intmask |= irqbit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue