power: Add flag to disable power signal at boot

Add a new flag to allow boards to indicate if a power signal has to be
enabled/disabled at boot.

BUG=b:65421825
BRANCH=None
TEST=make -j buildall

Change-Id: Ibe7ab74e8191c58433087d8024b344d7e845f17e
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/679981
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
Furquan Shaikh
2017-09-23 01:13:08 -07:00
committed by chrome-bot
parent 53532a2e67
commit 4f5f2dd1b7
2 changed files with 10 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ enum power_state {
* +------------------------------------------------------+
* | 0 | Active level (low/high) |
* +------------------------------------------------------+
* | 1 : 32 | Reserved |
* | 1 | Signal interrupt state at boot |
* +------------------------------------------------------+
* | 2 : 32 | Reserved |
* +-----------------+------------------------------------+
*/
@@ -52,6 +54,9 @@ enum power_state {
#define POWER_SIGNAL_ACTIVE_LOW (0 << 0)
#define POWER_SIGNAL_ACTIVE_HIGH (1 << 0)
#define POWER_SIGNAL_INTR_STATE (1 << 1)
#define POWER_SIGNAL_DISABLE_AT_BOOT (1 << 1)
/* Information on an power signal */
struct power_signal_info {
enum gpio_signal gpio; /* GPIO for signal */