Information
Enhanced Three-Speed Ethernet Controllers
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
16-124 Freescale Semiconductor
16.6.2 Gigabit Ethernet Controller Channel Operation
This section describes the operation of the eTSEC. First, the software initialization sequence is described.
Next, the software (Ethernet driver) interface for transmitting and receiving frames is reviewed. Frame
filtering and receive filing algorithm features are also discussed. The section concludes with interrupt
handling, inter-packet gap time, and loop back descriptions.
16.6.2.1 Initialization Sequence
This section describes which registers are reset due to a hard or software reset and what registers the user
must initialize prior to enabling the eTSEC.
16.6.2.1.1 Hardware Controlled Initialization
A hard reset occurs when the system powers up. All eTSEC’s registers and control logic are reset to their
default states after a hard reset has occurred. In this state, each eTSEC behaves like a PowerQUICC II Pro
device, except for the absence of out-of-sequence TxBD features. That is, initially TCP/IP off-load is
disabled and only single RxBD and TxBD rings are accessible.
16.6.2.1.2 User Initialization
After the system has undergone a hard reset, software must initialize certain basic eTSEC registers. Other
registers can also be initialized during this time, but they are optional and must be determined based on the
requirements of the system. See Table 16-3 for the register list. Table 16-127 describes the minimum steps
for register initialization.
After the initialization of registers is performed, the user must execute the following steps in the order
described below to bring the eTSEC into a functional state (out of reset):
1. Write to the MACCFG1 register and set the appropriate bits. These need to include RX_EN and
TX_EN. To enable flow control, Rx_Flow and Tx_Flow should also be set.
Table 16-127. Steps for Minimum Register Initialization
Description
1. Set and clear MACCFG1 [Soft_Reset]
2. Initialize MACCFG2
3. Initialize MAC station address
4. Set up the PHY using the MII Mgmt Interface
5. Configure the MII/RGMII
6. Clear IEVENT
7. Initialize IMASK
8. Initialize RCTRL
9. Initialize DMACTRL