Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231412
b: refs/heads/master
c: 3c91697
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Kukjin Kim committed Dec 30, 2010
1 parent cf91289 commit d01490b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c35cd6ec36a619dfd72d95d719ac926511d3f0e4
refs/heads/master: 3c9169753b42c34c9c5ed96a0e55f417a2f65d77
9 changes: 5 additions & 4 deletions trunk/arch/arm/mach-s3c64xx/irq-eint.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
#include <plat/pm.h>

#define eint_offset(irq) ((irq) - IRQ_EINT(0))
#define eint_irq_to_bit(irq) (1 << eint_offset(irq))
#define eint_irq_to_bit(irq) ((u32)(1 << eint_offset(irq)))

static inline void s3c_irq_eint_mask(struct irq_data *data)
{
u32 mask;

mask = __raw_readl(S3C64XX_EINT0MASK);
mask |= eint_irq_to_bit(data->irq);
mask |= (u32)data->chip_data;
__raw_writel(mask, S3C64XX_EINT0MASK);
}

Expand All @@ -46,13 +46,13 @@ static void s3c_irq_eint_unmask(struct irq_data *data)
u32 mask;

mask = __raw_readl(S3C64XX_EINT0MASK);
mask &= ~eint_irq_to_bit(data->irq);
mask &= ~((u32)data->chip_data);
__raw_writel(mask, S3C64XX_EINT0MASK);
}

static inline void s3c_irq_eint_ack(struct irq_data *data)
{
__raw_writel(eint_irq_to_bit(data->irq), S3C64XX_EINT0PEND);
__raw_writel((u32)data->chip_data, S3C64XX_EINT0PEND);
}

static void s3c_irq_eint_maskack(struct irq_data *data)
Expand Down Expand Up @@ -198,6 +198,7 @@ static int __init s3c64xx_init_irq_eint(void)

for (irq = IRQ_EINT(0); irq <= IRQ_EINT(27); irq++) {
set_irq_chip(irq, &s3c_irq_eint);
set_irq_chip_data(irq, (void *)eint_irq_to_bit(irq));
set_irq_handler(irq, handle_level_irq);
set_irq_flags(irq, IRQF_VALID);
}
Expand Down

0 comments on commit d01490b

Please sign in to comment.