Browse Source

fw-api: CL 6438589 - update fw common interface files

Add USB_RESET_RESUME flag to host_interest area

Change-Id: Ib04a9d87a8f124eb77de48c6ee59174b78e80287
CRs-Fixed: 2262693
spuligil 6 years ago
parent
commit
d6e3e3a99d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      fw/targaddrs.h

+ 10 - 0
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)