You need to sign in or sign up before continuing.
  1. 07 11月, 2012 1 次提交
  2. 01 10月, 2012 1 次提交
    • A
      gpio: pcf857x: select IRQ_DOMAIN · 901acf5b
      Arnd Bergmann 提交于
      Patch 6e20a0a4 "gpio: pcf857x: enable gpio_to_irq() support"
      added IRQ domain support to the pcf857x driver, but some configurations
      (e.g. davinci_all_defconfig) don't already enable CONFIG_IRQ_DOMAIN.
      
      Always selecting it from the Kconfig in this case is what other
      such drivers do as well, and avoids these build errors:
      
      Without this patch, building davinci_all_defconfig results in:
      
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_to_irq':
      drivers/gpio/gpio-pcf857x.c:167:2: error: implicit declaration of function 'irq_create_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_demux_work':
      drivers/gpio/gpio-pcf857x.c:183:3: error: implicit declaration of function 'irq_find_mapping'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_cleanup':
      drivers/gpio/gpio-pcf857x.c:218:3: error: implicit declaration of function 'irq_domain_remove'
      drivers/gpio/gpio-pcf857x.c: In function 'pcf857x_irq_domain_init':
      drivers/gpio/gpio-pcf857x.c:230:2: error: implicit declaration of function 'irq_domain_add_linear'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      901acf5b
  3. 22 9月, 2012 1 次提交
    • T
      gpio: introduce gpio-mvebu driver for Marvell SoCs · fefe7b09
      Thomas Petazzoni 提交于
      This driver aims at replacing the arch/arm/plat-orion/gpio.c driver,
      and is designed to be compatible with all Marvell EBU SoCs: Orion,
      Kirkwood, Dove, Armada 370/XP and Discovery.
      
      It has been successfully tested on Dove and Armada XP at the moment.
      
      Compared to the plat-orion driver, this new driver has the following
      added benefits:
      
       *) Support for Armada 370 and Armada XP
       *) It is integrated with the mvebu pinctrl driver so that GPIO pins
          are properly muxed, and the GPIO driver knows which GPIO pins are
          output-only or input-only.
       *) Properly placed in drivers/gpio
       *) More extensible mechanism to support platform differences. The
          plat-orion driver uses a simple mask-offset DT property, which
          works fine for Discovery MV78200 but not for Armada XP. The new
          driver uses different compatible strings to identify the different
          variants of the GPIO controllers.
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Gregory Clement <gregory.clement@free-electrons.com>
      Tested-by: NSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Tested-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      fefe7b09
  4. 21 9月, 2012 1 次提交
  5. 19 9月, 2012 2 次提交
    • P
      gpio: Add basic support for TWL6040 GPOs · 70ffd691
      Peter Ujfalusi 提交于
      TWL6040 provides GPO lines to be used for controlling external devices.The number
      of lines different between versions: twl6040 have 3 GPO while TWL6041 have 1.
      Signed-off-by: NSergio Aguirre <saaguirre@ti.com>
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      70ffd691
    • T
      gpio: Add Avionic Design N-bit GPIO expander support · 5e969a40
      Thierry Reding 提交于
      This commit adds a driver for the Avionic Design N-bit GPIO expander.
      The expander provides a variable number of GPIO pins with interrupt
      support.
      
      Changes in v2:
      - allow building the driver as a module
      - assign of_node unconditionally
      - use linear mapping IRQ domain
      - properly cleanup IRQ domain
      - add OF device table and annotate device tables
      - emulate rising and falling edge triggers
      - increase #gpio-cells to 2
      - drop support for !OF
      - use IS_ENABLED to conditionalize DEBUG_FS code
      
      Changes in v3:
      - make IRQ support runtime configurable (interrupt-controller property)
      - drop interrupt-controller and #interrupt-cells from DT binding
      - add inline to_adnp() function to wrap container_of() macro
      - consistently use adnp as name for struct adnp variables
      - remove irq_mask_cur and rename irq_mask to irq_enable
      - fix a subtle deadlock in adnp_gpio_direction_output()
      - remove dynamic allocations from debugfs code
      - rename regs to num_regs to avoid confusion
      - annotate non-trivial code with comments
      - don't acquire mutex in adnp_gpio_get()
      - assume NO_IRQ == 0
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: linux-kernel@vger.kernel.org
      Acked-by: NRob Herring <rob.herring@calxeda.com>
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5e969a40
  6. 01 9月, 2012 2 次提交
    • A
      gpio: Remove broken mark for da9052 gpio driver · 1c4fe3aa
      Axel Lin 提交于
      The fix for MFD part is merged so remove the broken mark for da9052 gpio driver.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      1c4fe3aa
    • A
      gpio: mc9s08dz60: Fix build error if I2C=m · 4c30aa33
      Axel Lin 提交于
      Make GPIO_MC9S08DZ60 depend on I2C=y, this fixes below build error:
      
        LD      init/built-in.o
      drivers/built-in.o: In function `mc9s08dz60_get_value':
      clk-fixed-factor.c:(.text+0x7214): undefined reference to `i2c_smbus_read_byte_data'
      drivers/built-in.o: In function `mc9s08dz60_set':
      clk-fixed-factor.c:(.text+0x727c): undefined reference to `i2c_smbus_read_byte_data'
      clk-fixed-factor.c:(.text+0x72bc): undefined reference to `i2c_smbus_write_byte_data'
      drivers/built-in.o: In function `mc9s08dz60_i2c_driver_init':
      clk-fixed-factor.c:(.init.text+0x290): undefined reference to `i2c_register_driver'
      drivers/built-in.o: In function `mc9s08dz60_i2c_driver_exit':
      clk-fixed-factor.c:(.exit.text+0x2c): undefined reference to `i2c_del_driver'
      make: *** [vmlinux] Error 1
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4c30aa33
  7. 25 7月, 2012 1 次提交
  8. 18 7月, 2012 1 次提交
  9. 12 7月, 2012 1 次提交
  10. 05 7月, 2012 1 次提交
  11. 23 5月, 2012 1 次提交
  12. 21 5月, 2012 1 次提交
  13. 19 5月, 2012 1 次提交
  14. 18 5月, 2012 1 次提交
    • M
      gpio: Emma Mobile GPIO driver V2 · a07e103e
      Magnus Damm 提交于
      This patch is V2 of the Emma Mobile GPIO driver. This
      driver is designed to be reusable between multiple SoCs
      that share the same basic building block, but so far it
      has only been used on Emma Mobile EV2.
      
      Each driver instance handles 32 GPIOs with individually
      maskable IRQs. The driver operates on two I/O memory
      ranges and the 32 GPIOs are hooked up to two interrupts.
      
      In the case of Emma Mobile EV2 this GPIO building block
      is used as main external interrupt controller hooking up
      159 GPIOS as 159 interrupts via 5 driver instances and
      10 interrupts to the GIC and the Cortex-A9 Dual.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      a07e103e
  15. 12 5月, 2012 2 次提交
  16. 09 5月, 2012 2 次提交
  17. 01 5月, 2012 1 次提交
  18. 11 4月, 2012 1 次提交
  19. 08 4月, 2012 1 次提交
  20. 07 4月, 2012 1 次提交
  21. 23 3月, 2012 1 次提交
  22. 17 3月, 2012 1 次提交
  23. 04 2月, 2012 1 次提交
    • S
      gpio: Add a driver for Sodaville GPIO controller · b43ab901
      Sebastian Andrzej Siewior 提交于
      Sodaville has GPIO controller behind the PCI bus. To my suprissed it is
      not the same as on PXA.
      
      The interrupt & gpio chip can be referenced from the device tree like
      from any other driver. Unfortunately the driver which uses the gpio
      interrupt has to use irq_of_parse_and_map() instead of
      platform_get_irq(). The problem is that the platform device (which is
      created from the device tree) is most likely created before the
      interrupt chip is registered and therefore irq_of_parse_and_map() fails.
      
      In theory the driver works as module. In reality most of the irq
      functions are not exported to modules and it is possible that _this_
      module is unloaded while the provided irqs are still in use.
      Signed-off-by: NHans J. Koch <hjk@linutronix.de>
      [torbenh@linutronix.de: make it work after the irq namespace cleanup,
      	                add some device tree entries.]
      Signed-off-by: NTorben Hohn <torbenh@linutronix.de>
      [bigeasy@linutronix.de: convert to generic irq & gpio chip]
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      [grant.likely@secretlab.ca: depend on x86 to avoid irq_domain breakage]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      b43ab901
  24. 30 1月, 2012 1 次提交
  25. 18 1月, 2012 1 次提交
  26. 05 1月, 2012 1 次提交
  27. 03 1月, 2012 1 次提交
  28. 20 12月, 2011 1 次提交
  29. 13 12月, 2011 1 次提交
  30. 28 11月, 2011 1 次提交
  31. 15 11月, 2011 1 次提交
  32. 24 10月, 2011 1 次提交
    • A
      mfd: remove CONFIG_MFD_SUPPORT · 8a0a8e8e
      Arnd Bergmann 提交于
      We currently have two symbols to control compilation the MFD subsystem,
      MFD_SUPPORT and MFD_CORE. The MFD_SUPPORT is actually not required
      at all, it only hides the submenu when not set, with the effect that
      Kconfig warns about missing dependencies when another driver selects
      an MFD driver while MFD_SUPPORT is disabled. Turning the MFD submenu
      back from menuconfig into a plain menu simplifies the Kconfig syntax
      for those kinds of users and avoids the surprise when the menu
      suddenly appears because another driver was enabled that selects this
      symbol.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      8a0a8e8e
  33. 06 10月, 2011 2 次提交
  34. 23 9月, 2011 1 次提交
  35. 21 9月, 2011 1 次提交
    • K
      gpio/samsung: gpio-samsung.c to support Samsung GPIOs · 1b39d5f2
      Kukjin Kim 提交于
      This patch adds support for Samsung GPIOs with one gpio driver
      and removes old GPIO drivers which are drivers/gpio-s3c24xx.c,
      gpio-s3c64xx.c, gpio-s5p64x0.c, gpio-s5pc100.c, gpio-s5pv210.c,
      gpio-exynos4.c, gpio-plat-samsung.c, plat-samsung/gpio-config.c
      and gpio.c to support each Samsung SoCs before. Because the
      gpio-samsung.c can replace old Samsung GPIO drivers.
      Basically, the gpio-samsung.c has been made by their merging
      and removing duplicated definitions.
      
      Note: gpio-samsung.c includes some SoC dependent codes and it
      will be replaced next time.
      
      Cc: Ben Dooks <ben-linux@fluff.org>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      [kgene.kim@samsung.com: squash the removing and adding patches]
      [kgene.kim@samsung.com: fixes bug during to register of gpio_chips]
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      1b39d5f2