linux-mips
[Top] [All Lists]

[PATCH v3 0/8] bcma/ssb/BCM47XX: add GPIO driver to ssb/bcma

To: john@phrozen.org, ralf@linux-mips.org
Subject: [PATCH v3 0/8] bcma/ssb/BCM47XX: add GPIO driver to ssb/bcma
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Wed, 21 Nov 2012 00:24:26 +0100
Cc: linux-mips@linux-mips.org, linux-wireless@vger.kernel.org, florian@openwrt.org, zajec5@gmail.com, m@bues.ch, Hauke Mehrtens <hauke@hauke-m.de>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
This is a complete rewrote of the original patch "MIPS: BCM47xx: use 
gpiolib"
Instead of providing the GPIO driver in the arch code it is now moved 
into ssb and bcma and could also be used by other systems. The GPIO 
functions in drivers/ssb/embedded.c are still used by arch/mips/bcm47xx
/wgt634u.c, but I am planing to write some code for baord detection and 
a driver for LED and the buttons, after that wgt634u.c could be removed.

This is based on mips/master tree.

v3:
 * make BCMA_DRIVER_GPIO and SSB_DRIVER_GPIO selectable in Kconfig
 * return -ENOTSUPP if the gpio driver is not activated
 * handle error -ENOTSUPP with debug message
 * do not lock *_gpio_in()
 * add comment above chip->base = 0

v2:
 * fix compile problem in ssb: add GPIO driver

Hauke Mehrtens (8):
  bcma: add locking around GPIO register accesses
  bcma: add bcma_chipco_gpio_pull{up,down}
  bcma: add comment to bcma_chipco_gpio_control
  bcma: add GPIO driver
  ssb: add ssb_chipco_gpio_pull{up,down}
  ssb: add locking around gpio register accesses
  ssb: add GPIO driver
  MIPS: BCM47XX: remove GPIO driver

 arch/mips/Kconfig                           |    2 +-
 arch/mips/bcm47xx/Kconfig                   |    2 +
 arch/mips/bcm47xx/Makefile                  |    2 +-
 arch/mips/bcm47xx/gpio.c                    |  102 ----------------
 arch/mips/include/asm/mach-bcm47xx/gpio.h   |  154 ++---------------------
 drivers/bcma/Kconfig                        |    9 ++
 drivers/bcma/Makefile                       |    1 +
 drivers/bcma/bcma_private.h                 |   10 ++
 drivers/bcma/driver_chipcommon.c            |   81 +++++++++++-
 drivers/bcma/driver_gpio.c                  |   98 +++++++++++++++
 drivers/bcma/main.c                         |    5 +
 drivers/ssb/Kconfig                         |    9 ++
 drivers/ssb/Makefile                        |    1 +
 drivers/ssb/driver_chipcommon.c             |   78 +++++++++++-
 drivers/ssb/driver_extif.c                  |   43 ++++++-
 drivers/ssb/driver_gpio.c                   |  176 +++++++++++++++++++++++++++
 drivers/ssb/main.c                          |    7 ++
 drivers/ssb/ssb_private.h                   |   17 +++
 include/linux/bcma/bcma_driver_chipcommon.h |   10 ++
 include/linux/ssb/ssb.h                     |    4 +
 include/linux/ssb/ssb_driver_chipcommon.h   |    3 +
 include/linux/ssb/ssb_driver_extif.h        |    1 +
 22 files changed, 551 insertions(+), 264 deletions(-)
 delete mode 100644 arch/mips/bcm47xx/gpio.c
 create mode 100644 drivers/bcma/driver_gpio.c
 create mode 100644 drivers/ssb/driver_gpio.c

-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>