Hello,
In psp porting guide http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide it is said:
CPSW EMAC 1 bringup in uboot
Uboot currently supports only CPSW EMAC 0, to bring up EMAC 1 following steps needs to be ported.
In evm file: Add pinmux for CPSW EMAC 1 in cpsw_pad_config()
Interchange the cpsw_slaves platform data.
In driver: make cpsw_get_slave_port to return CPSW port 2 offset ie "2"
I have some questions on the above guideline:
1. Is it for using of both emac1 and emac 0 or only emac 1 use ?
These are the changes as I did according to the above guideliness:
1. "Interchange the cpsw_slaves platform data.":
static inline u32 cpsw_get_slave_port(struct cpsw_priv *priv, u32 slave_num)
{
return 2;
}
2. "Interchange the cpsw_slaves platform data."
in board/ti/ti8148/evm.c I did as following:
from old:
if (PG1_0 != get_cpu_rev()) {
#ifdef CONFIG_MACH_TI814XDVR
cpsw_slaves[0].phy_id = 1;
cpsw_slaves[1].phy_id = 0;
#else
cpsw_slaves[0].phy_id = 0;
cpsw_slaves[1].phy_id = 1;
#endif
to (new) :
if (PG1_0 != get_cpu_rev()) {
#ifdef CONFIG_MACH_TI814XDVR
cpsw_slaves[0].phy_id = 1;
cpsw_slaves[1].phy_id = 0;
#else
cpsw_slaves[0].phy_id = 1;
cpsw_slaves[1].phy_id = 0;
#endif
Another thing, Does the Linux kernel boot need other modifications for emac1 usage ?
I also wander why emac1 is not enabled together with emac 0 by default in u-boot....
Thanks!!
Ran