1. 18 3月, 2015 1 次提交
  2. 09 3月, 2015 1 次提交
  3. 08 3月, 2015 1 次提交
    • T
      drivers/gpio: Altera soft IP GPIO driver · c5abbba9
      Tien Hock Loh 提交于
      Adds a new driver for Altera soft GPIO IP. The driver is able to do
      read/write and allows GPIO to be a interrupt controller.
      
      Tested on Altera GHRD on interrupt handling and IO.
      
      v10:
      - Updated conflicting device tree parameters
      - Removed unused headers
      - Used macro instead of magic numbers for ngpio
      - Code readability cleanup using ?: and temporal variables
      - Removed leftover garbage and unnecessary function calls
      - Checked bgpio_init but unusable because Altera GPIO may not
        be a multiple of 8 bits
      
      v9:
      - Removed duplicated initialization on set_type using temporals
        to improve code readability in calling generic_handle_irq
      - Using ?: ternary to reduce code size
      
      v8:
      - Using for_each_set_bit
      - Added const for struct definition
      - Removed naggy pr_err
      - Sort alpha header
      - Remove unused macros
      - Use fixed width data types instead of unsigned long
      - Whitespace issue fixes
      - Removed _relaxed function for better compatibility across different
        CPU
      - Changed irq_create_mapping to platform_get_irq updated implementation
        to use gpiochip_irqchip_add
      - Reserve interrupt-cells number 2 in device tree binding for future
        use
      - Remove confusing sections on devicetree bindings
      - Added tristate Kconfig help text
      
      v7:
      - Used dev_warn instead of pr_warn
      - Clean up unnecesarry if else indentation
      
      v6:
      - Added irq_startup and irq_shutdown
      - Changed bitwise clamping style
      - Cleanup bitwise operation to improve readability change naming of
        mapped irqs from virq to mapped_irq
      
      v5:
      - Dispose irq_domain mapping correctly
      - Update optional binding description in binding docs
      
      v4:
      - Added vendor prefix to devicetree binding for IP specific properties
        using MMIO GPIO helper library instead of manually map PIO to memory
      - altera_gpio_chip inline struct documentation to kerneldoc
      - Using dev_ print to print a better failure message
      
      v2, v3:
      - Do not reference NO_IRQ
      - Updated irq_set_type to only allow the hardware configured irq type
      Signed-off-by: NTien Hock Loh <thloh@altera.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      c5abbba9
  4. 04 3月, 2015 1 次提交
  5. 02 3月, 2015 1 次提交
    • L
      gpio: max732x: convert to GPIOLIB_IRQCHIP · 984f6643
      Linus Walleij 提交于
      Take a sweep to bring the irq support for the MAX732x expanders
      into the gpiolib core to cut down on duplicated code.
      
      Only compile tested! I need some feedback from people using this
      expander with interrupts to tell me if things go right or
      wrong when I do this.
      
      Cc: Semen Protsenko <semen.protsenko@globallogic.com>
      Cc: Mans Rullgard <mans@mansr.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      984f6643
  6. 04 2月, 2015 1 次提交
  7. 20 1月, 2015 3 次提交
  8. 16 1月, 2015 7 次提交
  9. 09 1月, 2015 1 次提交
  10. 11 11月, 2014 1 次提交
  11. 28 10月, 2014 1 次提交
    • L
      gpio: dwapb: fix compile errors · 1972c97d
      Linus Walleij 提交于
      Whereas the DWAPB driver does not really depend on the ARM
      architecture, it uses [readl|writel]_relaxed() not found on
      arch such as Blackfin, so restrict this to ARM until there is
      another architecture that can make use of it.
      
      It is also using the of_node of the gpiochip, so fix this
      too by requiring OF_GPIO.
      
      All error/warnings:
      
      make.cross ARCH=blackfin
      drivers/gpio/gpio-dwapb.c: In function 'dwapb_irq_handler':
      drivers/gpio/gpio-dwapb.c:91:2: error: implicit declaration of function 'readl_relaxed' [-Werror=implicit-function-declaration]
      drivers/gpio/gpio-dwapb.c: In function 'dwapb_configure_irqs':
      drivers/gpio/gpio-dwapb.c:212:32: error: 'struct gpio_chip' has no member named 'of_node'
      drivers/gpio/gpio-dwapb.c:221:16: error: 'struct gpio_chip' has no member named 'of_node'
      drivers/gpio/gpio-dwapb.c: In function 'dwapb_gpio_add_port':
      drivers/gpio/gpio-dwapb.c:331:14: error: 'struct gpio_chip' has no member named 'of_node'
      cc1: some warnings being treated as errors
      
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Alan Tull <atull@altera.com>
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      1972c97d
  12. 24 10月, 2014 1 次提交
  13. 21 10月, 2014 1 次提交
  14. 25 9月, 2014 1 次提交
  15. 23 9月, 2014 1 次提交
  16. 05 9月, 2014 1 次提交
  17. 02 9月, 2014 1 次提交
  18. 28 8月, 2014 1 次提交
  19. 28 7月, 2014 1 次提交
  20. 10 7月, 2014 1 次提交
  21. 19 6月, 2014 1 次提交
  22. 17 6月, 2014 1 次提交
  23. 29 5月, 2014 1 次提交
  24. 28 5月, 2014 1 次提交
  25. 27 5月, 2014 1 次提交
  26. 23 5月, 2014 1 次提交
  27. 09 5月, 2014 1 次提交
    • A
      gpio: always enable GPIO_OMAP on ARCH_OMAP · 9d5d96ef
      Arnd Bergmann 提交于
      Commit 4df42de9d3e "gpio: omap: add a GPIO_OMAP option instead of using
      ARCH_OMAP" made it possible to build OMAP kernels without the GPIO driver,
      which at least on OMAP2 and OMAP3 causes build errors because of functions
      used by the platform power management code:
      
      arch/arm/mach-omap2/built-in.o: In function `omap_sram_idle':
      arch/arm/mach-omap2/pm24xx.c:129: undefined reference to `omap2_gpio_prepare_for_idle'
      arch/arm/mach-omap2/pm24xx.c:129: undefined reference to `omap2_gpio_resume_after_idle'
      
      We presumably always want the GPIO driver on OMAP, so this adds a slightly
      broader dependency and only allows disabling the driver only when no
      OMAP2PLUS platform is selected.
      
      However, it seems entirely reasonable to include the driver in build tests
      on other platforms, so we should also allow building it for COMPILE_TEST
      builds and select the required GENERIC_IRQ_CHIP that may not already be
      enabled on other platforms.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9d5d96ef
  28. 29 4月, 2014 4 次提交
  29. 26 3月, 2014 1 次提交