qcacmn: Add HAL APIs to read tsf2 and tqm scratch register

Add support to read TSF2 and TQM scratch regitser in the HAL layer
for WKK v1 and v2 board.

Change-Id: I0ef5e8cf4e06c0b5c98169252a81f70989285d2d
CRs-Fixed: 3321782
This commit is contained in:
Ripan Deuri
2022-10-29 15:26:31 +05:30
committed by Madan Koyyalamudi
szülő 938ddb0956
commit 11ccd80f56
7 fájl változott, egészen pontosan 301 új sor hozzáadva és 0 régi sor törölve

Fájl megtekintése

@@ -13770,6 +13770,34 @@ dp_get_tsf_time(struct cdp_soc_t *soc_hdl, uint32_t tsf_id, uint32_t mac_id,
}
#endif
/**
* dp_get_tsf2_scratch_reg() - get tsf2 offset from the scratch register
* @soc: Datapath soc handle
* @mac_id: mac_id
* @value: pointer to update tsf2 offset value
*
* Return: None.
*/
static inline void
dp_get_tsf2_scratch_reg(struct cdp_soc_t *soc_hdl, uint8_t mac_id,
uint64_t *value)
{
hal_get_tsf2_offset(((struct dp_soc *)soc_hdl)->hal_soc, mac_id, value);
}
/**
* dp_get_tqm_scratch_reg() - get tqm offset from the scratch register
* @soc: Datapath soc handle
* @value: pointer to update tqm offset value
*
* Return: None.
*/
static inline void
dp_get_tqm_scratch_reg(struct cdp_soc_t *soc_hdl, uint64_t *value)
{
hal_get_tqm_offset(((struct dp_soc *)soc_hdl)->hal_soc, value);
}
/**
* dp_set_tx_pause() - Pause or resume tx path
* @soc_hdl: Datapath soc handle
@@ -13907,6 +13935,8 @@ static struct cdp_cmn_ops dp_ops_cmn = {
#endif
.txrx_umac_reset_deinit = dp_soc_umac_reset_deinit,
.txrx_get_tsf_time = dp_get_tsf_time,
.txrx_get_tsf2_offset = dp_get_tsf2_scratch_reg,
.txrx_get_tqm_offset = dp_get_tqm_scratch_reg,
};
static struct cdp_ctrl_ops dp_ops_ctrl = {