[U-Boot] using vitesse phy api

Sameer Arvikar sarvikar at tatapowersed.com
Tue May 9 05:14:13 UTC 2017


Hello , 
I am using vitesse vsc8502 phy , 
I changed the follwing file 
include/configs/board.h 
+ #define CONFIG_FEC_MXC_PHYADDR 0x18 
- #define CONFIG_PHY_MICREL 
+ #define CONFIG_PHY_VITESSE 
now the error is 
the compiler goes to board.c 
and give the error in following function because they are defined in micrel.c and not in vitesse.c 
how to change this function 

int board_phy_config(struct phy_device *phydev) 
{ 
if (phydev->drv->config) 
phydev->drv->config(phydev); 

phy_write(phydev, MDIO_DEVAD_NONE, 0x9, 0x1c00); 

/* control data pad skew */ 
ksz9031_phy_extended_write(phydev, 0x02, 
MII_KSZ9031_EXT_RGMII_CTRL_SIG_SKEW, 
MII_KSZ9031_MOD_DATA_NO_POST_INC, 0x0000); 
/* rx data pad skew */ 
ksz9031_phy_extended_write(phydev, 0x02, 
MII_KSZ9031_EXT_RGMII_RX_DATA_SKEW, 
MII_KSZ9031_MOD_DATA_NO_POST_INC, 0x0000); 
/* tx data pad skew */ 
ksz9031_phy_extended_write(phydev, 0x02, 
MII_KSZ9031_EXT_RGMII_TX_DATA_SKEW, 
MII_KSZ9031_MOD_DATA_NO_POST_INC, 0x0000); 
/* gtx and rx clock pad skew */ 
ksz9031_phy_extended_write(phydev, 0x02, 
MII_KSZ9031_EXT_RGMII_CLOCK_SKEW, 
MII_KSZ9031_MOD_DATA_NO_POST_INC, 0x03FF); 

return 0; 
} 


or rather how to add (which files to change ) to use api phy of vitesse 

with thanks and regards 

*Disclaimer*
------------------------------------------------------------
Notice: This e-mail and / or attachments (communication) may contain information that is confidential and proprietary to The Tata Power Company Limited, Strategic Engineering Division (Tata Power SED). If you are not the intended recipient of this communication, please do not use or disseminate the information contained therein, notify the sender by e-mail or telephone and delete the communication (permanently) from your system.

Any information in this communication that does not relate to the official business of Tata Power SED shall be understood as neither given nor endorsed by it. Please note that e-mails are susceptible to change and Tata Power SED shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt. This communication is not guaranteed to be free from computer viruses and it is recommended that you check for all viruses before download.

Print this communication only if absolutely essential. Thank you for your co-operation.
------------------------------------------------------------


More information about the U-Boot mailing list