wcnss: Sample WCNSS TOP AHB clock on WCNSS WDOG bite

Sample the wcss_top_ahb_clk and determine whether or not the clock freq
is zero when the issue occurs. This will help confirm the reason for
the system reset when Apps tries to access PMU registers for logging
purposes.

Change-Id: Ia4f34a38b7e8d237b9e5ae935d9ce339ca2d6ed1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
wlan: Add debug print NV download failure

Added a debug  print for the return type in case
of NV downlaod failed.
CRs-Fixed: 717777
Change-Id: I3287089cad83d37641c71da9829ef4e89d7aeca0
Signed-off-by: Kaushik, Sushant <skaushik@codeaurora.org>

Conflicts:

	drivers/net/wireless/wcnss/wcnss_wlan.c
wcnss: add null check in pm_ops unregister

Add null check for pm_ops in pm_ops unregister to avoid
null pointer dereference.

Change-Id: I885618a3244b91ba5eddcadb81ae08e965db63b3
CRs-Fixed: 690191
Signed-off-by: Mahesh A Saptasagar <msapta@codeaurora.org>
wcnss: Add API to get monotonic boot time

Add CNSS platform driver API to expose monotonic boot time so that
WLAN host driver can get the timestamp.

Change-Id: I722fa42600bf910254ac01a7305bbbaa35dfa83e
CRs-Fixed: 706813
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
wcnss: Change WCNSS_VBATT_GUARD value from 200uV to 20mV

To avoid ADC_TM interrupts at 3.5V battery threshold
Change WCNSS_VBATT_GUARD value from 200uV to 20mV.

Change-Id: I2d7a637ff4c3eb820c43fcb73d1720e94edf3c4c
CRs-Fixed: 705609
Signed-off-by: Anand N Sunkad <asunka@codeaurora.org>
wcnss: LDO change for WCNSS

Send LDO notification through SMD channel to FW which use
to update the pmic pam map.

Change-Id: I7a893570489e65d92df65728d09fd20e61d6b0fc
CRs-Fixed: 660361
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
wcnss: Fix AXIM select and CTRL select bit fields

When a WDI timeout happens, WLAN driver will initiate SSR. Dumping
these registers before performing the reset helps to debug the root
cause of the timeout. Fix AXIM select and CTRL select bit fields
of testbus register while doing the A2XB testbus register dump.

Change-Id: Ic9c7ddf2e4cee07b43cc8fe06afca04755856eeb
CRs-Fixed: 540586
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>