diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 17:35:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 17:35:58 +0000 |
commit | d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00 (patch) | |
tree | eee5d64b1e22c152cb66ffe352e6d0da53e4c41d /package/broadcom-diag | |
parent | ad6c3b6fef3328eca2f0752b4d0a00aeb9f4de45 (diff) | |
download | master-187ad058-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.tar.gz master-187ad058-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.tar.bz2 master-187ad058-d32ec10e8a7f6ff2ea61a353cbb26f5587a04f00.zip |
fix gpio interrupts on broadcom (thanks, jpcass)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7090 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r-- | package/broadcom-diag/src/gpio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/gpio.h b/package/broadcom-diag/src/gpio.h index 982caddae4..16f6ca41cd 100644 --- a/package/broadcom-diag/src/gpio.h +++ b/package/broadcom-diag/src/gpio.h @@ -68,7 +68,8 @@ static void gpio_set_irqenable(int enabled, irqreturn_t (*handler)(int, void *, else free_irq(irq, handler); - gpio_intmask(1, (enabled ? 1 : 0)); + if (ssb.chipco.dev) + ssb_write32_masked(ssb.chipco.dev, SSB_CHIPCO_IRQMASK, SSB_CHIPCO_IRQ_GPIO, (enabled ? SSB_CHIPCO_IRQ_GPIO : 0)); } #else |