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:

committed by
Madan Koyyalamudi

parent
938ddb0956
commit
11ccd80f56
@@ -899,4 +899,42 @@ uint8_t hal_get_wbm_internal_error(hal_soc_handle_t hal_soc_hdl, void *hal_desc)
|
||||
|
||||
return hal_soc->ops->hal_get_wbm_internal_error(hal_desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_get_tsf2_offset() - get tsf2 offset
|
||||
*
|
||||
* @hal_soc_hdl: HAL SoC context
|
||||
* @mac_id: mac id
|
||||
* @value: pointer to update tsf2 offset value
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
static inline void
|
||||
hal_get_tsf2_offset(hal_soc_handle_t hal_soc_hdl, uint8_t mac_id,
|
||||
uint64_t *value)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
if (hal_soc->ops->hal_get_tsf2_scratch_reg)
|
||||
hal_soc->ops->hal_get_tsf2_scratch_reg(hal_soc_hdl, mac_id,
|
||||
value);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_get_tqm_offset() - get tqm offset
|
||||
*
|
||||
* @hal_soc_hdl: HAL SoC context
|
||||
* @value: pointer to update tqm offset value
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
|
||||
static inline void
|
||||
hal_get_tqm_offset(hal_soc_handle_t hal_soc_hdl, uint64_t *value)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
if (hal_soc->ops->hal_get_tqm_scratch_reg)
|
||||
hal_soc->ops->hal_get_tqm_scratch_reg(hal_soc_hdl, value);
|
||||
}
|
||||
#endif /* HAL_TX_H */
|
||||
|
Reference in New Issue
Block a user