1. 19 6月, 2014 1 次提交
  2. 15 1月, 2014 1 次提交
  3. 22 7月, 2013 1 次提交
    • D
      gpio: pxa: remove dead code · 5dbb7c63
      Daniel Mack 提交于
      Commit f8731174 ("ARM: mmp: add more compatible names in gpio driver")
      changed the driver logic to determine the number of available GPIOs from
      the compatible string, and hence obsoleted the (undocumented) child
      nodes that were previously necessary. However, it left some remainder
      which can be safely removed now.
      
      Also, this patch makes pxa_gpio_probe_dt() return the correct value in
      case irq_alloc_descs() fails.
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5dbb7c63
  4. 25 4月, 2013 1 次提交
  5. 11 4月, 2013 3 次提交
  6. 27 3月, 2013 2 次提交
  7. 25 1月, 2013 1 次提交
  8. 29 11月, 2012 1 次提交
  9. 15 11月, 2012 1 次提交
  10. 19 9月, 2012 1 次提交
  11. 01 9月, 2012 1 次提交
  12. 16 8月, 2012 2 次提交
  13. 14 8月, 2012 1 次提交
    • A
      GPIO: gpio-pxa: fix building without CONFIG_OF · f43e04ec
      Arnd Bergmann 提交于
      Commit 72121572 ("GPIO: gpio-pxa: fix devicetree functions") added an
      "xlate" function pointer to the irq_domain_ops, but this function is nor
      declared or defined anywhere when CONFIG_OF is disabled, causing the
      build error:
      
        drivers/gpio/gpio-pxa.c:532:11: error: 'irq_domain_xlate_twocell' undeclared here (not in a function)
      
      Extending the DT-only code section to cover the irq_domain_ops and the
      pxa_gpio_dt_ids solves this problem and makes it clearer which code is
      actually used without DT.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f43e04ec
  14. 05 8月, 2012 1 次提交
  15. 05 5月, 2012 1 次提交
  16. 27 4月, 2012 1 次提交
  17. 26 1月, 2012 1 次提交
  18. 15 11月, 2011 3 次提交
  19. 14 11月, 2011 4 次提交
  20. 02 10月, 2011 2 次提交
  21. 08 8月, 2011 1 次提交
  22. 11 7月, 2011 1 次提交
  23. 25 4月, 2011 1 次提交
  24. 29 3月, 2011 2 次提交
  25. 14 1月, 2011 1 次提交
  26. 03 7月, 2009 1 次提交
    • D
      [ARM] pxa: use kzalloc() in pxa_init_gpio_chip() · 4aa78264
      Daniel Mack 提交于
      As slab is available early now, use kzalloc() rather than
      alloc_bootmem_low() in pxa_init_gpio_chip().
      
      This removes the following boot time warning:
      
      <4>------------[ cut here ]------------
      <4>WARNING: at mm/bootmem.c:535 alloc_arch_preferred_bootmem+0x2c/0x54()
      <d>Modules linked in:
      [<c0029430>] (unwind_backtrace+0x0/0xdc) from [<c0036f64>] (warn_slowpath_common+0x4c/0x80)
      [<c0036f64>] (warn_slowpath_common+0x4c/0x80) from [<c000ede0>] (alloc_arch_preferred_bootmem+0x2c/0x54)
      [<c000ede0>] (alloc_arch_preferred_bootmem+0x2c/0x54) from [<c000f2e4>] (___alloc_bootmem_nopanic+0x34/0xd0)
      [<c000f2e4>] (___alloc_bootmem_nopanic+0x34/0xd0) from [<c000f6e4>] (___alloc_bootmem+0xc/0x34)
      [<c000f6e4>] (___alloc_bootmem+0xc/0x34) from [<c000cb20>] (pxa_init_gpio+0x48/0x228)
      [<c000cb20>] (pxa_init_gpio+0x48/0x228) from [<c0009794>] (init_IRQ+0x34/0x44)
      [<c0009794>] (init_IRQ+0x34/0x44) from [<c00089d4>] (start_kernel+0x144/0x264)
      [<c00089d4>] (start_kernel+0x144/0x264) from [<a0008034>] (0xa0008034)
      <4>---[ end trace 1b75b31a2719ed1c ]---
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
      4aa78264
  27. 27 4月, 2009 1 次提交
  28. 23 3月, 2009 1 次提交
    • E
      [ARM] pxa: move common GPIO handling code into plat-pxa · 38f539a6
      Eric Miao 提交于
      1. add common GPIO handling code into [arch/arm/plat-pxa]
      
      2. common code in <mach/gpio.h> moved into <plat/gpio.h>, new processors
         should implement its own <mach/gpio.h>, provide the following required
         definitions and '#include <plat/gpio.h>' in the end:
      
         - GPIO_REGS_VIRT for mapped virtual address of the GPIO registers'
           physical I/O memory
      
         - macros of GPLR(), GPSR(), GPDR() for constant optimization for
           functions gpio_{set,get}_value() (so that bit-bang code can still
           have tolerable performance)
      
         - NR_BUILTIN_GPIO for the number of onchip GPIO
      
         - definitions of __gpio_is_inverted() and __gpio_is_occupied(), they
           can be either macros or inlined functions
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      38f539a6
  29. 09 3月, 2009 1 次提交
    • E
      [ARM] pxa: access GPIO registers by chip so to make it further generic · 0807da59
      Eric Miao 提交于
      Let's handle GPIOs by banks, each bank covers up to 32 GPIOs with one set
      of registers, and each set of registers start from different offsets.
      
                 GPLR    GPDR    GPSR    GPCR    GRER    GFER    GEDR
       BANK 0 - 0x0000  0x000C  0x0018  0x0024  0x0030  0x003C  0x0048
       BANK 1 - 0x0004  0x0010  0x001C  0x0028  0x0034  0x0040  0x004C
       BANK 2 - 0x0008  0x0014  0x0020  0x002C  0x0038  0x0044  0x0050
      
       BANK 3 - 0x0100  0x010C  0x0118  0x0124  0x0130  0x013C  0x0148
       BANK 4 - 0x0104  0x0110  0x011C  0x0128  0x0134  0x0140  0x014C
       BANK 5 - 0x0108  0x0114  0x0120  0x012C  0x0138  0x0144  0x0150
      
       NOTE:
         BANK 3 is only available on PXA27x and later processors.
         BANK 4 and 5 are only available on PXA935
      
      1. introduce GPIO_BANK(n) for the offset base of each bank
      
      2. 'struct pxa_gpio_chip' is expanded to include IRQ edge and mask
         setings, and saved register values as well, and is dynamically
         allocated due to possible bank number ranging from 3 to 6
      
      3. all accesses to GPIO registers are made through 'regbase' within
         'pxa_gpio_chip', and register offset
      
      4. introduce several inline functions to simplify the code a bit
      
      5. change IRQ demux handler to base on gpio chips
      Signed-off-by: NMike Rapoport <mike@compulab.co.il>
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      0807da59