Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 926

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

Enhanced Three-Speed Ethernet Controllers
Initialize SerDes to select SGMII. The initialization sequence should be prepended with SerDes initialization.
set source clock divide by 14 for example to insure that MDC clock speed is not greater than 2.5 MHz
Set up the MII Mgmt for a read cycle to TBI's Control register (write the PHY address and Register address),
Perform an MII Mgmt read cycle to verify state of TBI Control Register (optional)
(Uses the TBI address and Register address placed in MIIMADD register),
Set up the MII Mgmt for a write cycle to TBICON register (write the PHY address and Register address),
Writing to MII Mgmt Control with 16-bit data intended for TBICON register,
This sets TBI in single clock mode and MII Mode off to enable communication with SerDes.
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
15-208
Table 15-178. SGMII Mode Register Initialization Steps
MACCFG1[1000_0000_0000_0000_0000_0000_0000_0000]
MACCFG1[0000_0000_0000_0000_0000_0000_0000_0000]
Initialize MACCFG2,
MACCFG2[0000_0000_0000_0000_0111_0010_0000_0101]
(I/F Mode = 2, Full Duplex = 1)
(Set I/F mode = 1 in SGMII 10/100 Mbps speed)
ECNTRL[0000_0000_0000_0000_0001_0000_0010_0010]
(This example has Statistics Enable = 1, TBIM = 1, SGMIIM = 1)
(Set R100M = 1 in SGMII 100 Mbps speed)
Initialize MAC Station Address
MACSTNADDR2[0110_0000_0000_0010_0000_0000_0000_0000]
to 02608C:876543, for example.
Initialize MAC Station Address
MACSTNADDR1[0100_0011_0110_0101_1000_0111_1000_1100]
to 02608C:876543, for example.
Assign a Physical address to the TBI,
TBIPA[0000_0000_0000_0000_0000_0000_0001_0000]
set to 16, for example.
Setup the MII Mgmt clock speed,
MIIMCFG[0000_0000_0000_0000_000_0000_0000_0101]
Read MII Mgmt Indicator register and check for Busy = 0,
MIIMIND ---> [0000_0000_0000_0000_0000_0000_0000_0000]
This indicates that the eTSEC MII Mgmt bus is idle.
MIIMADD[0000_0000_0000_0000_0001_0000_0000_0000]
the control register (CR) is at offset address 0x00 from the TBI's address.
Clear MIIMCOM[Read Cycle]
Set MIIMCOM[Read Cycle]
When MIIMIND[BUSY] = 0,
read the MIIMSTAT and look for AN Enable and other bit information.
MIIMADD[0000_0000_0000_0000_0001_0000_0001_0001]
The TBICON register is at offset address 0x11 from the TBI's address.
Perform an MII Mgmt write cycle to TBI.
MIIMCON[0000_0000_0000_0000_0000_0000_0010_0000]
Set Soft_Reset,
Clear Soft_Reset,
Initialize ECNTRL,
Freescale Semiconductor

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro