[U-Boot-Users] SCC Ethernet with PHY BCM522

Hello All,
I have a MPC852T based board. I have configured SCC4 ETHERNET register and I have a PHY ( Broadcom 5222 ) chip as a PHY support.
I am able to do a SCC loopback, but the data is not going out from the PHY when I diable the loopback.
How do I access the PHY from SCC "scc.c" driver ?? do I have to do this anyway ?
The PHY is getting accessed from "MII" i.e I am able to do "mii read/write" The Dual BCM Phy registers are located at 0x10 and 0x11 offset. of PHY.
Warm Regards Raghu.
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

In message 20031013141705.50200.qmail@web40410.mail.yahoo.com you wrote:
I am able to do a SCC loopback, but the data is not going out from the PHY when I diable the loopback.
This usually means that your clock routing is wrong.
How do I access the PHY from SCC "scc.c" driver ?? do
You don't.
I have to do this anyway ?
No.
The PHY is getting accessed from "MII" i.e I am able to do "mii read/write" The Dual BCM Phy registers are located at 0x10 and 0x11 offset. of PHY.
The SCC ethernet interface uses the standard 7 wire interface. Normally you don't care about the PHY (as long as it's powered and enabled and autonegotiating).
Best regards,
Wolfgang Denk

Hi Wolfgang,
This usually means that your clock routing is wrong.
Thanks again... I could get SCC4 up, the usual RCLK and TCLK issue :-)
Refering README I learnt that we can set multiple MAC addresses as eth0addr, eth1addr etc. Can we set multiple IP addresss and simultaneoulsy use multiple interfaces ?
I want both FEC and SCC.
#define SC_ENET calls "scc_initialize" first and #define FEC_ENET calls "fec_initialize" "net/eth.c" So I am able to use only SCC inteface since that is called first.
Also to set PHY registers we have to use MII interface with is a part of FEC. Can the MII ( PHY registers ) be accessed from SCC ?
Warm Regards, Raghu.
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

Hello,
in message 20031014142448.53386.qmail@web40408.mail.yahoo.com you wrote:
This usually means that your clock routing is wrong.
Thanks again... I could get SCC4 up, the usual RCLK and TCLK issue :-)
Thanks for the confirmation.
Refering README I learnt that we can set multiple MAC addresses as eth0addr, eth1addr etc. Can we set multiple IP addresss and simultaneoulsy use multiple interfaces ?
U-Boot deals with one address only (environment variable "ipaddr").
I want both FEC and SCC.
It depends on what you do. If you use BOOTP or DHCP you will get the correct IP address for each interface. If you manually set ipaddr, you will have to decide which is the correct value for the interface you are going to use.
#define SC_ENET calls "scc_initialize" first and #define FEC_ENET calls "fec_initialize" "net/eth.c" So I am able to use only SCC inteface since that is called first.
You can configurew for redundand interfaces (so U-Boot will automagically change interfaces when one is found to be not working), but in this case only a single IP address makes sense.
Also to set PHY registers we have to use MII interface with is a part of FEC. Can the MII ( PHY registers ) be accessed from SCC ?
No. The SCC uses a standard 7 wire interface and does not (normally) deal with PHY configuration.
Best regards,
Wolfgang Denk
participants (2)
-
Raghu
-
Wolfgang Denk