7d172d4c93ba63073b4101c12cdcde7ee56fd585
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 0026-bcma-export-needed-gpio-functions.patch
1 From f6e41db3ee7ead99e1398def222c14893fc265de Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Thu, 4 Aug 2011 21:09:48 +0200
4 Subject: [PATCH 26/26] bcma: export needed gpio functions
5
6
7 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 ---
9 drivers/bcma/driver_chipcommon.c | 5 +++++
10 1 files changed, 5 insertions(+), 0 deletions(-)
11
12 --- a/drivers/bcma/driver_chipcommon.c
13 +++ b/drivers/bcma/driver_chipcommon.c
14 @@ -81,16 +81,19 @@ u32 bcma_chipco_gpio_in(struct bcma_drv_
15 {
16 return bcma_cc_read32(cc, BCMA_CC_GPIOIN) & mask;
17 }
18 +EXPORT_SYMBOL_GPL(bcma_chipco_gpio_in);
19
20 u32 bcma_chipco_gpio_out(struct bcma_drv_cc *cc, u32 mask, u32 value)
21 {
22 return bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUT, mask, value);
23 }
24 +EXPORT_SYMBOL_GPL(bcma_chipco_gpio_out);
25
26 u32 bcma_chipco_gpio_outen(struct bcma_drv_cc *cc, u32 mask, u32 value)
27 {
28 return bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUTEN, mask, value);
29 }
30 +EXPORT_SYMBOL_GPL(bcma_chipco_gpio_outen);
31
32 u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value)
33 {
34 @@ -102,11 +105,13 @@ u32 bcma_chipco_gpio_intmask(struct bcma
35 {
36 return bcma_cc_write32_masked(cc, BCMA_CC_GPIOIRQ, mask, value);
37 }
38 +EXPORT_SYMBOL_GPL(bcma_chipco_gpio_intmask);
39
40 u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value)
41 {
42 return bcma_cc_write32_masked(cc, BCMA_CC_GPIOPOL, mask, value);
43 }
44 +EXPORT_SYMBOL_GPL(bcma_chipco_gpio_polarity);
45
46 #ifdef CONFIG_BCMA_DRIVER_MIPS
47 void bcma_chipco_serial_init(struct bcma_drv_cc *cc)
This page took 0.04261 seconds and 3 git commands to generate.