1. 15 Jan, 2016 2 commits
  2. 14 Jan, 2016 14 commits
  3. 13 Jan, 2016 11 commits
  4. 12 Jan, 2016 10 commits
  5. 11 Jan, 2016 3 commits
    • Vaibhav Hiremath's avatar
      greybus: arche-platform: Add wake/detect support along with handshaking with AP · a463fc15
      Vaibhav Hiremath authored
      Add wake_detect support to arche-platform driver which is responsible
      for SVC control. This patch also adds code for handshaking between
      AP <=> SVC. The sequence is,
      
      1.   AP boots
           To keep compatibility between DB3 and EVT platform, SVC will be
           help in reset and AP driver would release it at appropriate time.
      	 wake/detect pin (WD8A) = Low
      	 reset (SVC/APB1/APB2) = Asserted (as per polarity)
      2.   AP Driver gets inserted
        2.1. AP will deassert reset to SVC (following power on sequence)
        2.2. SVC allows 360 milliseconds to elapse after switch boots to work
             around bug described in ENG-330.
        2.3. AP asserts wake/detect pin (WD8A = HIGH)
      3.   SVC detects assertion of wake/detect pin, and sends "wake out" signal to AP
      4.   AP receives "wake out" signal, takes AP Bridges through their power
           on reset sequence as defined in the bridge ASIC reference manuals
      5.   AP takes USB3613 through its power on reset sequence
      6.   AP should enumerates AP Bridges
      
      Note: ISR has been deliberately removed (not merged) as we are still
      not sure how it will be used, in runtime usage context. Driver as such
      doesn't do anything for runtime assert-n-deassert of reset to SVC/APB's,
      it just simply offloads it to user by exporting required gpio's.
      The exported gpio's are required for FW flashing from user space.
      When it comes to usersace manipulated control sequence, user has to manage.
      Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
      Tested-by: default avatarMichael Scott <michael.scott@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      a463fc15
    • Vaibhav Hiremath's avatar
      greybus: arche-apb-ctrl: deassert reset at the end of probe · f1e9cbd5
      Vaibhav Hiremath authored
      Now the complete handshaking between AP<=>SVC would be
      offloaded to parent driver (arche-platform) who is
      responsible for SVC control, so the apb-ctrl driver can
      just simply bring APB's out of reset during probe itself.
      
      Along with deasserting reset, this patch renames the local fn
      to exclusively use it for reset purpose.
      
      Note that, driver is exporting reset gpio to
      user, so user can still flash FW from prompt.
      Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
      Tested-by: default avatarMichael Scott <michael.scott@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      f1e9cbd5
    • Vaibhav Hiremath's avatar
      greybus: arche-apb-ctrl: Remove wake_detect gpio and related code · 33036178
      Vaibhav Hiremath authored
      With TIME_SYNC functionality, assignment of wake/detect pin
      will change,
        WD_8A => to bring APB's out of reset
        WD_8B => TIME_SYNC operation
      
      So in order to support this, we can no longer keep wake_detect
      gpio in apb-ctrl driver. So remove it.
      In the subsequent patches, wake_detect support will be added
      to parent SVC driver (arche-platform) who is responsible for SVC control.
      
      Note that, this patch also removes ISR related code.
      The APB state still is maintained, for future use.
      Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
      Tested-by: default avatarMichael Scott <michael.scott@linaro.org>
      Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      33036178