1. 11 10月, 2013 2 次提交
    • T
      pinctrl: single: Add support for auxdata · dc7743aa
      Tony Lindgren 提交于
      For omaps, we still have dependencies to the legacy code
      for handling the PRM (Power Reset Management) interrupts,
      and also for reconfiguring the io wake-up chain after
      changes.
      
      Let's pass the PRM interrupt and the rearm functions via
      auxdata. Then when at some point we have a proper PRM
      driver, we can get the interrupt via device tree and
      set up the rearm function as exported function in the
      PRM driver.
      
      By using auxdata we can remove a dependency to the
      wake-up events for converting omap3 to be device
      tree only.
      
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: Prakash Manjunathappa <prakash.pm@ti.com>
      Cc: Roger Quadros <rogerq@ti.com>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: linux-kernel@vger.kernel.org
      Reviewed-by: NKevin Hilman <khilman@linaro.org>
      Tested-by: NKevin Hilman <khilman@linaro.org>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      dc7743aa
    • T
      pinctrl: single: Add support for wake-up interrupts · 3e6cee17
      Tony Lindgren 提交于
      The pin control registers can have interrupts for example
      for device wake-up. These interrupts can be treated as a
      chained interrupt controller as suggested earlier by
      Linus Walleij <linus.walleij@linaro.org>.
      
      This patch adds support for interrupts in a way that
      should be pretty generic, and works for the omaps that
      support wake-up interrupts. On omaps, there's an
      interrupt enable and interrupt status bit for each pin.
      The two pinctrl domains on omaps share a single interrupt
      from the PRM chained interrupt handler. Support for
      other similar hardware should be easy to add.
      
      Note that this patch does not attempt to handle the
      wake-up interrupts automatically unlike the earlier
      patches. This patch allows the device drivers to do
      a request_irq() on the wake-up pins as needed. I'll
      try to do also a separate generic patch for handling
      the wake-up events automatically.
      
      Also note that as this patch makes the pinctrl-single
      an irq controller, the current bindings need some
      extra trickery to use interrupts from two different
      interrupt controllers for the same driver. So it
      might be worth waiting a little on the patches
      enabling the wake-up interrupts from drivers as there
      should be a generic way to handle it coming. And also
      there's been discussion of interrupts-extended binding
      for using interrupts from multiple interrupt controllers.
      
      In any case, this patch should be ready to go allowing
      handling the wake-up interrupts in a generic way, or
      separately from the device drivers.
      
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: Prakash Manjunathappa <prakash.pm@ti.com>
      Cc: Roger Quadros <rogerq@ti.com>
      Cc: linux-kernel@vger.kernel.org
      Cc: Benoît Cousson <bcousson@baylibre.com>
      Cc: devicetree@vger.kernel.org
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
      Reviewed-by: NKevin Hilman <khilman@linaro.org>
      Tested-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3e6cee17
  2. 10 10月, 2013 1 次提交
  3. 28 8月, 2013 1 次提交
  4. 23 7月, 2013 1 次提交
  5. 18 6月, 2013 1 次提交
  6. 16 6月, 2013 2 次提交
  7. 14 5月, 2013 1 次提交
  8. 14 3月, 2013 1 次提交
  9. 07 3月, 2013 5 次提交
  10. 22 1月, 2013 1 次提交
    • H
      Revert "pinctrl: single: support gpio request and free" · 8b77b376
      Haojian Zhuang 提交于
      This reverts commit 2e8b2eab.
      
      Conflicts:
      	drivers/pinctrl/pinctrl-single.c
      
      ERROR: "__aeabi_uldivmod" [drivers/pinctrl/pinctrl-single.ko]
      undefined!]
      
      On Fri, Jan 11, 2013 at 4:00 PM, Russell King wrote:
      
      > The above error happens in builds including pinctrl-single - the
      > reason
      > is this, where resource_size_t may be 64-bit.
      >
      >                 gpio->range.pin_base = (r.start - pcs->res->start) /
      >                 mux_bytes;
      >                 gpio->range.npins = (r.end - r.start) / mux_bytes + 1;
      
      The reason of not fixing this issue and reverting the patch instead is
      this patch can't handle another case. It's not easy to handle multiple
      gpios sharing one pin register. So this gpio range feature will be
      implemented by other patches.
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NHaojian Zhuang <haojian.zhuang@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      8b77b376
  11. 04 1月, 2013 1 次提交
    • G
      Drivers: pinctrl: remove __dev* attributes. · 150632b0
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
      Cc: Barry Song <baohua.song@csr.com>
      Cc: Viresh Kumar <viresh.linux@gmail.com>
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      150632b0
  12. 29 11月, 2012 3 次提交
  13. 23 11月, 2012 1 次提交
  14. 21 11月, 2012 1 次提交
  15. 15 11月, 2012 1 次提交
  16. 28 9月, 2012 1 次提交
  17. 13 9月, 2012 1 次提交
  18. 10 9月, 2012 1 次提交
  19. 15 7月, 2012 1 次提交