board: ipq5332: Added read SOC HW version support

Change-Id: I8d86189047cda9753d08b1e708046e5ce0421a3e
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
This commit is contained in:
Gurumoorthy Santhakumar 2022-12-28 15:20:35 +05:30 committed by Gerrit - the friendly Code Review server
parent 90c4bba23c
commit 0ff128d69f
2 changed files with 6 additions and 0 deletions

View file

@ -943,6 +943,11 @@ void set_flash_secondary_type(qca_smem_flash_info_t *smem)
return;
};
int get_soc_hw_version(void)
{
return readl(TCSR_SOC_HW_VERSION_REG);
}
#ifdef CONFIG_IPQ5332_EDMA
void set_function_select_as_mdc_mdio(void)
{

View file

@ -103,6 +103,7 @@ extern const add_node_t add_fdt_node[];
#define APB_REG_UPHY_RX_RESCAL_CODE (16 << 8)
#define APB_REG_UPHY_RX_AFE_CAP1 (7 << 4)
#define APB_REG_UPHY_RX_AFE_RES1 (6 << 0)
#define TCSR_SOC_HW_VERSION_REG 0x194D000
/*
* OTP Register