1. 26 8月, 2013 1 次提交
  2. 19 6月, 2013 1 次提交
  3. 17 6月, 2013 1 次提交
  4. 13 6月, 2013 1 次提交
  5. 12 6月, 2013 1 次提交
  6. 31 5月, 2013 1 次提交
  7. 21 5月, 2013 1 次提交
    • A
      gpio: mcp23s08: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m · 0f119a84
      Axel Lin 提交于
      This patch fixes below build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m &&
      CONFIG_GPIO_MCP23S08=y.
      
        LD      init/built-in.o
      drivers/built-in.o: In function `mcp23017_write':
      clkdev.c:(.text+0x1e14): undefined reference to `i2c_smbus_write_word_data'
      drivers/built-in.o: In function `mcp23017_read':
      clkdev.c:(.text+0x1e24): undefined reference to `i2c_smbus_read_word_data'
      drivers/built-in.o: In function `mcp23008_write':
      clkdev.c:(.text+0x1e8c): undefined reference to `i2c_smbus_write_byte_data'
      drivers/built-in.o: In function `mcp23008_read':
      clkdev.c:(.text+0x1e98): undefined reference to `i2c_smbus_read_byte_data'
      drivers/built-in.o: In function `mcp23008_read_regs':
      clkdev.c:(.text+0x1ed0): undefined reference to `i2c_smbus_read_byte_data'
      drivers/built-in.o: In function `mcp23s08_init':
      clkdev.c:(.init.text+0x30): undefined reference to `i2c_register_driver'
      drivers/built-in.o: In function `mcp23s08_exit':
      clkdev.c:(.exit.text+0x30): undefined reference to `i2c_del_driver'
      make: *** [vmlinux] Error 1
      
      When CONFIG_I2C=m, meaning we can't build the drivers in with I2C support.
      Thus don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.
      
      The real fix though is to break the driver apart into a SPI part, an I2C part
      and a common part. But that's something for 3.11 while this is something for
      3.10/stable.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      0f119a84
  8. 26 4月, 2013 1 次提交
  9. 16 4月, 2013 1 次提交
  10. 04 4月, 2013 1 次提交
  11. 03 4月, 2013 1 次提交
    • M
      gpio: Renesas R-Car GPIO driver V3 · 119f5e44
      Magnus Damm 提交于
      This patch is V3 of a GPIO driver for the R-Car series of
      SoCs from Renesas. 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 R-Car H1 (r8a7779).
      
      Each driver instance handles 32 GPIOs with individually
      maskable IRQs. The driver operates on a single I/O memory
      range and the 32 GPIOs are hooked up a single interrupt.
      
      In the case of R-Car H1 either external IRQ pins or GPIOs
      with interrupts can be used for on-board interupts. For
      external IRQs 4 pins are supported, and in the case of GPIO
      there are 202 GPIOS as 202 interrupts hooked up via 6 driver
      instances and to the GIC and the Cortex-A9 Quad.
      
      At this point this driver is interfacing as a regular
      platform device driver. In the future DT support will be
      submitted as an incremental feature patch.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      119f5e44
  12. 27 3月, 2013 1 次提交
  13. 14 2月, 2013 2 次提交
  14. 05 2月, 2013 1 次提交
  15. 31 1月, 2013 1 次提交
  16. 22 1月, 2013 2 次提交
  17. 20 12月, 2012 1 次提交
  18. 10 12月, 2012 1 次提交
  19. 03 12月, 2012 1 次提交
  20. 01 12月, 2012 1 次提交
  21. 30 11月, 2012 1 次提交
  22. 24 11月, 2012 1 次提交
  23. 20 11月, 2012 1 次提交
  24. 18 11月, 2012 2 次提交
  25. 07 11月, 2012 1 次提交
  26. 16 10月, 2012 2 次提交
  27. 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
  28. 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
  29. 21 9月, 2012 1 次提交
  30. 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
  31. 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
  32. 25 7月, 2012 1 次提交
  33. 18 7月, 2012 1 次提交
  34. 12 7月, 2012 1 次提交