Merge "board: ipq5332: Added read SOC HW version support"

This commit is contained in:
Linux Build Service Account 2023-02-28 05:28:42 -08:00 committed by Gerrit - the friendly Code Review server
commit 072ff40ca8
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