source: trunk/target/linux/brcm47xx/patches-3.0/0026-bcma-export-needed-gpio-functions.patch @ 27902

Last change on this file since 27902 was 27902, checked in by hauke, 5 years ago

brcm47xx: update patches

  • this adds sflash support for ssb devices
  • the flash is now a platform device
  • minor updates
File size: 1.5 KB
  • drivers/bcma/driver_chipcommon.c

    From f6e41db3ee7ead99e1398def222c14893fc265de Mon Sep 17 00:00:00 2001
    From: Hauke Mehrtens <hauke@hauke-m.de>
    Date: Thu, 4 Aug 2011 21:09:48 +0200
    Subject: [PATCH 26/26] bcma: export needed gpio functions
    
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
    ---
     drivers/bcma/driver_chipcommon.c |    5 +++++
     1 files changed, 5 insertions(+), 0 deletions(-)
    
    a b u32 bcma_chipco_gpio_in(struct bcma_drv_ 
    8080{ 
    8181        return bcma_cc_read32(cc, BCMA_CC_GPIOIN) & mask; 
    8282} 
     83EXPORT_SYMBOL_GPL(bcma_chipco_gpio_in); 
    8384 
    8485u32 bcma_chipco_gpio_out(struct bcma_drv_cc *cc, u32 mask, u32 value) 
    8586{ 
    8687        return bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUT, mask, value); 
    8788} 
     89EXPORT_SYMBOL_GPL(bcma_chipco_gpio_out); 
    8890 
    8991u32 bcma_chipco_gpio_outen(struct bcma_drv_cc *cc, u32 mask, u32 value) 
    9092{ 
    9193        return bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUTEN, mask, value); 
    9294} 
     95EXPORT_SYMBOL_GPL(bcma_chipco_gpio_outen); 
    9396 
    9497u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value) 
    9598{ 
    u32 bcma_chipco_gpio_intmask(struct bcma 
    101104{ 
    102105        return bcma_cc_write32_masked(cc, BCMA_CC_GPIOIRQ, mask, value); 
    103106} 
     107EXPORT_SYMBOL_GPL(bcma_chipco_gpio_intmask); 
    104108 
    105109u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value) 
    106110{ 
    107111        return bcma_cc_write32_masked(cc, BCMA_CC_GPIOPOL, mask, value); 
    108112} 
     113EXPORT_SYMBOL_GPL(bcma_chipco_gpio_polarity); 
    109114 
    110115#ifdef CONFIG_BCMA_DRIVER_MIPS 
    111116void bcma_chipco_serial_init(struct bcma_drv_cc *cc) 
Note: See TracBrowser for help on using the repository browser.