qcacmn: Add support to send Shadow config v3

Shadow config v2 can support max of 36 shadow
registers only. For KIWI target, there are 40
shadow registers supported.

Hence add support to send shadow config v3
for KIWI.

Change-Id: If57e6597397da3e239f25a6c0cc24f8fd37dcdf1
CRs-Fixed: 3167758
This commit is contained in:
Rakesh Pillai
2022-02-02 07:38:44 -08:00
committed by Madan Koyyalamudi
parent ba3853e95f
commit 68f96a8c79
6 changed files with 137 additions and 13 deletions

View File

@@ -351,13 +351,26 @@ void hal_get_shadow_config(void *hal_soc,
{
struct hal_soc *hal = (struct hal_soc *)hal_soc;
*shadow_config = hal->shadow_config;
*shadow_config = &hal->shadow_config[0].v2;
*num_shadow_registers_configured =
hal->num_shadow_registers_configured;
}
qdf_export_symbol(hal_get_shadow_config);
#ifdef CONFIG_SHADOW_V3
void hal_get_shadow_v3_config(void *hal_soc,
struct pld_shadow_reg_v3_cfg **shadow_config,
int *num_shadow_registers_configured)
{
struct hal_soc *hal = (struct hal_soc *)hal_soc;
*shadow_config = &hal->shadow_config[0].v3;
*num_shadow_registers_configured =
hal->num_shadow_registers_configured;
}
qdf_export_symbol(hal_get_shadow_v3_config);
#endif
static bool hal_validate_shadow_register(struct hal_soc *hal,
uint32_t *destination,
uint32_t *shadow_address)
@@ -1351,7 +1364,7 @@ static inline void hal_srng_hw_init(struct hal_soc *hal,
hal_srng_dst_hw_init(hal, srng);
}
#ifdef CONFIG_SHADOW_V2
#if defined(CONFIG_SHADOW_V2) || defined(CONFIG_SHADOW_V3)
#define ignore_shadow false
#define CHECK_SHADOW_REGISTERS true
#else