From 820b783af05dfcbd4d85cc346bf81de95f0ca2c7 Mon Sep 17 00:00:00 2001 From: spuligil Date: Mon, 4 Feb 2019 04:18:55 -0800 Subject: fw-api: CL 6438589 - update fw common interface files Add USB_RESET_RESUME flag to host_interest area Change-Id: Ib04a9d87a8f124eb77de48c6ee59174b78e80287 CRs-Fixed: 2262693 --- fw/targaddrs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- cgit v1.2.3