qcacmn: Enable device force wake recipe in driver
Enable force wake recipe feature DEVICE_FORCE_WAKE_ENABLE and disable the generic shadow register write feature GENERIC_SHADOW_REGISTER_ACCESS_ENABLE. Force wake recipe will be used to write to the REO remap control registers by waking up the UMAC instead of using shadow register writes. Assert soc wake reg and poll on the scratch reg to check if UMAC is awake. Enable HIF_REG_WINDOW_SUPPORT to enable windowed reg read/write in HIF layer. Change-Id: Ib696e27e19a07c0084c097b95b7780b56e643c8b CRs-Fixed: 2850590
This commit is contained in:
@@ -50,18 +50,6 @@
|
||||
#define SHADOW_REGISTER(x) 0
|
||||
#endif /* QCA_WIFI_QCA6390 || QCA_WIFI_QCA6490 || QCA_WIFI_QCA6750 */
|
||||
|
||||
#define MAX_UNWINDOWED_ADDRESS 0x80000
|
||||
#if defined(QCA_WIFI_QCA6390) || defined(QCA_WIFI_QCA6490) || \
|
||||
defined(QCA_WIFI_QCN9000) || defined(QCA_WIFI_QCA6750)
|
||||
#define WINDOW_ENABLE_BIT 0x40000000
|
||||
#else
|
||||
#define WINDOW_ENABLE_BIT 0x80000000
|
||||
#endif
|
||||
#define WINDOW_REG_ADDRESS 0x310C
|
||||
#define WINDOW_SHIFT 19
|
||||
#define WINDOW_VALUE_MASK 0x3F
|
||||
#define WINDOW_START MAX_UNWINDOWED_ADDRESS
|
||||
#define WINDOW_RANGE_MASK 0x7FFFF
|
||||
/*
|
||||
* BAR + 4K is always accessible, any access outside this
|
||||
* space requires force wake procedure.
|
||||
|
Reference in New Issue
Block a user