diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-12 22:42:18 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-12 22:42:18 +0000 |
commit | 811c287737892fe00307b9e7afb832fd459f6e6a (patch) | |
tree | 361f1acf0bb77a59cdddefa0a8427afb494fe932 /target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch | |
parent | 9c0265ae1924e58fd92470bc395ea63f1e9c81cf (diff) |
kernel: update bcma and ssb to master-2012-12-11-2 from wireless-testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34651 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch b/target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch index b8f72a12c6..d00a164eb9 100644 --- a/target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch +++ b/target/linux/brcm47xx/patches-3.6/501-bcma-add-gpio-driver.patch @@ -1,15 +1,15 @@ --- a/drivers/bcma/driver_chipcommon.c +++ b/drivers/bcma/driver_chipcommon.c -@@ -70,6 +70,8 @@ void bcma_core_chipcommon_init(struct bc - (leddc_off << BCMA_CC_GPIOTIMER_OFFTIME_SHIFT))); +@@ -158,6 +158,8 @@ void bcma_core_chipcommon_init(struct bc } + cc->ticks_per_ms = bcma_chipco_watchdog_ticks_per_ms(cc); + spin_lock_init(&cc->gpio_lock); + cc->setup_done = true; } -@@ -92,34 +94,81 @@ u32 bcma_chipco_irq_status(struct bcma_d +@@ -197,34 +199,81 @@ u32 bcma_chipco_irq_status(struct bcma_d u32 bcma_chipco_gpio_in(struct bcma_drv_cc *cc, u32 mask) { @@ -99,17 +99,17 @@ void bcma_chipco_serial_init(struct bcma_drv_cc *cc) --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h -@@ -551,6 +551,9 @@ struct bcma_drv_cc { - int nr_serial_ports; - struct bcma_serial_port serial_ports[4]; +@@ -555,6 +555,9 @@ struct bcma_drv_cc { #endif /* CONFIG_BCMA_DRIVER_MIPS */ + u32 ticks_per_ms; + struct platform_device *watchdog; + + /* Lock for GPIO register access. */ + spinlock_t gpio_lock; }; /* Register access */ -@@ -581,13 +584,22 @@ void bcma_chipco_irq_mask(struct bcma_dr +@@ -584,13 +587,22 @@ void bcma_chipco_irq_mask(struct bcma_dr u32 bcma_chipco_irq_status(struct bcma_drv_cc *cc, u32 mask); |