mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 00:41:17 +01:00
Merge "board: ipq5332: Added read SOC HW version support"
This commit is contained in:
commit
072ff40ca8
2 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue