greybus: arche-apb-ctrl: Set wake_detect gpio to low initially
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Wed, 6 Jan 2016 18:16:45 +0000 (23:46 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 7 Jan 2016 04:03:18 +0000 (20:03 -0800)
commitae0bf3a62805fa80c8277dd293d9d9d9b8b4c7c0
treef50efae3fd6aff4d2c95f2d15e7a4b0ac35be76e
parent6da86df3a4aa6dfbb9af350df4a908a7a9254be0
greybus: arche-apb-ctrl: Set wake_detect gpio to low initially

This patch enables handshaking of AP and SVC using wake_detect
gpio (WD_8A and WD_8B).
Note that WAKE_DETECT polarity is active-high, so in order to
enable handshaking between AP <=> SVC, we need to set wake_detect
gpio to low initially, so that driver can send WAKE_DET signal
(active-high) to SVC and then SVC can send back WAKE_MOD signal
(active-low).
And on reception of WAKE_MOD signal, driver would bring respective
APB out of reset.

  WD_8A => APB1
  WD_8B => APB2

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-apb-ctrl.c