mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ARM: QCA: Fast MDIO support for Aquantia port
MDIO clock divider is set to 0x7 (counts to 8) to produce 12.5MHz (100MHz/8) MDC frequency. Change-Id: Ic7969aebf9fcbb14601ba8e56563959ab0b25657 Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
c1264c6cc8
commit
0f0ae124bb
1 changed files with 5 additions and 2 deletions
|
|
@ -27,8 +27,11 @@
|
|||
#define MDIO_CTRL_4_ACCESS_CODE_C45_WRITE 1
|
||||
#define MDIO_CTRL_4_ACCESS_CODE_C45_READ 2
|
||||
#define CTRL_0_REG_DEFAULT_VALUE 0x1500F
|
||||
#define CTRL_0_REG_C45_DEFAULT_VALUE 0x1510F
|
||||
|
||||
#ifdef MDIO_12_5_MHZ
|
||||
#define CTRL_0_REG_C45_DEFAULT_VALUE 0x15107
|
||||
#else
|
||||
#define CTRL_0_REG_C45_DEFAULT_VALUE 0x1510F
|
||||
#endif
|
||||
#define IPQ_MDIO_RETRY 1000
|
||||
#define IPQ_MDIO_DELAY 5
|
||||
#endif /* End _IPQ_MDIO_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue