1. 08 Nov, 2017 2 commits
  2. 19 Oct, 2017 1 commit
  3. 22 Sep, 2017 1 commit
  4. 15 Aug, 2017 1 commit
  5. 22 May, 2017 1 commit
  6. 24 Apr, 2017 2 commits
    • Andrew Jeffery's avatar
      gpio: aspeed: Add open-source and open-drain support · c3bafe01
      Andrew Jeffery authored
      As per the datasheet, manage the IO and value states to implement
      open-source/open-drain, but do this by falling back to gpiolib's
      emulation.
      
      This commit simply makes the behaviour explicit for clarity, rather than
      relying on the implicit return of -ENOTSUPP to trigger the emulation.
      Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      c3bafe01
    • Andrew Jeffery's avatar
      gpio: aspeed: Add debounce support · 5ae4cb94
      Andrew Jeffery authored
      Each GPIO in the Aspeed GPIO controller can choose one of four input
      debounce states: to disable debouncing for an input, or select from one
      of three programmable debounce timer values. Each GPIO in a
      four-bank-set is assigned one bit in each of two debounce configuration
      registers dedicated to the set, and selects a debounce state by
      configuring the two bits to select one of the four options.
      
      The limitation on debounce timer values is managed by mapping offsets
      onto a configured timer value and keeping count of the number of users
      a timer has. Timer values are configured on a first-come-first-served
      basis.
      
      A small twist in the hardware design is that the debounce configuration
      register numbering is reversed with respect to the binary representation
      of the debounce timer of interest (i.e. debounce register 1 represents
      bit 1, and debounce register 2 represents bit 0 of the timer numbering).
      
      Tested on an AST2500EVB with additional inspection under QEMU's
      romulus-bmc machine.
      Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      5ae4cb94
  7. 04 Feb, 2017 1 commit
  8. 26 Jan, 2017 2 commits
  9. 23 Sep, 2016 1 commit
  10. 15 Sep, 2016 1 commit
  11. 13 Sep, 2016 1 commit
  12. 07 Sep, 2016 1 commit