
P5040/P5020 Reference Design Board User Guide, Rev. 0
Freescale Semiconductor
59
Programming Model
7.1.13
GPIO FPGA Direction (PX_GPIO_DIR)
The GPIO FPGA direction register controls the R/W direction of GPIO[0:7] signals passed via the FPGA.
Table 41. PX_BRDCFG2 Field Descriptions
Bits
Name
Description
0
MGN_DISABLE
Controls signal usage:VID( not used )or alternate functions.
• 0 - VID
• 1 - Default - Alternate function: GPIO2(28:31)
1
1
In order to work with P5040 GPIO2, it is needed to program MGN_DISABLE = ‘1’ and GPIO_TEST = ‘1’.
1
GPIO_TEST
Controls GPIO[0:7] signal usage: GPIO or alternate functions and P5040
VID/GPIO[28:31]
• 0 - Alternate functions:
–
GPIO[0:3]
– MII Management signals selection
–
GPIO[4:7]
– USB1_PWR_EN, USB2_PWR_EN,
USB1_PWR_FAULT, USB2_PWR_FAULT
–
GPIO[28:31]
- VID[0:3] (Not applicable for
P5040)
• 1 - GPIO
Note:
Not relevant for 1 - GPIO.
2
REG/GPIO SEL
Selects signals:
–
CPU GPIO[0:1] drives MII Management
EMI1_SEL[0:1]
–
FPGA PX_BRDCFG1[1:3,6] drives MII Management
EMI2_SEL0(Not Applicable)
• 0 - GPIO
2
• 1 - FPGA
2
GPIO0 drives EMI1_SEL0; GPIO1 drives EMI1_SEL1;
GPIO2 drives EMI1_SEL1
; GPIO3 drives EMI2_SEL0;
and
register PX_BRDCFG1[6] drives EMI2_SEL1.(Not supported for P5040/P5020RDB)
3
THERM_SHDN_ON
Controls THERM ALERT Power shutdown.
• 0 - Not active
• 1 - Function is active
4
PS_PL_CNTR_SEL
Controls Platform Rail from either jumper J61 or I2C1.
• 0 - Selects I2C1
• 1 - Selects jumper J61
5
PS_CA_CNTR_SEL
Not applicable - Controls Core Rail from either jumpers J60 and J62 or
I2C1.
• 0 - Selects I2C1
• 1 - Selects jumpers J60 and J62
6
LANE_SATA_SEL
Controls SerDes MUX routing of SATA1, SATA2 connectors signals
• 0- SATA Connectors signals are routed to P5020 BANK 3 Lanes 16, 17.
• 1- SATA Connectors signals are routed to P5040 BANK 4 Lanes 18, 19
7
LANE_1617_SEL
Controls SerDes MUX routing of SATA1, SATA2 connectors signals and
XAUI signals to TN8022 PHY.
• 0- SATA Connectors signals are routed to P5020 BANK 3 Lanes 16, 17.
• 1- XAUI signals are routed to P5040 BANK 3 Lanes 16, 17