1. 26 Jan, 2017 1 commit
    • Mika Westerberg's avatar
      pinctrl / gpio: Introduce .set_config() callback for GPIO chips · 2956b5d9
      Mika Westerberg authored
      Currently we already have two pin configuration related callbacks
      available for GPIO chips .set_single_ended() and .set_debounce(). In
      future we expect to have even more, which does not scale well if we need
      to add yet another callback to the GPIO chip structure for each possible
      configuration parameter.
      Better solution is to reuse what we already have available in the
      generic pinconf.
      To support this, we introduce a new .set_config() callback for GPIO
      chips. The callback takes a single packed pin configuration value as
      parameter. This can then be extended easily beyond what is currently
      supported by just adding new types to the generic pinconf enum.
      If the GPIO driver is backed up by a pinctrl driver the GPIO driver can
      just assign gpiochip_generic_config() (introduced in this patch) to
      .set_config and that will take care configuration requests are directed
      to the pinctrl driver.
      We then convert the existing drivers over .set_config() and finally
      remove the .set_single_ended() and .set_debounce() callbacks.
      Suggested-by: default avatarLinus Walleij <[email protected]>
      Signed-off-by: default avatarMika Westerberg <[email protected]>
      Reviewed-by: default avatarAndy Shevchenko <[email protected]>
      Signed-off-by: default avatarLinus Walleij <[email protected]>
  2. 23 Feb, 2016 1 commit
  3. 05 Jan, 2016 1 commit
  4. 16 Sep, 2015 1 commit
  5. 28 Jul, 2015 1 commit
  6. 14 Jul, 2015 2 commits
  7. 20 Oct, 2014 1 commit
  8. 27 May, 2014 1 commit
  9. 16 May, 2014 1 commit
  10. 16 Oct, 2013 1 commit
  11. 28 Nov, 2012 1 commit
  12. 19 May, 2012 1 commit
    • Shawn Guo's avatar
      gpio/generic: initialize basic_mmio_gpio shadow variables properly · 3e11f7b8
      Shawn Guo authored
      It fixes the issue in gpio-generic that commit fb149218 (gpio/mxc: add
      missing initialization of basic_mmio_gpio shadow variables) manged to
      fix in gpio-mxc driver, so that other platform specific drivers do not
      suffer from the same problem over and over again.
      Changes since v1:
      * Turn the last parameter of bgpio_init() "bool big_endian" into
        "unsigned long flags" and give those really quirky hardwares a
        chance to tell that reg_set and reg_dir are unreadable.
      Signed-off-by: default avatarShawn Guo <[email protected]>
      [grant.likely: Fix big-endian usage to explicitly set BBGPIOF_BIG_ENDIAN]
      Signed-off-by: default avatarGrant Likely <[email protected]>
  13. 26 Mar, 2012 1 commit
  14. 14 Mar, 2012 1 commit
  15. 31 Oct, 2011 1 commit
  16. 01 Oct, 2011 1 commit
  17. 22 Aug, 2011 1 commit
  18. 09 Jun, 2011 1 commit
  19. 08 Jun, 2011 1 commit
  20. 07 Jun, 2011 1 commit
  21. 06 Jun, 2011 2 commits
  22. 11 May, 2011 1 commit
  23. 31 Mar, 2011 1 commit
  24. 29 Mar, 2011 3 commits
  25. 24 Mar, 2011 2 commits
  26. 27 Jan, 2011 1 commit
  27. 25 Jan, 2011 1 commit
    • Hartley Sweeten's avatar
      ARM: 6636/1: ep93xx: default multiplexed gpio ports to gpio mode · fd015480
      Hartley Sweeten authored
      The EP93xx C and D GPIO ports are multiplexed with the Keypad Interface
      peripheral.  At power-up they default into non-GPIO mode with the Key
      Matrix controller enabled so these ports are unusable for GPIO.  Note
      that the Keypad Interface peripheral is only available in the EP9307,
      EP9312, and EP9315 processor variants.
      The keypad support will clear the DeviceConfig bits appropriately to
      enable the Keypad Interface when the driver is loaded.  And, when the
      driver is unloaded it will set the bits to return the ports to GPIO mode.
      To make these ports available for GPIO after power-up on all EP93xx
      processor variants, set the KEYS and GONK bits in the DeviceConfig
      Similarly, the E, G, and H ports are multiplexed with the IDE Interface
      peripheral.  At power-up these also default into non-GPIO mode.  Note
      that the IDE peripheral is only available in the EP9312 and EP9315
      processor variants.
      Since an IDE driver is not even available in mainline, set the EONIDE,
      GONIDE, and HONIDE bits in the DeviceConfig register so that these
      ports will be available for GPIO use after power-up.
      Signed-off-by: default avatarH Hartley Sweeten <[email protected]>
      Acked-by: default avatarRyan Mallon <[email protected]>
      Signed-off-by: default avatarRussell King <[email protected]>
  28. 13 Jan, 2011 1 commit
  29. 07 Apr, 2010 1 commit
  30. 24 Feb, 2010 1 commit
  31. 17 Jul, 2009 1 commit
  32. 27 Jun, 2009 2 commits
  33. 07 Sep, 2008 1 commit
  34. 06 Sep, 2008 1 commit