Intel® is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States and other countries.
Java™ and all other Java-based marks are trademarks or registered trademarks of Oracle America, Inc. in the U.S. and other countries.
Microsoft®, Windows® and Windows Me® are registered trademarks of Microsoft Corporation; and Windows XP™ is a trademark of
Microsoft Corporation.
PICMG®, CompactPCI®, AdvancedTCA™ and the PICMG, CompactPCI and AdvancedTCA logos are registered trademarks of the PCI
Industrial Computer Manufacturers Group.
UNIX® is a registered trademark of The Open Group in the United States and other countries.
Notice
While reasonable efforts have been made to assure the accuracy of this document, Artesyn assumes no liability resulting from any
omissions in this document, or from the use of the information obtained therein. Artesyn reserves the right to revise this document
and to make changes from time to time in the content hereof without obligation of Artesyn to notify any person of such revision or
changes.
Electronic versions of this material may be read online, downloaded for personal use, or referenced in another document as a URL to
an Artesyn website. The text itself may not be published commercially in print or electronic form, edited, translated, or otherwise
altered without the permission of Artesyn.
It is possible that this publication may contain reference to or information about Artesyn products (machines and programs),
programming, or services that are not available in your country. Such references or information must not be construed to mean that
Artesyn intends to announce such Artesyn products, programming, or services in your country.
Limited and Restricted Rights Legend
If the documentation contained herein is supplied, directly or indirectly, to the U.S. Government, the following notice shall apply
unless otherwise agreed to in writing by Artesyn.
Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (b)(3) of the Rights in
Technical Data clause at DFARS 252.227-7013 (Nov. 1995) and of the Rights in Noncommercial Computer Software and
Documentation clause at DFARS 252.227-7014 (Jun. 1995).
IDEIntegrated Device Electronics - parallel interface for hard disk drives -
LPCLow Pin-Count Interface: a low speed interface used for peripheral
LVDSLow Voltage Differential Signaling - widely used as a physical
PCIPeripheral Component Interface
PCI-EPeripheral Component Interface Express - next-generation high
About this Manual
allowing communication between integrated circuits, primarily used
to read and load registers values.
also known as PATA
circuits such as Super I/O controllers, which typically combine
legacy-device support into a single IC.
interface for TFT flat panels. LVDS can be used for many high-speed
signaling applications. In this document, it refers only to TFT flatpanel applications.
speed Serialized I/O bus
PHYEthernet controller physical layer device
Pin-out TypeA reference to one of five COM ExpressTM definitions for what signals
appear on the COM ExpressTM module connector pins.
SPDSerial Presence Detect - refers to serial EEPROM on DRAMs that has
DRAM module configuration information
S0, S1, S2, S3, S4, S5System states describing the power and activity level
S0 Full power, all devices powered S1 S2
S3 Suspend to RAM System context stored in RAM; RAM is in standby
S4 Suspend to Disk System context stored on disk
S5 Soft Off Main power rail off, only standby power rail present
SATASerial AT Attachment: serial-interface standard for hard disks
SBCSingle Board Computer
Super I/OAn integrated circuit typically interfaced via the LPC bus that
provides legacy PC I/O functions including PS2 keyboard and mouse
ports, serial and parallel port(s) and a floppy interface.
USBUniversal Serial Bus
VGAVideo Graphics Adapter
WDTWatch Dog Timer.
12
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 13
Conventions
The following table describes the conventions used throughout this manual.
NotationDescription
0x00000000Typical notation for hexadecimal numbers (digits are
0b0000Same for binary numbers (digits are 0 and 1)
boldUsed to emphasize a word
ScreenUsed for on-screen output and code related elements
Courier + BoldUsed to characterize user input and to separate it
ReferenceUsed for references and for table and figure
About this Manual
0 through F), for example used for addresses and
offsets
or commands in body text
from system output
descriptions
File > ExitNotation for selecting a submenu
<text>Notation for variables and keys
[text]Notation for software buttons to click on the screen
...Repeated item for example node 1, node 2, ..., node
.
.
.
..Ranges, for example: 0..4 means one of the integers
|Logical OR
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
and parameter description
12
Omission of information from example/command
that is not necessary at the time being
0,1,2,3, and 4 (used in registers)
13
Page 14
About this Manual
NotationDescription
About this Manual
Indicates a hazardous situation which, if not avoided,
could result in death or serious injury
Indicates a hazardous situation which, if not avoided,
may result in minor or moderate injury
Indicates a property damage message
No danger encountered. Pay attention to important
information
Summary of Changes
This manual has been revised and replaces all prior editions.
Part NumberPublication DateDescription
6806800R95AAugust, 2013
6806800R95BAugust, 2014Re-branded to Artesyn
14
Initial version
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 15
Introduction
1.1Overview
The COMX-P40x0 ENP2 is a COM Express module based on the Freescale Power PC P4040 and
P4080 platforms. This board provides some of the universal interfaces such as Gigabit
Ethernet, USB, PCIE, and so on.
Following are the features of the COMX-P40x0 ENP2:
Form Factor: Basic (95mm x 125mm)
P4040 or P4080 CPU supported
Boot Options:
–16 bit NOR FLASH from local bus (standard product default)
–NAND FLASH from local bus
–I2C EEPROM
Chapter 1
Note: Selectable via carrier
Demo, runtime Linux Operating System and filesystem(s), pre-installed in NOR/NAND
Flash.
Dual channel on-board DDR3 with ECC. COMX-P40x0-2G boards have 1GB per channel for
a total of 2GB. COMX-P40x0-4G boards have 2GB per channel for a total of 4GB.
–Designed to support up to 8GB of DDR3
16 lanes of SERDES routed to COME connectors, which can be configured as PCIE, XAUI,
SRIO, SGMII
4 UARTs (2-wire interfaces)
0/1/2 GE ports (option available to use this port as USB)
5/4/0 USB ports
IEEE 1588 support signals to the COME connectors
Total 3 I2C buses
1 SPI bus with 3 chip select signals
Secure Digital Host Controller interface to the COME connector for MultiMediaCard
(MMC) and Secure Digital card (SD) support.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
15
Page 16
Introduction
Tamper detect pin to the COME connectors
On-board RTC and WDT device
Provide both remote and local thermal sensor
JTAG connector on module
Aurora testing points on module
12V power supplied to module through COME connectors
5V standby power from COME connector not required/used by module
Due to P4080 errata GEN-A009, Aurora ports are disabled by default in RCW and must be
re-enabled for debug. For assistance, contact Artesyn representative.
1.2Standard Compliances
The product is designed to meet the following standards.
Table 1-1 Standard Compliances
Standard Description
UL60950-1 EN 60950-1 IEC
60950-1 CAN/CSA C22.2 No
60950-1
UL/CSA 60950-1
EN 60950-1
IEC 60950-1 CB Scheme
FCC 47 CFR Part 15 Subpart B
(US), Class A
EN55022 Class A (EU)
AS/NZS CISPR 22 Class A
(Australia/New Zealand)
VCCI Class A (Japan)
16
Safety Requirements
Legal safety requirements
EMC requirements (legal) on system level
(predefined Artesyn system)
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 17
Table 1-1 Standard Compliances (continued)
Standard Description
CISPR 22 CISPR 24 EN55022 EN
55024
ETSI EN 300 019 Series Environmental Requirement
Directive 2011/65/EU Directive on the restriction of the use of certain
EMC Requirements on system level
hazardous substances in electrical and electronic
equipment (ROHS)
Introduction
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
17
Page 18
Introduction
The following figure contains the declaration of conformity for COMX-P40x0.
Figure 1-1Declaration of Conformity
E
C Declaration of Conformity
According to EN 17050-1:2004
Manufacturer’s Name:
Manufacturer’s Address:
Declares that the following product, in accordance with the requirements of 2004/108/EC, 2006/95/EC,
2011/65/EU and their amending directives,
Product:
Artesyn Embedded Technologies
Embedded Computing
Zhongshan General Carton Box Factory Co. Ltd. No 62, Qi
Guan Road West, Shiqi District, 528400 Zhongshan City
Guangdong, PRC
COMX-P40x0-ENP2—Express Form Factor Processor Pluggable Mezzanine Module For Extended Temperature and rugged Environments
Model Name/Number:
has been designed and manufactured to the following specifications:
EN55022: 2010 Class B
EN55024: 2010
IEC 60950-1: 2005 (2nd Edition) + A1: 2009
2011/65/EU RoHS Directive
As manufacturer we hereby declare that the product named above has been designed to comply with the relevant sections of the above referenced specifications. This product complies with the essential health and safety
requirements of the above specified directives. We have an internal production control system that ensures
compliance between the manufactured products and the technical documentation.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 19
1.3Mechanical Data
This section provides mechanical details of COMX-P4080-ENP2 and COMX-P4040-ENP2
boards.
Figure 1-2COMX-P40X0-ENP2 Top View
D4:3.3V power ok
D3:system asleep
D6:1.8V power ok
D5:2.5V power ok
D9:Platform Power OK
D13:CORE power ok
Introduction
D7:DDR3 power ok
D10:1.5V power ok
Debug led D19
Debug led D18
D16:USB hub High Speed
D15:USB hub Active
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Thermal issue D17
Pin 1
COP header
19
Page 20
Introduction
Figure 1-3COMX-P40X0-ENP2 Bottom View
20
PIN B1
PIN A1
PIN B1
PIN A1
COME: CD: J3
COME: AB: J2
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 21
1.3.1COMX-P4080 ENP2
The following figure illustrates the top and side views of the COMX-P4080 ENP2 board.
Figure 1-4COMX-P4080 ENP2 Mechanical Dimensions (Top and side views)
Introduction
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
21
Page 22
Introduction
Table 1-2 COMX-P4080 ENP2 PCB Dimensions
CharacteristicValue
Length125 mm
Width95 mm
PCB Thickness2 mm
Mounting height top side (component side 1)6.1 mm
22
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 23
1.3.2COMX-P4040 ENP2
The following figure illustrates the top and side views of the COMX-P4040 ENP2 board.
Figure 1-5COMX-P4040 ENP2 Mechanical Dimensions (Top and side views)
Introduction
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
23
Page 24
Introduction
Table 1-3 COMX-P4040 ENP2 PCB Dimensions
CharacteristicValue
Length125 mm
Width95 mm
PCB Thickness2 mm
Mounting height top side (component side 1)9.65 mm
1.4Ordering Information
Use the order numbers below when ordering product variants.
Table 1-4 Ordering Information
Order Number Description
COMX-P4080-2G-ENP2QorIQ P4080 with 2GB DDR3, 0 Gigabit Ethernet, 5 USB ports. COM
Express Basic size.
COMX-P4080-4G-E-ENP2QorIQ P4080 with 4GB DDR3, 1 Gigabit Ethernet, 4 USB ports. COM
Express Basic Size.
COMX-P4040-4G-ENP2QorIQ P4040 with 4GB DDR3, 1 Gigabit Ethernet, 4 USB ports. COM
Express Basic Size.
SCP-P4040-4G-ENP2QorIQ P4040 with 4GB DDR3, 1 Gigabit Ethernet, 4 USB ports. COM
Express Basic Size.
COMX-CAR-P1Artesyn DEVELOPMENT CARRIER FOR QORIQ MODULES.
COMX-P4000-ENPHTSNK
Heatsink for COMX-P40x0 ENP2 module.
1.5Product Identification
This section shows the serial number and its location on the COMX-P4080 ENP2 and COMXP4040 ENP2 boards.
24
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 25
1.5.1COMX-P4080 ENP2
The following figure shows the location of serial number on COMX-P4080 ENP2 board.
Figure 1-6COMX-P4080 ENP2 Serial Number Location
Introduction
1.5.2COMX-P4040 ENP2
The following figure shows the location of serial number on COMX-P4040 ENP2 board.
Figure 1-7COMX-P4040 ENP2 Serial Number Location
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
25
Page 26
Introduction
26
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 27
Hardware Preparation and Installation
2.1Environmental and Power Requirements
2.1.1Environmental Requirements
The following module environmental requirements must not be exceeded.
Operating temperature refers to the temperature of the air circulating around the module
and not the component temperature.
The following table provides the environmental requirements for the module.
Chapter 2
Table 2-1 Environmental Requirements
RequirementOperatingNon-Operating
Temperature
Humidity
Vibration Sine (10mins/axis)5G, 15 to 2000Hz
Vibration Random (1hr/axis)0.04g2/Hz, 15 to 2000Hz
Shock30g/11mS(half sine)
Altitude-60 to 4000 m ASL
Thermal Requirements
A standard passive heat sink can be provided by Artesyn; 12 CFM system airflow volume (at
71oC) is needed for the heat sink to keep sufficient cooling to the module. Contact your
Artesyn sales representative for detailed thermal information.
-40°C to +71°C
to 100% RH
(8GRMS)
-50°C to +100°C
to 100% RH
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
27
Page 28
Hardware Preparation and Installation
The following table summarizes components that exhibited significant temperature rises and
their maximum allowable operating temperature. These components should be monitored in
order to assess thermal performance during customized thermal solution development.
Table 2-2 Critical Temperature Spots
Component IdentifierHeat Dissipation Power (W)Maximum Allowable Temperature (°C)
CPU: P4080 20.5CPU: 105 (Tj)
CPU: P404016.8CPU: 105 (Tj)
Memory SDRAM 395 (Tc)
GbE Transceiver:
BCM5482
Row 4, Note: For modules with Gigabit Ethernet port options.
0.86125 (Tj)
System Overheating
Improper cooling can lead to system damage and void the manufacturer's warranty.
Personal Injury
During operation, hot surfaces may be present on the heat sinks and the components of the
product.
To prevent injury, do not touch any of the exposed components or heatsinks on the product
when handling.
28
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 29
Hardware Preparation and Installation
Power Requirements
This board is designed to operate with the input voltages and currents as defined in the
following tables.
Table 2-3 Current Drawn
State12vVCC_RTC
Idle2.81A 100 uA
Full Loading (Linux) 2.91A 100 uA
Table 2-4 COMX-P4080-4G-E-ENP2
VoltsAmpsPower
122.631.2
Total Power dissipation (W)31.2
2.2Unpacking and Inspecting the Enclosure
Read all notices and cautions prior to unpacking the product.
Damage of Circuits
Electrostatic discharge and incorrect installation/removal of the product can damage
circuits or shorten their life.
Before touching the product make sure that you are working in an ESD-safe
environment with protective equipment such an ESD wrist strap and ESD shoes. Hold
the product by its edges and do not touch any components or circuits.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
29
Page 30
Hardware Preparation and Installation
Shipment Inspection
1. Verify that you have received all items of your shipment.
Printed Quick Start Guide and Safety Notes
COMX-P40x0 ENP2 Module
2. Check for damage and report any damage or differences to customer service.
3. Remove the desiccant bag shipped together with the enclosure and dispose of it
according to your country’s legislation.
Improperly disposing of used products may harm the environment.
Always dispose of used products according to your country’s legislation and manufacturer’s
instructions.
The product is thoroughly inspected before shipment. If any damage occurred during
transportation or any items are missing, contact customer service immediately.
2.3Installing and Removing the Module on the
Carrier Board
The heat sink is assembled to the module before the procedure below:
Installing the COM module on the carrier board
1.Line up the board-to-board connector of the module assembly with the board-to-board
connector of the carrier board.
2.Make sure that the inter-connectors are properly aligned and that the five standoffs on the
module have contact with the top of the carrier board.
30
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 31
Hardware Preparation and Installation
3.From the bottom side of the carrier, locate the screw holes corresponding to the module
standoffs.
4.Use the screws to fasten the module to the carrier board.
Removing the module from the carrier board
1.From the back side of the carrier, locate the five screws that connect the module assembly
to the carrier board.
2.Loosen and remove the screws.
3.While holding the edges, pull the module from the carrier board.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
31
Page 32
Hardware Preparation and Installation
The figure below illustrates the screw-holes for mounting the module on carrier board.
Figure 2-1Mounting Module on Carrier Board
32
This installation/removal procedure is only for reference. Assemble the heatsink and the
module based on your own thermal solution.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 33
Hardware Preparation and Installation
Heat-sink Installation
The following figures illustrate the heat-sink installation on the module:
Figure 2-2Heat-sink installation
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
33
Page 34
Hardware Preparation and Installation
Figure 2-2Heat-sink installation (continued)
34
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 35
Controls, LEDs, and Connectors
3.1Connectors and Switches
3.1.1On-Board Connectors
P4080 COP Header
The following table lists the pin-out of the COP (Common On-Chip Processor) header for
modules with the P4080 CPU.
Table 3-1 P4080 COP Header Pin-out
PinSignal Name
1 GND
2cpu_ckstp_out_n
Chapter 3
3key for p4040 cop nc for
P4080
4cop_hrst_n
5empty
6cop_srst_n
7NC
8TMS
9NC (CKSTP INPUT)
10TCK
11VDDSENSE (+3.3V)
12NC (RUNSTOP)
13TRST#
14cpujtag_tdi
15empty 10k pullup
16cpujtag_tdo
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
35
Page 36
Controls, LEDs, and Connectors
P4040 COP Header
The following table lists the pin-out of the COP header for modules with the P4040 CPU.
Table 3-2 P4040 COP Header Pin-out
PinSignal Name
1 cpujtag_tdo
2empty 10k pullup
3cpujtag_tdi
4TRST#
5NC (RUNSTOP)
6VDDSENSE (+3.3V)
7TCK
8NC (CKSTP INPUT)
9TMS
10NC
11cop_srst_n
12empty
13cop_hrst_n
14key for p4040 cop nc for
P4080
15cpu_ckstp_out_n
16GND
36
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 37
3.1.2ON-BOARD LEDS
There are several status LEDs provided on the module. The following table lists the LED
functions.
Table 3-3 Module LED Status
LEDStatus
D17Thermal issue
D18~D19Debug LED 1~2
D3System asleep
D7DDR3 power OK
D43.3V power OK
D52.5V power OK
D61.8V power OK
Controls, LEDs, and Connectors
D13CORE power OK
D9PLATFORM power OK
D101.5V power OK
D15USB hub 2 active
D16USB hub 2 high speed
D1, D2, D15, D16 are for modules with USB port options.
3.1.3COMX AB-CD Connectors
The following table lists the pin-out of the AB- CD COMX connectors for the P40x0 COMX
modules:
Table 3-4 COMX AB-CD Connectors
Connector
refdes
J2AB1A1GND
J2AB1A2LAN1_MDI_N<3>bidir
Connector
namePinNet Name
direction from
COMXnotes
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
37
Page 38
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J2AB1A3LAN1_MDI_P<3>bidir
J2AB1A4LAN1_LINK100_NoutLan1 link 100 active
J2AB1A5LAN1_LINK1000_Noutlan1 link 1000 active
J2AB1A6LAN1_MDI_N<2bidir
J2AB1A7LAN1_MDI_P<2bidir
J2AB1A8LAN1_LINK_Noutout from comx
J2AB1A9LAN1_MDI_N<1>bidir
J2AB1A10LAN1_MDI_P<1>bidir
J2AB1A11GND
J2AB1A12LAN1_MDI_N<0>bidir
J2AB1A13LAN1_MDI_P<0>bidir
J2AB1A14V1P8_CTRLoutout from comx 1.8v
J2AB1A15N/C
J2AB1A16N/C
Connector
namePinNet Name
direction from
COMXnotes
low
low
power indicator
J2AB1A17N/C
J2AB1A18N/C
J2AB1A19N/C
J2AB1A20N/C
J2AB1A21GND
J2AB1A22N/C
J2AB1A23N/C
J2AB1A24N/C
J2AB1A25N/C
J2AB1A26N/C
38
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 39
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J2AB1A27N/C
J2AB1A28N/C
J2AB1A29POVDD_EN_KEYinPower ON Enable
J2AB1A30LBC_CS_KEYinLocal Bus Control
J2AB1A31GND
J2AB1A32N/C
J2AB1A33N/C
J2AB1A34N/C
J2AB1A35N/C
J2AB1A36N/C
J2AB1A37N/C
J2AB1A38N/C
J2AB1A39N/C
J2AB1A40N/C
J2AB1A41GND
Connector
namePinNet Name
direction from
COMXnotes
Chipselect key
J2AB1A42USB2_Nbidir
J2AB1A43USB2_Pbidir
J2AB1A44USB_OC_2_3_Nin
J2AB1A45USB0_Nbidir
J2AB1A46USB0_Pbidir
J2AB1A47V3P3_BAT3.3v battery power
J2AB1A48USB2_PWRENout
J2AB1A49USB0_PWRENout
J2AB1A50USB5_PWRENout
J2AB1A51GND
J2AB1A52SERDES_TX5_Pout
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
39
Page 40
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J2AB1A53SERDES_TX5_Nout
J2AB1A54CPU_SDHC_DAT0bidir
J2AB1A55SERDES_TX4_Pout
J2AB1A56SERDES_TX4_Nout
J2AB1A57GND
J2AB1A58SERDES_TX3_Pout
J2AB1A59SERDES_TX3_Nout
J2AB1A60GND
J2AB1B1GND
J2AB1B2LAN1_ACTIVITY_Noutlan1 activity
J2AB1B3TSEC_1588_CLK_OUTout
J2AB1B4TSEC_1588_PULSE_OUT1out
J2AB1B5TSEC_1588_PULSE_OUT2out
J2AB1B6TSEC_1588_ALARM_OUT1out
J2AB1B7TSEC_1588_ALARM_OUT2out
Connector
namePinNet Name
direction from
COMXnotes
J2AB1B8TSEC_1588_TRIG_IN1in
J2AB1B9TSEC_1588_TRIG_IN2in
J2AB1B10TSEC_1588_CLK_IN1in
J2AB1B11GND
J2AB1B12N/C
J2AB1B13N/C
J2AB1B14N/C
J2AB1B15N/C
J2AB1B16N/C
J2AB1B17N/C
40
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 41
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J2AB1B18N/C
J2AB1B19N/C
J2AB1B20N/C
J2AB1B21GND
J2AB1B22N/C
J2AB1B23N/C
J2AB1B24N/C
J2AB1B25N/C
J2AB1B26N/C
J2AB1B27WDT_OUT_NoutWatch dog Timer Out
J2AB1B28LBC_WE1_NoutP40x0 local bus
J2AB1B29N/C
J2AB1B30N/C
J2AB1B31GND
J2AB1B32LBC_LGPL5in
Connector
namePinNet Name
direction from
COMXnotes
LWE1_N
J2AB1B33CPU_IIC1_CLKbidir
J2AB1B34CPU_IIC1_DATbidir
J2AB1B35N/C
J2AB1B36N/C
J2AB1B37N/C
J2AB1B38USB_OC_4_5_Nin
J2AB1B39USB5_Nbidir
J2AB1B40USB5_Pbidir
J2AB1B41GND
J2AB1B42USB3_Nbidir
J2AB1B43USB3_Pbidir
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
41
Page 42
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J2AB1B44USB_OC_0_1_Nin
J2AB1B45USB1_Nbidir
J2AB1B46USB1_Pbidir
J2AB1B47USB3_PWRENout
J2AB1B48USB1_PWRENout
J2AB1B49RESET_BUTTON_Nin
J2AB1B50CB_RESET_GPIO20_Nout
J2AB1B51GND
J2AB1B52SERDES_RX5_Pin
J2AB1B53SERDES_RX5_Nin
J2AB1B54CPU_SDHC_CMDbidir
J2AB1B55SERDES_RX4_Pin
J2AB1B56SERDES_RX4_Nin
J2AB1B57CPU_SDHC_WPin
J2AB1B58SERDES_RX3_Pin
J2AB1B59SERDES_RX3_Nin
Connector
namePinNet Name
direction from
COMXnotes
J2AB1B60GND
J2AB2A61SERDES_TX2_Pout
J2AB2A62SERDES_TX2_Nout
J2AB2A63CPU_SDHC_DAT1bidir
J2AB2A64SERDES_TX1_Pout
J2AB2A65SERDES_TX1_Nout
J2AB2A66GND
J2AB2A67CPU_SDHC_DAT2bidir
J2AB2A68SERDES_TX0_Pout
42
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 43
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J2AB2A69SERDES_TX0_Nout
J2AB2A70GND
J2AB2A71N/C
J2AB2A72N/C
J2AB2A73N/C
J2AB2A74N/C
J2AB2A75N/C
J2AB2A76N/C
J2AB2A77N/C
J2AB2A78N/C
J2AB2A79N/C
J2AB2A80GND
J2AB2A81N/C
J2AB2A82N/C
J2AB2A83CPU_IIC2_CLKbidir
J2AB2A84CPU_IIC2_DATbidir
Connector
namePinNet Name
direction from
COMXnotes
J2AB2A85CPU_SDHC_DAT3bidir
J2AB2A86N/C
J2AB2A87N/C
J2AB2A88CLK_125M_100M_COME_
SDREF1_P
J2AB2A89CLK_125M_100M_COME_
SDREF1_N
J2AB2A90GND
J2AB2A91CPU_SPI_CS0_K_Nout
J2AB2A92CPU_SPI_MISOin
J2AB2A93CPU_SDHC_CLKout
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
out
out
43
Page 44
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J2AB2A94CPU_SPI_CLK_COMEout
J2AB2A95CPU_SPI_MOSIout
J2AB2A96GND
J2AB2A97V12
J2AB2A98V12
J2AB2A99V12
J2AB2A100GND
J2AB2A101V12
J2AB2A102V12
J2AB2A103V12
J2AB2A104V12
J2AB2A105V12
J2AB2A106V12
J2AB2A107V12
J2AB2A108V12
J2AB2A109V12
Connector
namePinNet Name
direction from
COMXnotes
J2AB2A110GND
J2AB2B61SERDES_RX2_Pin
J2AB2B62SERDES_RX2_Nin
J2AB2B63CPU_SDHC_CDbi
J2AB2B64SERDES_RX1_Pin
J2AB2B65SERDES_RX1_Nin
J2AB2B66N/C
J2AB2B67CPU_HRESE T_COME_NinOnly used on P4080-2G
assembly
J2AB2B68SERDES_RX0_Pin
44
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 45
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J2AB2B69SERDES_RX0_Nin
J2AB2B70GND
J2AB2B71N/C
J2AB2B72N/C
J2AB2B73N/C
J2AB2B74N/C
J2AB2B75N/C
J2AB2B76N/C
J2AB2B77N/C
J2AB2B78N/C
J2AB2B79N/C
J2AB2B80GND
J2AB2B81N/C
J2AB2B82N/C
J2AB2B83N/C
J2AB2B84V5SB
Connector
namePinNet Name
direction from
COMXnotes
J2AB2B85V5SB
J2AB2B86V5SB
J2AB2B87V5SB
J2AB2B88CPU_SPI_CS1_Nout
J2AB2B89N/C
J2AB2B90GND
J2AB2B91N/C
J2AB2B92N/C
J2AB2B93N/C
J2AB2B94N/C
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
45
Page 46
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J2AB2B95CPU_IIC4_CLKbidir
J2AB2B96CPU_IIC4_DATbidir
J2AB2B97BANK1_SEL_FS0in
J2AB2B98BANK2_SEL_S1in
J2AB2B99BANK3_SEL_S1in
J2AB2B100GND
J2AB2B101V12
J2AB2B102V12
J2AB2B103V12
J2AB2B104V12
J2AB2B104V12
J2AB2B106V12
J2AB2B107V12
J2AB2B108V12
J2AB2B109V12
J2AB2B110GND
Connector
namePinNet Name
direction from
COMXnotes
J3CD1A1GND
J3CD1A2LAN2_ACTIVITY_Nin
J3CD1A3LAN2_MDI_N<3>bidir
J3CD1A4LAN2_MDI_P<3>bidir
J3CD1A5LAN2_LINK100_Nin
J3CD1A6LAN2_MDI_N<2>bidir
J3CD1A7LAN2_MDI_P<2>bidir
J3CD1A8LAN2_LINK1000_Nin
J3CD1A9LAN2_MDI_N<1>bidir
46
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 47
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J3CD1A10LAN2_MDI_P<1>bidir
J3CD1A11GND
J3CD1A12LAN2_MDI_N<0>bidir
J3CD1A13LAN2_MDI_P<0>bidir
J3CD1A14LAN2_LINK_Nin
J3CD1A15LBC_LAD<8>bidir
J3CD1A16LBC_LAD<9>bidir
J3CD1A17LBC_CLE_Nout
J3CD1A18LBC_FCMALE_Nout
J3CD1A19SERDES_RX6_Pin
J3CD1A20SERDES_RX6_Nin
J3CD1A21GND
J3CD1A22SERDES_RX7_Pin
J3CD1A23SERDES_RX7_Nin
J3CD1A24N/C
J3CD1A25LBC_LAD<10>bidir
Connector
namePinNet Name
direction from
COMXnotes
J3CD1A26LBC_LAD<11>bidir
J3CD1A27LBC_LAD<12>bidir
J3CD1A28LBC_LAD<13>bidir
J3CD1A29LBC_LAD<14>bidir
J3CD1A30LBC_LAD<15>bidir
J3CD1A31GND
J3CD1A32CPU_UART1_SOUTout
J3CD1A33CPU_UART1_SINin
J3CD1A34CPU_UART1_CTSout Not used
J3CD1A35CPU_UART1_RTSinNot used
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
47
Page 48
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J3CD1A36CPU_UART2_SOUTout
J3CD1A37CPU_UART2_SINin
J3CD1A38CPU_UART2_CTSout Not used
J3CD1A39CPU_UART2_RTSinNot used
J3CD1A40EMI1_MDIObidir
J3CD1A41GND
J3CD1A42CPU_UART3_SOUTout
J3CD1A43CPU_UART3_SINin
J3CD1A44N/C
J3CD1A45N/C
J3CD1A46CPU_UART4_SOUTout
J3CD1A47CPU_UART4_SINin
J3CD1A48N/C
J3CD1A49N/C
J3CD1A50EMI1_MDC_COMEout
J3CD1A51GND
Connector
namePinNet Name
direction from
COMXnotes
J3CD1A52SERDES_RX16_Pin
J3CD1A53SERDES_RX16_Nin
J3CD1A54COME_TYPE0_Nout
J3CD1A55SERDES_RX17_Pin
J3CD1A56SERDES_RX17_Nin
J3CD1A57COME_TYPE1_Nout
J3CD1A58SERDES_RX18_Pin
J3CD1A59SERDES_RX18_Nin
J3CD1A60GND
48
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 49
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J3CD1B1GND
J3CD1B2N/C
J3CD1B3N/C
J3CD1B4N/C
J3CD1B5N/C
J3CD1B6N/C
J3CD1B7N/C
J3CD1B8N/C
J3CD1B9N/C
J3CD1B10N/C
J3CD1B11GND
J3CD1B12N/C
J3CD1B13N/C
J3CD1B14N/C
J3CD1B15CPU_IRQ_OUTout
J3CD1B16CPU_IRQ0in
Connector
namePinNet Name
direction from
COMXnotes
J3CD1B17LBC_CLK0out
J3CD1B18LBC_CLK1out
J3CD1B19SERDES_TX6_Pout
J3CD1B20SERDES_TX6_Nout
J3CD1B21GND
J3CD1B22SERDES_TX7_Pout
J3CD1B23SERDES_TX7_Nout
J3CD1B24LBC_CS6_Nout
J3CD1B25LBC_CS3_Nout
J3CD1B26LBC_LA<31>bidir
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
49
Page 50
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J3CD1B27LBC_LA<30>bidir
J3CD1B28LBC_LAD<0>bidir
J3CD1B29LBC_LA<29>bidir
J3CD1B30LBC_LA<28>bidir
J3CD1B31GND
J3CD1B32LBC_LA<27>bidir
J3CD1B33LBC_LA<26>bidir
J3CD1B34LBC_LAD<1>bidir
J3CD1B35LBC_LAD<2>bidir
J3CD1B36LBC_LA<25>bidir
J3CD1B37LBC_LA<24>bidir
J3CD1B38LBC_LA<23>bidir
J3CD1B39LBC_LA<22>bidir
J3CD1B40LBC_LA<21>bidir
J3CD1B41GND
J3CD1B42LBC_LA<20>bidir
Connector
namePinNet Name
direction from
COMXnotes
J3CD1B43LBC_LA<19>bidir
J3CD1B44LBC_LA<18>bidir
J3CD1B45LBC_LAD<3>bidir
J3CD1B46LBC_LAD<4>bidir
J3CD1B47LBC_LAD<5>bidir
J3CD1B48LBC_LAD<6>bidir
J3CD1B49LBC_LAD<7>bidir
J3CD1B50LBC_ALE_Nout
J3CD1B51GND
J3CD1B52SERDES_TX16_Pout
50
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 51
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J3CD1B53SERDES_TX16_Nout
J3CD1B54COME_TYPE3_Nout
J3CD1B55SERDES_TX17_Pout
J3CD1B56SERDES_TX17_Nout
J3CD1B57COME_TYPE2_Nout
J3CD1B58SERDES_TX18_Pout
J3CD1B59SERDES_TX18_Nout
J3CD1B60GND
J3CD2A61SERDES_RX19_Pin
J3CD2A62SERDES_RX19_Nin
J3CD2A63CPU_EMI2_MDIObidir
J3CD2A64GND
J3CD2A65SERDES_RX20_Pin
J3CD2A66SERDES_RX20_Nin
J3CD2A67LBC_CS5_Nout
Connector
namePinNet Name
direction from
COMXnotes
J3CD2A68SERDES_RX21_Pin
J3CD2A69SERDES_RX21_Nin
J3CD2A70GND
J3CD2A71SERDES_RX22_SATA1_Pin
J3CD2A72SERDES_RX22_SATA1_Nin
J3CD2A73N/C
J3CD2A74SERDES_RX23_SATA2_Pin
J3CD2A75SERDES_RX23_SATA2_Nin
J3CD2A76N/C
J3CD2A77LBC_OE_Nout
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
51
Page 52
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J3CD2A78N/C
J3CD2A79N/C
J3CD2A80GND
J3CD2A81LBC_WP_Nout
J3CD2A82LBC_RB_Nout
J3CD2A83CPU_IRQ1in
J3CD2A84GND
J3CD2A85CPU_IRQ2in
J3CD2A86CPU_IRQ3in
J3CD2A87GND
J3CD2A88CPU_GPI0in
J3CD2A89CPU_GPI1in
J3CD2A90GND
J3CD2A91IOEXT_GPI5in
J3CD2A92CPU_GPI3in
J3CD2A93GND
Connector
namePinNet Name
direction from
COMXnotes
J3CD2A94CPU_GPI4in
J3CD2A95IOEXT_GPI6in
J3CD2A96GND
J3CD2A97IOEXT_GPI7in
J3CD2A98CPU_SPI_CS2_Nout
J3CD2A99CPU_SPI_CS3_Nout
J3CD2A100GND
J3CD2A101CLK_125M_100M_COME_
SDREF2_P
J3CD2A102CLK_125M_100M_COME_
SDREF2_N
52
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
out
out
Page 53
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J3CD2A103GND
J3CD2A104V12
J3CD2A105V12
J3CD2A106V12
J3CD2A107V12
J3CD2A108V12
J3CD2A109V12
J3CD2A110GND
J3CD2B61SERDES_TX19_Pout
J3CD2B62SERDES_TX19_Nout
J3CD2B63CPU_EMI2_MDCout
J3CD2B64LP_TMP_DET_BATout
J3CD2B65SERDES_TX20_Pout
J3CD2B66SERDES_TX20_Nout
J3CD2B67GND
Connector
namePinNet Name
direction from
COMXnotes
J3CD2B68SERDES_TX21_Pout
J3CD2B69SERDES_TX21_Nout
J3CD2B70GND
J3CD2B71SERDES_TX22_SATA1_Pout
J3CD2B72SERDES_TX22_SATA1_Nout
J3CD2B73N/C
J3CD2B74SERDES_TX23_SATA2_Pout
J3CD2B75SERDES_TX23_SATA2_Nout
J3CD2B76GND
J3CD2B77LBC_WE0_Nout
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
53
Page 54
Controls, LEDs, and Connectors
Table 3-4 COMX AB-CD Connectors (continued)
Connector
refdes
J3CD2B78LBC_LA<16>bi
J3CD2B79LBC_LA<17>bi
J3CD2B80GND
J3CD2B81LBC_CTL_Nout
J3CD2B82LBC_CS4_Nout
J3CD2B83CPU_IRQ4in
J3CD2B84GND
J3CD2B85IOEXT_GPI8in
J3CD2B86N/C
J3CD2B87GND
J3CD2B88CPU_GPO0out
J3CD2B89CPU_GPO1out
J3CD2B90GND
J3CD2B91IOEXT_GPO5out
J3CD2B92CPU_GPO3out
J3CD2B93GND
Connector
namePinNet Name
direction from
COMXnotes
J3CD2B94CPU_GPO4out
J3CD2B95IOEXT_GPO6out
J3CD2B96GND
J3CD2B97CPU_TMP_DETECT_Nincpu temp detect
J3CD2B98N/C
J3CD2B99N/C
J3CD2B100GND
J3CD2B101P50_LP_TMP_DETECT_GPO7out
J3CD2B102IOEXT_GPO8out
J3CD2B103GND
54
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 55
Table 3-4 COMX AB-CD Connectors (continued)
Controls, LEDs, and Connectors
Connector
refdes
J3CD2B104V12
J3CD2B105V12
J3CD2B106V12
J3CD2B107V12
J3CD2B108V12
J3CD2B109V12
J3CD2B110GND
Connector
namePinNet Name
direction from
COMXnotes
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
55
Page 56
Controls, LEDs, and Connectors
56
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 57
Functional Description
4.1Overview
The COMX-P40x0 ENP2 is a COM Express module based on the Freescale Power PC
P4040/P4080 platform. This board provides some of the universal interfaces such as Gigabit
Ethernet, USB, PCIE, and so on. This module is designed to support the QorIQ P4040/P4080
integrated processor at 1.2GHz core frequency. Currently productized variants support up to
4GB of DDR3 soldered down.
The QorIQ P4080 integrated communication processor has eight Power Architecture™
processor cores while the P4040 has four processor cores. The processors feature high
performance data path acceleration logic, network and peripheral bus interfaces required for
networking, tele communication, data communication, wireless infrastructure, and
military/aerospace applications.
Chapter 4
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
57
Page 58
Functional Description
4.2Block Diagram
Figure 4-1COMX-P40x0 ENP2 Block Diagram
58
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 59
Functional Description
4.3Processor Core and Cache Memory Complex
The QorIQ P4080/P4040 has eight/four high-performance 32-bit Power Architecture Book Ecompliant e500mc cores. Each e500mc is a superscalar dual issue processor that supports outof-order execution and in-order completion, thus making it perform better than other RISC and
CISC architectures.
Features of e500mc
36 bit physical addressing
512-entry 4-Kbyte pages
3 Integer units (2 simple, 1 complex)
1.2GHz at 1.0V
64-Byte cache line size
L1 caches
User, Supervisor, and Hypervisor instruction level privileges
APU, classic double precision floating point unit
128-Kbyte private L2 cache running at the same frequency of CPU
2-Mbyte of shared L3 CoreNet platform cache (CPC)
4.4Integrated Memory Controller
The P4080/P4040 integrates two DDR controllers that support DDR2 and DDR3 SDRAM. It can
support a maximum of 64GByte of main memory. ENP2 modules would be limited to 8GByte,
using 4Gbit devices.The ECC capability detects all double-bit errors, detects all multi-bit errors
within a nibble, and corrects all single-bit errors. The DDR controller is capable of self-refresh
mode and an initialization bypass during system power-on after an abnormal shutdown for use
by designers in preventing re-initialization.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
59
Page 60
Functional Description
4.5Local Bus
The 16-bit wide local bus is connected to a 2 Gb or 256 MB NOR Flash and an 8 Gb or 1 GB NAND
FLASH. The NOR FLASH is used to store the RCW data (active and alternates), FMan microcode,
DTB, U-Boot, demo Linux kernel and associated basic ramdisk. By default, the NAND FLASH is
used to store an alternate Linux filesystem. The local bus is also extended to the COM Express
connectors. There are six chip select signals supported - CS0, CS1 and CS3-6. CS0 is reserved
for the boot device and defaults to the NOR FLASH. CS1 defaults to the NAND FLASH. CS0 and
CS1 can be swapped between the NOR and NAND FLASH by driving the COM Express
connector pin A30 high (+3.3V). CS3-6 are extended to the COM Express connector and are
available for use.
The following figure illustrates the distribution of local bus on the module:
Figure 4-2Distribution of Local Bus on P40x0
60
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 61
4.5.1Clock
The eLBC clock is generated by platform clock. The divisor is configured by CLKDIV in Clock
Ratio Register (LCRR). The clock is limited to 75MHz maximum frequency.
4.5.2NOR FLASH
The NOR FLASH is attached to the GPCM on the local bus and operates in 16-bit mode.
The NOR FLASH is a Micron PC28F00BM29EWHA. Its size is 2Gb/ 256MB. It has 2048 uniform
blocks, 128K bytes or 64K words each.
The physical address for the NOR FLASH is 0xFE0000000 - 0xFEFFFFFFF.
The NOR FLASH contains RCW data, U-Boot image, U-Boot environment variables, kernel
image, device tree blob, RAMDISK image and FMAN ucode image. The detailed map is
described in the following table:
Functional Description
Table 4-1 NOR FLASH Map
Block#BlocksStart EndSize Description
010000 00000001 FFFF128 KBActive RCW Option
110002 00000003 FFFF128 KBRCW Option Data 1
210004 00000005 FFFF128 KBRCW Option Data 2
310006 00000007 FFFF128 KBRCW Option Data 3
410008 00000009 FFFF128 KBRCW Option Data 4
51000A 0000000B FFFF128 KBRCW Option Data 5
61000C 0000000D FFFF128 KBRCW Option Data 6
71000E 0000000F FFFF128 KBRCW Option Data 7
810010 00000011 FFFF128 KBRCW Option Data 8
910012 00000013 FFFF128 KBRCW Option Data 9
1010014 00000015 FFFF128 KBRCW Option Data 10
1110016 00000017 FFFF128 KBRCW Option Data 11
1210018 00000019 FFFF128 KBRCW Option Data 12
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Data
61
Page 62
Functional Description
Table 4-1 NOR FLASH Map (continued)
Block#BlocksStart EndSize Description
133001A 00000020 0000384KBNot Used
161120020 000000FF FFFF14 MBFMAN ucode Image
12817920100 00000EFF FFFF224 MBRAMDISK Image
19201200F00 00000FEF FFFF15 MBKernel Image
204030FF0 00000FF5 FFFF384 KBDevice Tree Blob
204310FF6 00000FF7 FFFF128 KBU-Boot Env Variable
204440FF8 00000FFF FFFF512 KBU-Boot Image
4.5.3NAND FLASH
The NAND FLASH is a Micron MT29F8G08ADADAH4 with a size of 8Gb/1GB. Each page
contains 2112 bytes including 2048 bytes of data and 64 bytes of spare. Each block contains
64 pages including 128KB of data and 4KB of spare. There are a total of 8192 blocks.
As shipped, the NAND FLASH is only used as NAND FLASH JFFS2 rootfs. The map is described as
below table:
The P4040/P4080 CPU provides 3 banks of SERDES with a total of 18 lanes. Bank 1 routes 8
lanes to the COM Express connector as SERDES[0:7]. Bank 2 routes 4 lanes to the COM Express
connector as SERDES[16:19]. Bank 3 also routes 4 lanes to the COM Express connector but is
unused for this module. Bank 1 provides 2 additional SERDES lanes on-board for CPU
debugging through the Aurora interface. See note in the Overviewon page 15.
62
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 63
The protocol running on each lane or group of lanes routed to the COM Express connector is configured by the RCW.
Available options are shown in the following table (slot numbers refer to COMX-CAR-P1 PCIe connector slots):
Table 4-3 Options of the SERDES routed to COM Express Connectors
Bank1 SerDes
Option
0-3 (SLOT J6)
1PCIe1 x4
(2.5Gbps)
2PCIe1 x4
(2.5Gbps)
3PCIe1 x4
(5Gbps)
4PCIe1 x4
(5Gbps)
5PCIe1 x4
(2.5Gbps)
6PCIe1 x4
(2.5Gbps)
7SRIO2 x4
(3.125Gbps)
8SRIO2 x4
(3.125Gbps)
9SRIO2 x4
(2.5Gbps)
10SRIO2 x4
(3.125Gbps)
11PCIe1 x4
(2.5Gbps)
12PCIe1 x4
(5Gbps)
Bank1 SerDes 4-7
(SLOT J14)
PCIe2 x4
(2.5Gbps)
PCIe2 x4
(5Gbps)
PCIe2 x4
(2.5Gbps)
PCIe2 x4
(5Gbps)
SGMII FM2 x4
(1.25Gbps)
SGMII FM2 x4
(1.25Gbps)
SRIO1 x4
(3.125Gbps)
SRIO1 x4
(3.125Gbps)
SRIO1 x4
(2.5Gbps)
SRIO1 x4
(3.125Gbps)
SRIO1 x4
(2.5Gbps)
SRIO1 x4
(2.5Gbps)
Bank2 SerDes 10-13
(SLOT J10)
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
PCIe3 x4
(2.5Gbps)
1
PCIe3 x4
1
(5Gbps)
XAUI FM2
(3.125Gbps)
1
SGMII FM2 x4
(1.25Gbps)
1
XAUI FM2
(3.125Gbps)
1
XAUI FM2
(3.125Gbps)
1
Bank3 SerDes 1417 (Slot J2)
4
XAUI FM1
(3.125Gbps)
1
XAUI FM1
(3.125Gbps)
1
XAUI FM1
(3.125Gbps)
1
XAUI FM1
(3.125Gbps)
Reser ved
Reser ved
1
2
2
SGMII FM1 x4
(1.25Gbps)
1
SGMII FM1 x4
(1.25Gbps)
1
XAUI FM1
(3.125Gbps)
1
SGMII FM1 x4
(1.25Gbps)
1
XAUI FM1
(3.125Gbps)
1
XAUI FM1
(3.125Gbps)
1
RCW
[SRDS_PRTCL]
0x05100MHz
0x05100MHz
0x05100MHz
0x05100MHz
0x0F100MHz
0x0F100MHz
0x19125MHz
0x19125MHz
0x13100MHz
0x16125MHz
0x22100MHz
0x22100MHz
Bank 1 SerDes
Clock3
3
3
3
3
3
3
3
3
3
3
3
3
Bank 2/3 SerDes
Clock3
3
125MHz
3
125MHz
3
125MHz
3
125MHz
3
125MHz
3
125MHz
3
100MHz
3
100MHz
3
125MHz
3
125MHz
3
125MHz
3
125MHz
1 SerDes Bank2 and Bank3 are powered down by default by the RCW, but are later enabled by the firmware.
2 SerDes Bank 3 is unavailable in this configuration.
3 SerDes reference clocks must be properly configured by the carrier or CPU GPIO pins for the selected interfaces to work. See Clock Structure section for clock
settings.
4 Only SerDes lane 14 is routed to Slot J2.
Page 64
Functional Description
The following figure illustrates the distribution of SERDES lanes on the module:
Figure 4-3Distribution of SERDES Lanes
64
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 65
4.7Thermal Management
The COMX-P40x0 ENP2 module provides a thermal management strategy. This includes CPU
junction temperature monitoring as shown in the following figure:
Figure 4-4Module Thermal Management
Functional Description
A thermal diode is integrated in the P40x0, which connects to a thermal sensor ADT7411. The
CPU can get the junction temperature via I2C.
When the junction temperature reaches105oC, the ADT7411 drives INT# low, to indicate an
interrupt to the CPU. The red LED D17 shows the interrupt status.
LEDDefinitionStatusDescription
D17INT# signal is activeONThe CPU temperature has
OFFNormal status
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
reached 105
o
C
65
Page 66
Functional Description
4.8Main Memory
4.8.1Memory Interface
QorIQ P40x0 supports two individual DDR channels that are configured for DDR3 operation at
600MHz or 1200 MT/s. Each channel consists of 64-bit data and 8-bit ECC.
The module supports either 1GB or 2GB of on-board memory per channel for a total of 2GB or
4GB. Each memory bank consists of 9 memory chips of 8-bits with each bank located on
opposite sides of the board.
The SDRAM package height is a maximum of 1.2mm.
The following figure illustrates the DDR memory architecture per controller:
Figure 4-5Memory Interface
66
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 67
4.8.2Memory Map
The following table provides the U-boot memory map of the COMX-P40x0 ENP2.
Note1: Only up to 2GB memory is mapped in U-Boot and the other memory is left unmapped and not
used if more than 2GB memory is fitted. More than 2GB can be used in Linux. Up to 4GB has been
verified.
Note2: Address #4 and #5 is used instead of address #3 if RIO is configured
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
67
Page 68
Functional Description
4.9GPIO
The COMX-P40x0 supports a total of 20 GPIO pins. The following table lists the GPIOs:
Table 4-5 GPIO
GPIO namefunction
CPU_GPIO0GPI0 of COME connectors
CPU_GPIO1GPI1 of COME connectors
CPU_GPIO2GPI3 of COME connectors
CPU_GPIO3GPI4 of COME connectors
CPU_GPIO4GPO0 of COME connectors
CPU_GPIO5GPO1 of COME connectors
CPU_GPIO6GPO3 of COME connectors
CPU_GPIO7GPO4 of COME connectors
CPU_GPIO19Clock generators enable control
CPU_GPIO20Carried board reset output
CPU_GPIO23Clock generator of bank 1
frequency selection
CPU_GPIO24Clock generator of bank 2-3
frequency selection
IOEXT_GPI5 (PCA9557 I/O0)GPI5 of COME connectors
IOEXT_GPI6 (PCA9557 I/O1)GPI6 of COME connectors
IOEXT_GPI7 (PCA9557 I/O2)GPI7 of COME connectors
IOEXT_GPI8 (PCA9557 I/O3)GPI8 of COME connectors
IOEXT_GPO5 (PCA9557 I/O4)GPO5 of COME connectors
IOEXT_GPO6 (PCA9557 I/O5)GPO6 of COME connectors
IOEXT_GPO7 (PCA9557 I/O6)GPO7 of COME connectors
IOEXT_GPO8 (PCA9557 I/O7)GPO8 of COME connectors
68
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 69
Functional Description
GPIO19, 20, 23, and 24 are multiplexed with other functional blocks. The pins should be
configured as follows.
GPIO19: RCW [DMA1]=1b
GPIO20: RCW [DMA2]=10b
GPIO23/24: RCW [IRQ]=1b
After reset, the direction for all GPIOs are set to input. All GPIOs used as output need to be
reconfigured.
Figure 4-6Distribution of GPIO
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
69
Page 70
Functional Description
Table 4-6 GPIO
PCA955NAME - GPIO NAMECOMX PLUG.PIN
IO0 - GPI5CD.A91
IO1 - GPI6CD.A95
IO2 - GPI7CD.A97
IO3 - GPI8CD.B85
IO4 - GP05CD.B91
IO5 - GPO6CD.B95
IO6 - GPO7CD.B101
IO7 - GPO8CD.B102
4.10SDHC
The COMX-P40x0 ENP2 provides an SD/MMC interface to the COM Express connector to
support expansion card options on the carrier.
This module not only supports SD card but also Micro SD card in which there is no write-protect
signal. COMe connector B57 is used to define whether an SD card or Micro SD card is populated
on the carrier board.
Table 4-7 SD or Micro SD card on the Carrier
COMe pin B57Card on the carrier
1SD card
0 (Default)Micro SD card
4.11SPI Interface
The COMX-P40x0 ENP2 provides a SPI bus from the P40x0 CPU with 3 chip-select signals. All
SPI bus signals are routed to COM Express connectors.
70
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 71
4.12LAN
Modules with gigabit Ethernet options route a port with LED control signals to the COM Express
connector. The supporting magnetics must be on the carrier board. RGMII is the interface
between the P40x0 MAC and external PHY. This interface is multiplexed with the USB1 ULPI
interface so modules with the gigabit Ethernet option should set RCW[EC1] to 00 to select
RGMII operation.
4.12.1MDIO
There are two groups of MDIO buses in the P40x0 CPU. The first group called EMI1 complies
with IEEE 802.3 Clause 22 and is used for management of the 1Gb Ethernet connection on
modules with that option, and management of SERDES interfaces configured as SGMII. EMI1
has two pins: EMI1_MDC and EMI1_MDIO. All dTSEC interfaces in the P40x0 CPU share the
same management hardware. External PHY access for all ports is available through the dTSEC1
registers of FM1. EMI1 is based on +2.5V signaling levels.
Functional Description
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
71
Page 72
Functional Description
The second group is called EMI2 which complies with IEEE 802.3ae Clause 45 and is used for
management of SERDES connections configured for 10GE (XAUI). EMI2 has two pins:
EMI2_MDC and EMI2_MDIO. External PHY access is performed through the 10GEC registers
of FM1. EMI2 is based on +1.2V signaling levels.
Figure 4-7MDIO Routing
72
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 73
4.13PHY
The dTSEC1 interface of FM1 is connected to a BCM5482 Ethernet PHY via RGMII on boards
with the 1GE option. There are two ports included in the PHY but only the first port is used. The
MDIO address for the first port is 0x01 and the second is 0x02.
The MDIO addresses for 4 SGMII PHYs are 0x1C, 0x1D, 0x1E and 0x1F when SerDes option
#5/#6 or #10 is applied (or options #7 or #8 when Bank3 is enabled).
4.14UART Interface
The P40x0 CPU provides up to 4 simple UART ports (Tx and Rx signals) or up to 2 UART ports
with hardware flow control (Tx, Rx, RTS, and CTS signals). The COMX-P40x0 ENP2 is configured
by default to route 4 simple UART ports to the COM Express connector.
Functional Description
4.15Real Time Clock
The RTC is implemented by an ST Micro M41T62LC6F device. It is accessed over I2C bus 2 of the
P40x0 CPU at address 0xD0. The RTC provides a 32 KHz clock output to the CPU for
timekeeping and is supplied by the VCC_BAT pin on the COM Express connector.
4.16Watchdog Timer
The watchdog timer is implemented by an ST Micro M41T65Q65 device. It is accessed over I2C
bus 1 of the P40x0 CPU at address 0xD0. The watchdog timer is capable of generating a poweron reset and interrupt to the CPU.
4.17USB
The COMX-P40x0 ENP2 module has one USB port from the CPU connected through a USB ULPI
PHY (USB3315) to a four-port hub (USB2514). The four ports of the hub are routed to the COM
Express connector. The hub is hardware strapped to indicate all ports removable. Two activelow overcurrent signals are received from the COM Express connector to the USB hub to
indicate power faults: USB_OC_0_1_N (Port 0 and 1) and USB_OC_2_3_N (Port 2 and 3).
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
73
Page 74
Functional Description
An optional fifth USB port can be provided from the CPU through a ULPI USB PHY (USB3315)
to the COM Express connector. This is the default option for modules not providing the 1GE
port since the two functions are multiplexed on the same CPU pins. An active-low overcurrent
signal USB_OC_4_5_N is provided from the COM Express connector to indicate a power fault
on the fifth USB port. It is routed as an interrupt to the CPU.
4.18I2C Interface
The P40x0 CPU has four I2C buses. Among four I2C buses, the I2C3 bus is multiplexed with
SDHC bus and remaining I2C buses are routed to the COM Express connectors.
There is only one device attached to the second I2C bus I2C2, and there are 6 devices attached
to the first I2C bus I2C1.
74
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 75
The following figure illustrates the distribution of the I2C buses:
Figure 4-8Distribution of I2C buses
Functional Description
Table 4-8 I2C Interface
AddressBusComponentFunction
0xDCI2C19FG104DGILFTClock Generator
0xD0I2C1M41T65Q6FWatchdog
0x30I2C1PCA9557PW-TIO-Expander
0xACI2C1MCP98243T-BE/STSPD Channel A. This is
optional and not
populated by default.
0xA4I2C1MCP98243T-BE/STSPD Channel B. This is
optional and not
populated by default.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
75
Page 76
Functional Description
Table 4-8 I2C Interface
AddressBusComponentFunction
0x90I2C1 ADT7411ARQZ-REEL7 Voltage Monitor/ Temp
Sense
0xAEI2C1AT24C02-SSHM-T
AT24C512C-SSHM-T
0xA8I2C1AT24C512C-XHM-T Processor ID EEPROM
0xD0I2C2M41T62LC6FRTC
0xDCI2C29FG104DGILFTClock Generator
2kb Boot Config EEPROM
512kb Boot Config
EEPROM
4.18.1I2C Device Thermal Sensor
The ADT7411 thermal sensor is a dual-channel digital thermometer and under/over
temperature alarm. It is located on I2C1 at address 0x90 and measures the CPU temperature.
The ADT7411 can accurately measure the temperature of a remote thermal diode to ±1°C and
the ambient temperature to ±3°C. An ALERT output routed to an interrupt on the CPU signals
when on-chip or remote temperature is out of range.
4.18.2I2C Device EEPROM
There are two I2C EEPROMs on the module implemented in AT24C02C and AT24C512C
devices. These EEPROMs are located on I2C1; one is for ID EEPROM (U30, AT24C02C, storing
board serial number, MAC address and so on.) and the other is for Processor EEPROM (U2001,
AT24C512C, storing processor ID and so on).The I2C addresses of these EEPROMs are 0xAE and
0xA8.
The AT24C02C provides 2Kbits of storage while the AT24C512C provides 512Kbits.
Both EEPROMs support sequential read and page write.
4.18.3I2C Device WDT
The watchdog timer M41T65Q is located on I2C1, U2101 and the device address is 0xD0. It is
able to generate a power-on reset and interrupt to the CPU.
76
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 77
4.18.4I2C Device RTC
The real time clock M41S62L is located on I2C2, U2100 and the device address is 0xD0. It
provides a 32KHz clock output and interrupt to the CPU.
4.18.5I2C Device Clock Generators
One clock generator ICS9FG104 is located on I2C1, U17 and the device address is 0xDC. The
second clock generator ICS9FG104 is located on I2C2, U40 with a device address of 0xDC.
The ICS9FG104 is a Frequency Timing Generator that provides four differential output pairs
that are compliant to the Intel CK410 specification. The part synthesizes several output
frequencies from a 25 MHz crystal. It provides outputs with cycle-to-cycle jitter of less than 50
ps and output-tooutput skew of less than 35 ps.
Frequency selection can be accomplished via strap pins or SMBus control. By default, strap pins
are used.
Functional Description
The input clock for the first clock generator is 25MHz and three differential output pairs are
provided. First pair are connected to SerDes Bank 1, second pair are connected to x2 Aurora
Connector, and third pair are connected to COM Express connector. The second clock
generator also uses a 25MHz input reference with three output pairs. The first pair drives
SERDES bank 2, the second pair drives SERDES bank 3, and the third is connected to the COM
Express connector.
The frequency of the first clock generator (bank 1 SERDES and Aurora) is selected through the
FS0 strap pin which is connected to GPIO23 of the CPU and pin B97 of the COM Express
connector. When low the frequency is 100MHz and when high it is 125MHz. The frequency of
the second clock generator (bank 2 and 3 SERDES) is also selected through the FS0 strap pin
which is connected to GPIO24 of the CPU and pin B98 of the COM Express connector. When low
the frequency is 100MHz and when high it is 125MHz.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
77
Page 78
Functional Description
78
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 79
Clock Structure
5.1Overview
The COMX-P40x0 ENP2 needs several kinds of single ended and differential clocks for booting
up and normal operating. Following is the clock distribution tree:
Figure 5-1Clock Distribution
Chapter 5
GE PHY
Bank 1Bank 2Bank 3
P40x0
COME Connector
Reference clock for
Bank 2#/3#
100 MHz
32.768 KHz
60 MHz
100 MHz
OSC
RTC
32.768 KHz
USB
PHY
USB
PHY
24 MHz
CY2305
24 MHz
OSC
Crystal
Crystal
ICS9FG104
(<50ps)
ICS9FG104
(<50ps)
Reference clock
for Bank 1#
100 MHz
100 MHz
125 MHz
125 MHz
Device on
Carrier
Crystal
Device on
Carrier
The output frequency of the bank 1 and bank 2/3 SERDES clocks is selectable between
100MHz and 125MHz. This must be set correctly by the carrier or corresponding CPU GPIO
pins depending on what RCW SERDES configuration is selected. For proper settings, refer
SERDES Block on page 62.
Table 5-1 Configuration of the frequency of SERDES reference clock by carrier
SERDES bank 1 reference clock select (pin B97
on COME)
Bank1_SEL_FS0=0, 100MHzBank2_SEL_S1=0, 100MHz
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
SERDES bank 2/3 reference clock select (pin B98
on COME)
79
Page 80
Clock Structure
Table 5-1 Configuration of the frequency of SERDES reference clock by carrier (continued)
SERDES bank 1 reference clock select (pin B97
on COME)
Bank1_SEL_FS0=1, 125MHzBank2_SEL_S1=1, 125MHz
*Default:100MHz*Default:125MHz
SERDES bank 2/3 reference clock select (pin B98
on COME)
Table 5-2 Configuration of the frequency of SERDES reference clock by GPIO
SERDES bank 1 reference clockSERDES bank 2 reference clock
CPU_GPIO23=0, 100MHzCPU_GPIO24=0, 100MHz
CPU_GPIO23=1, 125MHzCPU_GPIO24=1, 125MHz
Default:100MHzDefault:125MHz
80
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 81
Power Domains
6.1Overview
This subsection describes the power supply system for the module. 12V Power is supplied to
module from ATX-type (using Artesyn carrier) power supply through COM Express connectors and
on-board regulators supply required voltages to devices on the module.
Figure 6-1Power Tree
Chapter 6
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
81
Page 82
Power Domains
6.2Power Controlling Sequence
The power sequencing of the COMX-P40x0 ENP2 differs between secure boot mode and nonsecure boot mode. For secure boot mode, POVDD should be set to 1.5V DC and is powered at
least 100 system clock cycles after the rising edge of power on reset signal. For non-secure
boot mode, POVDD should be set to GND.
Figure 6-2Power Sequence of COMX-P40x0 ENP2
82
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 83
BSP
7.1Overview
COMX-P40x0-ENP2 has a board support package (BSP) that provides a shell to allow users to
accomplish most of the debugging operations on most of the board’s interfaces and peripheral
devices. The BSP of COMX-P40x0 is U-Boot, Linux, DTB and rootfs.
7.2Setup Requirements
The following are the minimum setup requirements for the COMX-P40x0:
One serial cable to connect the COMX-P40x0 to a computer
One network cable connecting the onboard network port to the network
A TFTP server connected to the network.
Chapter 7
–The IP address should 192.168.0.100
–The TFTP root is /tftpboot/. You need to create a sub-directory named "comx_p4080/"
in this root.
Three copies of the BSP package comx_p4080.
COMX_P4080_V100R00.tar.gz, which will be decompressed in the comx_p4080/ file
NFS service is active on this TFP server and files are exported to
/tftpboot/comx_p4080/rootfs_nfs
7.3Basic Commands
The following are the commands commonly used by the U-Boot. To enter the U-Boot shell, press
any key while the autoboot is counting down.
Table 7-1 Basic U-Boot Commands
CommandDescription
=>Prompt for the command line.
help [cmd] or ? [cmd]Used to display the usage options for the command "cmd".
If "cmd" is not specified, U-Boot will display the brief usage options for
all of the available commands.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
83
Page 84
BSP
Table 7-1 Basic U-Boot Commands (continued)
CommandDescription
printenv [vn]Displays the value of the environment variable "vn".
If "vn" is not specified, U-Boot will display the values for all of the environment variables.
setenv <vn> [vv]Sets the value of the environment variable "vn" to "vv". If "vv" is not spec-
ified, U-Boot will not define the environment variable "vn".
If "vv" includes spaces, it should be enclosed within single quote marks.
For example: setenv manufacturer ’Emerson Network
Power’
saveenvSaves all the environment variables persistently to the U-Boot env sec-
tion on NOR Flash.
run eraenvErases all the environment variables stored in the U-Boot env section on
NOR Flash.
Protect off EFEE0000 +00020000; erase EFEE0000 +00020000
Protect on EFEE0000 +00020000
A reset must be performed after "run eraenv".
tftpbootDownloads image through network using TFTP protocol.
9.Setup cross-compile environment using the source
build_p4080ds_release/bitbake.rc command.
10. Build Freescale P4080DS BSP images for building test using the bitbake devel-image
command.
7.5BSP Source Code Package
7.5.1De-Compose Source Code Package
Copy the COMX-P4080-2G-ENP2 released BSP source code package
COMX_P4080_SRC_<Version Number>.tar.gz to the build host and un-compress it in
current directory:
tar xzvf COMX_P4080_SRC_<Version Number>.tar.gz
There will be a newly-created folder named P4080 which contains SCP-P4080-2G-ENP2 source
code.
Table 7-2 BSP Source Code Package Layout
File/Directory NameDescription
build.shTop script for building all of BSP images for BSP release. It calls Makefile
to perform the operations.
clean.shTop script for cleaning all of BSP images and temporary objects for BSP
release. It calls Makefile to perform the operations.
linux/linux/ director y contains Linux kernel, rootfs and rootfs building scripts.
MakefileTop makefile for building/cleaning all of BSP images for BSP release. It
calls Makefiles and scripts located in sub-directories to perform the
operations.
Makefile-p4080dsTop makefile for building/cleaning all of BSP images for P4080DS BSP
release. It calls Makefiles and scripts located in sub-directories to
perform the operations.
misc/misc/ contains FMAN uCode and RCW.
86
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 87
Table 7-2 BSP Source Code Package Layout
File/Directory NameDescription
u-boot/U-Boot source code.
7.6Basic Environment Variable Settings
7.6.1Setup Build Environment
If Freescale SDK1.0 is used as build tool, and the host linux is 32 bit, modify the Makefile
and set the environment variant PPC_TOOL_PATH as below:
SDK_INSTALL_PATH ?= /unixopt/sdk1.0/QorIQ-DPAA-SDK-20110609systembuilder
PPC_TOOL_PATH ?= $(SDK_INSTALL_PATH)/freescale-
The build tool is not verified with SDK1.0 at 64bit Linux host.
7.6.2Network Variables
This table lists example network u-boot environment variables to establish a network
connection. By default, the factory sets up 10 MAC addresses in the ID EEPROM and u-boot will
establish corresponding "ethXaddr" variables automatically.
Network Variables
setenv ipaddr 192.168.0.91
setenv netmask255.255.255.0
setenv gatewayip192.168.0.1
setenv serverip192.168.0.100
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
89
Page 90
BSP
7.6.8Bootargs Variable
Bootargs Variable
rootroot=/dev/ram for ramboot and norboot;
'root=/dev/$jffs2nand rw’ for nandboot;
root=/dev/nfs for nfsboot;
'root=/dev/$usbbdev rw’ for usbfatboot and usbext2boot;
oot=/dev/$mmcbdev rw’ for mmcfatboot and mmcext2boot
rootfstype‘rootfstype=jffs2’ is needed for nandboot
rootdelay‘rootdelay=30’ is needed for usb*boot and mmc*boot
consoleDefault is ‘console=$consoledev,$baudrate’
hwbootargsDefault is ‘riohdid=0 xauiphy=1’, generated by U-Boot based on hwcon-
fig.
othbootargsDefault is ‘ramdisk_size=00700000 cache-sram-size=0x10000
7.6.9Bootup Variables
Bootup Variables
rambootDefault is ‘setenv bootargs root=/dev/ram rw
usbfatbootdefault is ‘setenv bootargs root=/dev/$usbbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs $othbootargs;usb
start;fatload usb 0:1 $loadaddr /boot/$bootfile;fatload usb 0:1 $fdtaddr
/boot/$fdtfile;bootm $loadaddr - $fdtaddr’
BSP
usbext2bootdefault is ‘setenv bootargs root=/dev/$usbbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs $othbootargs;usb
start;ext2load usb 0:2 $loadaddr /boot/$bootfile;ext2load usb 0:2
$fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr’
7.7Checking the BSP Version
There are several different versions of the BSP, but no versions are availble for RCW and DTB.
Below are the methods on how the versions can be checked.
1.For the FMAN uCode Version, it can be found in the U-Boot boot-up message.
Fman: Uploading microcode version 101.6.0.
2. RAMDISK rootfs version
Boot up with ramboot (’run ramboot’ in U-Boot) or norboot (’run norboot’ in U-Boot).
In Linux, run ’cat /etc/.version’
[root@COMX-P4080 root]# cat /etc/.version
COMX-P4080 EXT2 ROOTFS ver: COMX_P4080_V100R00 build by
ec7536@cncdebaobs04.emrsn.org on Mon Nov 29 08:46:50 UTC 2010
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
91
Page 92
BSP
3.Kernel version
The version can be viewed in the loading kernel message:
## Booting kernel from Legacy Image at XXXXXXXX ...
Image Name: Linux-2.6.34.6
Created: 2010-11-29 8:46:16 UTC
Run ’iminfo $norbootaddr’ in U-Boot
=> iminfo $norbootaddr
## Checking Image at ee000000 ...
Legacy image found
Image Name: Linux-2.6.34.6
Created: 2010-11-29 8:46:16 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 3520445 Bytes = 3.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
92
In the kernel boot-up message:
Linux version 2.6.34.6 (ec7536@cncdebaobs04.emrsn.org) (gcc
version 4.3.2 (Sourcery G++ Lite 4.3-74) ) #1 SMP Mon Nov 29
16:46:03 CST 2010
4.U-Boot Version
Run the command "version" after the first line lf the U-Boot boot-up message
In the U-Boot, boot with nanboot (’run nandboot’). In Linux, run ’cat /etc/.version’
[root@COMX-P4080 root]# cat /etc/.version
COMX-P4080 JFFS2 ROOTFS for nand.full FLASH ver:
COMX_P4080_V100R00 build by ec7536@cncdebaobs04.emrsn.org on
Mon Nov 29 08:47:50 UTC 2010
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 93
6.NFS rootfs version
In the U-Boot, boot with nfs (’run nfsboot’). In Linux, run ’cat/etc/.version’.
7.8CPU
COMX-P4080 has the Freescale QorIQ Communications Processor. The CPU information can be
viewed in the terminal. Figure 7-1 below shows console output containing an example of the
CPU information.
Figure 7-1COMX-P4080 CPU Information
BSP
[root@COMX-P4080 root]# cat /etc/.version
COMX-P4080 NFS ROOTFS ver: COMX_P4080_V100R00 build by
ec7536@cncdebaobs04.emrsn.org on Mon Nov 29 08:50:20 UTC 2010
CPU0 is the active CPU in the U-Boot. Run the command "reset" to reboot the CPU/board.
7.9Address Space
U-Boot and Linux work in 36-bit physical addressing mode. The relationship between effective
address and physical address is displayed in the memory map table on Table "COMX-P4080
Address Space".
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
93
Page 94
BSP
The following are mapped in to the first 4 GB address space of the 64 GB, which is the 36-bit
physical address space. The 4 GB space is named as the effective address space and can be
accessed by the U-Boot.
DDR3 SDRAM
PCIE1/2/3 MEM
PCIE1/2/3 IO
RIO1/2 MEM
LBC NOR FLASH
DCSR
BMAN MEM
QMAN MEM
NAND FLASH Buffer
CCSR
BOOT PAGE
Table 7-3 COMX-P4080 Address Space
32-bit Effective
Address
10000 00000 0000 00008000 0000 - 2 GBDDR3 Memory
28000 0000C 0000 00002000 0000 - 512 MBPCIE1 MEM
3A000 0000C 2000 00002000 0000 - 512 MBPCIE2 MEM, if #4 and #5 are unused
4A000 0000C 2000 00001000 0000 - 256 MBRIO1 MEM, if #2 is unused
5B000 0000C 3000 00001000 0000 - 256 MBRIO2 MEM, if #2 is unused
6C000 0000C 4000 00000800 0000 - 512 MBPCIE3 MEM
7E800 0000F E800 00000800 0000 - 128 MBLBC NOR Flash
8F000 0000F 0000 00000040 0000 - 4 MBDCSR
9F400 0000F F400 00000020 0000 - 2 MBBMAN MEM
10F420 0000F F420 00000020 0000 - 2 MBQMAN MEM
11F800 0000F F800 00000001 0000 - 64 KBPCIE1 IO
Base Address
36-bit Phyiscal
Base AddressSizeDescription
94
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
U-Boot uses the following commands to display and modify the contents of the 4 GB effective
address space. Note that ".b", ".w", and ".l" means the operation unit is "byte", "word", and "long"
respectively.
md
-
Memory display
md [.b, .w, .l] address [# of objects]
mm
-
memory modify (auto-incrementing address)
mm [.b, .w, .l] address
this command copies data from one place to another
cp [.b, .w, .l] source target count
cmp
-
this command compares two data in different places.
cmp [.b, .w, .l] addr1 addr 2 count
7.10DDR3 SDRAM
COMX-P4080 has two fully programmable DDR3 SDRAM controllers. A maximum of 2 GB
SDRAM are mapped in U-Boot. If more than 2 GB SDRAM is fitted, the remaining sections are
left unmapped. With Linux, up to 4 GB SDRAM can be verified.
Do not modify the contents of the lowest 1 MB and the top 1 MB RAM in the U-Boot. Both areas
are used to store critical data by U-Boot.
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
95
Page 96
BSP
When the U-Boot detects the DDR3 SDRAM during boot up, the following message appears:
COMX-P40X0-ENP2 has 20 general purpose input/output (GPIO), 12 connected to the CPU,
and 8 implemented on an I2C expander. For more information, see GPIO on page 68.
Table 7-4 GPIO States
GPIO#Input/OutputReset StateDescription
GPIO00IIGPI0 of COM-E connectors
GPIO01IIGPI1 of COM-E connectors
GPIO02IIGPI3 of COM-E connectors
GPIO03IIGPI4 of COM-E connectors
GPIO04OIGPO0 of COM-E connectors and also as to control
debug LED D18
GPIO05OIGPO1 of COM-E connectors and also as to control
debug LED D19
GPIO06OIGPO3 of COM-E connectors
GPIO07OIGPO4 of COM-E connectors
GPIO19OIClock Generator Enable
GPIO20OICarried board reset output
GPIO23IIClock generator of bank 1 frequency selection input
GPIO24IIClock generator of bank 2/3 frequency selection input
For more information, see GPIO on page 68.
96
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 97
The U-Boot provides several GPIO utility commands.
Table 7-5 GPIO Command Usage
CommandDescription
gpio dumpDumps the direction, od and level information for all pins
gpio get <pin>Gets the direction, od and level information for the specified pin
gpio set dir <pin> <dir>Sets the direction of the specified pin
gpio set dir <pin> <ol>Sets the od of the specified pin
gpio set dir <pin> <lvl>Sets the level of the specified pin
The parameters used in the GPIO utility commands are described below.
BSP
<pin>
<dir>
<od>
<lvl>
For the GPIO signals connected to the I2C expander, these are controlled via the "i2c" command
using the I2C address = 0x18. For more information, see I2C on page 100.
7.12UART
There are a total of four universal asynchronous receiver/transmitters (UART) in the COMXP40x0, each with Tx and Rx signals routed to the COM-E connectors.
-
0, 1, 2, 3, 4, 5, 6, 7, 19, 20, 23, 24
-
0 for input
1 for output
-
0 for output
1 for open drain
-
0 for low level
1 for high level
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
97
Page 98
BSP
The default active console is UART0. The working mode is 115200, 8, N, 1. Each of the four
UART can become the active console by setting the environment variable "uart#".
Usage:
UART0
UART1
UART2
UART3
The UART boot up message in U-Boot is as follows:
In :Serial
Out :Serial
Err :Serial
Current Console: uart#0
-
setenv uart# 0; saveenv; reset
-
setenv uart# 1; saveenv; reset
-
setenv uart# 2; saveenv; reset
-
setenv uart# 3; saveenv; reset
7.13NOR Flash
The NOR Flash is Numonyx™ Axcell™ JS28F00AM29EWL or Spansion S29GL01GP11TFIR2 and
is attached to the GPCM on local bus and works with 16-bit data width. It is either 1 GB or 128
MB and has 1024 uniform blocks of 128 K (or 64 K words each). The 36-bit physical address of
NOR Flash is 0xFE8000000 - 0xFEFFFFFFF. Boot up message in U-Boot is "FLASH: 128 MiB".
98
NOR Flash supports the following commands: md, cp, cmp, protect and erase.
Table 7-6 NOR Flash Command Usage
CommandDescription
protect on start endProtects flash from address "start" to address "end"
protect on start +lenProtects flash from address "start" to end of section with address
"start"+"len"-1
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
Page 99
Table 7-6 NOR Flash Command Usage (continued)
CommandDescription
protect on allProtects all flash banks
protect off start endMakes flash from address "start" to address "end" writable
protect off start +lenMakes flash from address "start" to end of section with address
"start"+"len"-1 writable
protect off allMakes all flash banks writable
erase start endErases flash from address ’start’ to address ’end’
erase start +lenErases flash from address ’start’ to the end of section with address
’start’+len-1
erase allErases all flash banks
The following is a NOR Flash operation example that upgrades the U-Boot.
BSP
tftpboot $loadaddr $ubootfile; protect off 0xeff00000 +$filesize;
erase 0xeff00000 +$filesize; cp.b $loadaddr 0xeff00000 $filesize;
protect on 0xeff00000 +$filesize;
7.14NAND Flash
The NAND Flash is Numonyx NAND08GW3B2CN6E which is 1 GB in size. It is attached to the
FCM on the local bus and works at 8-bit mode. Boot up message will appear as "NAND: 1024
MiB".
Each page contains 2,112 bytes, including 2048 bytes of data with 64 bytes spare. Each block
contains 64 pages, including 128 KB of data with 4 KB spare, making a total of 8192 blocks.
NAND Flash supports the following commands:
Table 7-7 NAND Flash Command Usage
CommandDescription
nand infoShows available NAND devices
nand device [dev]Shows or sets current device
nand readAddr off|partition size
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
99
Page 100
BSP
Table 7-7 NAND Flash Command Usage (continued)
CommandDescription
nand writeAddr off|partition size
Read/write ’size’ bytes starting at offset ’off’ to/from memory
address ’addr’, skipping bad blocks.
nand erase [clean] [off size]Erase ’size’ bytes from offset ’off’ (will erase on the entire device if it
is not specified)
nand badShows bad blocks
nand dump[.oob] offDumps page
nand scrubCleans NAND by erasing bad blocks. Considered unsafe.
nand markbad off [...]Marks bad block or blocks at offset. Considered unsafe.
nand biterr offMakes a bit error at offset. Considered unsafe.
7.15I2C
There are a total of four I2C buses in the COMX-P40x0, labeled as I2C<1/2/3/4>. For more
information, see GPIO on page 68.
U-Boot provides the following utilities for I2C bus and devices.