Page 4
Watchdog Control and Status Register (CPLD_WDCSR)..................48 7.2.8 Watchdog Kick Register (CPLD_WDKICK)......................48 7.2.9 Fan Control and Status Register (CPLD_FANCSR)...................49 7.2.10 Panel LED Control and Status Register (CPLD_LEDCSR)................49 7.2.11 Miscellanies Control and Status Register (CPLD_MISCCSR)................50 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 5
7.2.14 Boot Configuration Register 2 (CPLD_BOOTCFG2)..................51 7.2.15 Boot Configuration Register 3 (CPLD_BOOTCFG3)..................52 7.2.16 Boot Configuration Register 4 (CPLD_BOOTCFG4)..................53 Chapter 8 Programming U-Boot 8.1 Programming U-Boot on a Board having no U-Boot Installed..................55 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 6
C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Chapter 1 Introduction The C29x PCIe is a PCIe card with a Freescale C29x crypto coprocessor system-on-chip (SoC)/processor. 1.1 Acronyms The table below lists and explains the acronyms used in this document. Table 1-1. Acronyms Term Description Common On-Chip Processor...
Explains the procedure to build, configure, and use different software components for the Freescale C29x crypto coprocessor device. C29x PCIe Card Getting Started Explains C29x PCIe board settings and physical connections needed to boot the board. Guide Freescale C29x Crypto Coprocessor...
• POR configuration • Supports critical POR settings through DIP switches available on the board 1.4 Board Drawing and Top View The figure below shows C29x PCIe top side reference drawing. C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 11
Chapter 1 Introduction Figure 1-3. Top side reference drawing The C29x PCIe card measures 168 mm x 111 mm. It can be installed into a PCIe-x4, PCIe-x8, or PCIe-x16 slot on the PCIe motherboard. The figure below shows the top view of the C29x PCIe card.
Page 12
Board Drawing and Top View for Fan ETH0 TSEC1 ETH1 TSEC2 Switch UART Power ON/OFF JTAG Switch PCIe x4 Gold-finger 2x3 ATX Power Connector Figure 1-4. C29x PCIe card top view C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Perform the following steps to use the C29x PCIe card in the PCIe endpoint mode: 1. Connect the heat sink fan power line to J18. 2. Plug C29x PCIe into the PCIe slot on the motherboard. C29x PCIe supports x1, x2, and x4 configurations.
SW7[1] ON, cfg_cpu_boot=0 • SW7[5] ON, cfg_host_agt=0 The table below shows dual in-line package (DIP) switch settings of the C29x PCIe card in PCIe endpoint mode (800 MHz core, 400 MHz platform, PCIe-x4 configuration). Table 2-1. PCIe endpoint mode DIP switch settings SW4[1..8]...
Page 15
• Flow control: Hardware/None 6. Connect network cable to TSEC1. 7. Turn on ON/OFF switch to power on C29x PCIe. Now, you will see C29x PCIe boot up message on the computer console. Following are the device configurations required for this use case by setting DIP switch: •...
SW8[8] to 0. To enable the SKMM mode, set SW8[8] to 1. The PKCAL mode can be started from the PCIe endpoint mode. In PKCAL mode, a C29x processor only uses internal SDRAM, instead of DDR3/NOR flash/NAND flash. Therefore, DDR/NOR flash/NAND flash should not be initialized in the source code. In addition, the PKCAL mode requires the board to be booted from the PCIe slot.
Page 17
C29x supply Secure Boot mode to protect customer system. The customer can put secured encoded u-boot and other image into flash, and put the secure key into C29x silicon. If secured keys are matched, the image can be loaded and run. The secure boot mode can be enabled by setting SW7[6] to ON and cfg_sb_dis to 0.
Page 18
Secure Boot Mode C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Chapter 3 Clocks, Resets, and Power Control 3.1 Clocks The figure below shows the C29x PCIe input clocks. C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
• DDR_CLK is 100 MHz external clock • SD_REFCLK is 100 MHz, required for PCIe interface • TSEC_RX_CLK is 125 MHz, required for GE port • CPLD_REFCLK is 32.768 kHz, required for CPLD to work C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Chapter 3 Clocks, Resets, and Power Control 3.2 Resets All resets for the C29x PCIe card are handled by CPLD. A power-on-reset is initiated by pressing the power switch, if the board is in a chassis. A warm reset is initiated by pressing SW1 on the board.
All these on-board resources are described, one by one, in the subsections that follow. 4.1 DDR Memories The C29x PCIe card supports DDR3 and DDR3L memories. The memory interface on the board is configured as DDR3/DDR3L. The DDR3/DDR3L memory and ECC are implemented as a single bank discrete chipset (x16).
• NOR flash memory • NAND flash memory 4.2.1 NOR Flash Memory The C29x PCIe card provides NOR flash memory of 64 MB with 16-bit port size. The figure below shows the hardware connection between the C29x PCIe card and NOR flash memory.
SW5[7:8]. 4.2.2 NAND Flash Memory The C29x PCIe provides NAND flash memory of 4 GB with 8-bit port size. The figure below shows the hardware connectivity between the C29x PCIe card and NAND flash memory.
BY_N signal to IFC_RB1_N. 4.3 SerDes On the C29x PCIe card, the SerDes module implements link serialization/deserialization and PCS functions for a PCI express link, operating at 2.5 or 5 Gbaud. The table below shows the different settings for SerDes.
These interfaces are compliant with the PCI Express Base Specification Revision 2.0, which supports root complex (RC) and endpoint (EP) configurations. 4.4 Ethernet The C29x PCIe card supports a maximum of two Ethernet ports. 4.4.1 eTSEC1 eTSEC1 10/100/1000 BaseT operates in the RGMII mode, and is directly connected to a Vitesse RGMII PHY (VSC8641), as shown in the figure below.
The eSPI is a full-duplex, synchronous, character-oriented channel that supports a four- wire interface (receive, transmit, clock, and slave select). The C29x processor has the ability to boot from an SPI serial flash device, in addition to supporting other peripheral devices conforming to the SPI standard.
Page 29
RJ45 pin number RS-232 signal DB9 female pin number Before powering up the C29x PCIe card, configure the serial port of the attached computer with the following values: • Data rate: 115200 bps C29x PCIe Card User Guide, Rev. 0, 10/2013...
Page 30
RS-232 • Number of data bits: 8 • Parity: None • Number of stop bits: 1 • Flow control: Hardware/None C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
The JTAG connection is provided by a direct connection to the appropriate header connector. COP is a part of the C29x's JTAG module and is implemented as a set of additional instructions and logic. This port can connect to a dedicated emulator for extensive system debugging.
Not connected. CKSTP_OUT Connected directly between the processor and JTAG/COP connector. Connected to ground. 5.5 LED The table below details LED settings for the C29x PCIe card. Table 5-5. LED settings Reference designator Used for Notes Indicating the status of C29x PCIe Sold green: Power-on is ok C29x PCIe Card User Guide, Rev.
Table 5-5. LED settings Reference designator Used for Notes Flash green: Software boot is ok 5.6 Push Button The push button SW1 on the C29x PCIe card is used for reset. C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Chapter 6 POR Configuration The C29x PCIe card has user selectable switches or registers, for evaluating different frequency and boot configuration for this device. The table below shows how POR configuration is done through switches. Table 6-1. POR configuration through switches...
Page 36
Reserved SW6[4] cfg_ddr_speed[0] 1588_CLK_OUT DDR complex speed cfg_ddr_speed[0]: configuration input SW6[5] cfg_ddr_speed[1] 1588_PULSE_O ON (0): DDR data rate is less than 967 MHz. Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 37
GHz) SW7[3] cfg_io_port[1] IFC_AD14 SW7[2:4] ON ON OFF (001): PCIe-x4 SW7[4] cfg_io_port[2] IFC_BCTL (2.5 GHz) SW7[2:4] ON OFF ON (010): PCIe-x2 (5 GHz) Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 38
1588_ALARM_OUT NC (1) Different voltage 0: DDR3L 1.35V, CKE low at reset level from 1: DDR3 1.5V, CKE low at reset DDR3L Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 39
0: Lower order address bits are bits are multiplexed with data on multiplexed with IFC_AD[0:15] IFC data if NOR flash is used for booting Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
800 MHz DDR, PCIe-x4 agent). Table 6-3. NOR flash POR settings for 800 MHz core SW4[1..8] 0101 1000 ON OFF ON OFF OFF ON ON ON Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Table 6-6. NAND flash POR settings SW4[1..8] 0101 1000 ON OFF ON OFF OFF ON ON ON ON ON OFF ON ON OFF ON ON SW5[1..8] 0010 0100 Table continues on the next page... C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
SW7[1..8] 1001 0111 OFF ON ON OFF ON OFF OFF OFF SW8[1..8] 0000 1011 ON ON ON ON OFF ON OFF OFF SPI flash POR DIP setting: • SW5[1..4]=0110 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Chapter 7 CPLD Specification This section describes the CPLD specification and register user interface in the C29x PCIe card. 7.1 Key Features The key features of CPLD are: • C29x reset signal generation and distribution • System reset features: • Power on and manual reset (PON_RST_N) •...
* Notes: • x depends on actual board setting.x = Undefined at reset. CPLD_HWVER field descriptions Field Description 0–7 Hardware version. The version field of the hardware board. HW_VER C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
GE1RST No reset occurs GE PHY1 reset signal is produced 2–6 This field is reserved. Reserved. Software reset. Write 1 to clear. SW_RST No reset occurs CPU reset occurs C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
NOR flash bank select from CPLD override is disabled NOR flash bank select from CPLD override is enabled Boot from 16 bit NOR flash BOOT_SEL Boot from 8 bit NAND flash C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Address: 0h base + 15h offset = 15h Read Reserved Write Reset CPLD_LEDCSR field descriptions Field Description Light emitting device. Panel LED is on Panel LED flashes at 0.5 s 1–7 This field is reserved. Reserved. C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Reset CPLD_BOOTOR field descriptions Field Description Boot override. BOOT_OR Boot configuration from CPLD override is disabled Boot configuration from CPLD override is enabled 1–7 This field is reserved. Reserved. C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
2. Connect 110V/220 power to power adapter. 3. Connect RJ45 console line to UART port. 4. Connect network cable into Ethernet port. 5. Connect USB TAP to JTAG port on C29x PCIe. 6. Open the CodeWarrior IDE for Power Architecture, and select P1010 processor with P1010RDB_core_init.tcl 7.
Page 56
Programming U-Boot on a Board having no U-Boot Installed C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 57
# bit 8 - 23 - BASE_ADDR mem [CCSR 0x0] = 0x000ff700 set CCSRBAR 0xff700000 ###################################################################### # invalidate BR0 # CSPR0 mem [CCSR 0x1E010] = 0x00000100 # ABIST off # L2ERRDIS[MBECCDIS]=1 L2ERRDIR[SBECCDIS]=1 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 58
[CCSR 0xCE8] = 0x00000000 mem [CCSR 0xCF0] = 0x00000000 #disable LAW 8 mem [CCSR 0xD08] = 0x00000000 mem [CCSR 0xD10] = 0x00000000 #disable LAW 9 mem [CCSR 0xD28] = 0x00000000 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 59
[CCSR 0x2110] = 0xC70C0000 #wait for DRAM data initialization wait 500 #SPI init # SPMODE mem [CCSR 0x7000] = 0x80000403 # SPIM - catch all events mem [CCSR 0x7008] = 0x00000000 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 60
# put a valid opcode at debug and progrm exception vector address mem v:0x00000700 = 0x48000000 mem v:0x00001500 = 0x48000000 ############################################################################## apply_e500v2_workaround # enable floating point reg ${SSPR}MSR = 0x02001200 ############ # time base enable & MAS7 update C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 61
{} { # Environment Setup #radix x config hexprefix 0x config MemIdentifier v config MemWidth 32 config MemAccess 32 config MemSwap off #------------------------------------------------------------------------------- # Main #------------------------------------------------------------------------------- envsetup init_P1010 C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 62
C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Appendix B Revision History The table below provides revision history of this document. Table B-1. Document revision history Revision number Date Change description Rev. 0 10/2013 Initial public release C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 64
C29x PCIe Card User Guide, Rev. 0, 10/2013 Freescale Semiconductor, Inc.
Page 65
Freescale, the Freescale logo, and QorIQ are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. CoreNet is a trademark of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related...
Need help?
Do you have a question about the C29x and is the answer not in the manual?
Questions and answers