summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspuligil <spuligil@codeaurora.org>2019-02-04 04:18:55 -0800
committerspuligil <spuligil@codeaurora.org>2019-02-04 04:18:56 -0800
commit820b783af05dfcbd4d85cc346bf81de95f0ca2c7 (patch)
treee8ca53a05eefc62c0417ccd75e900e0dc2bec677
parentfebfd7052a5da2149ac41b2d7119bfdc50b20def (diff)
fw-api: CL 6438589 - update fw common interface files
Add USB_RESET_RESUME flag to host_interest area Change-Id: Ib04a9d87a8f124eb77de48c6ee59174b78e80287 CRs-Fixed: 2262693
-rwxr-xr-xfw/targaddrs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fw/targaddrs.h b/fw/targaddrs.h
index 25b493685040..774a3c9fc732 100755
--- a/fw/targaddrs.h
+++ b/fw/targaddrs.h
@@ -378,6 +378,16 @@ PREPACK64 struct host_interest_s {
#define HI_OPTION_SDIO_CRASH_DUMP_ENHANCEMENT_HOST 0x400 /* HOST to support using BMI dump FW memory when hit assert */
#define HI_OPTION_SDIO_CRASH_DUMP_ENHANCEMENT_FW 0x800 /* FW to support using BMI dump FW memory when hit assert */
+/* USB_RESET_RESUME
+ * The host will set this flag, based on platform configuration specs.
+ * The target will check this flag at the time USB becomes suspended.
+ * If the flag is set, the target will invoke its reset / resume code.
+ * If the flag is not set, the target will do nothing, other than wait.
+ */
+#define HI_OPTION_USB_RESET_RESUME 0x1000
+#define USB_RESET_RESUME() \
+ (HOST_INTEREST->hi_option_flag2 & HI_OPTION_USB_RESET_RESUME)
+
#define GPIO_WAKEUP_ENABLED() \
(HOST_INTEREST->hi_option_flag2 & HT_OPTION_GPIO_WAKEUP_SUPPORT)