Texas Instruments TMS320TCI648x manual Read register to check portx1-4 OK bit, Bootload Capability

Models: TMS320TCI648x

1 256
Download 256 pages 4.34 Kb
Page 79
Image 79

www.ti.com

SRIO_REGS->SP_RT_CTL SRIO_REGS->SP_GEN_CTL SRIO_REGS->SP0_CTL SRIO_REGS->SP1_CTL SRIO_REGS->SP2_CTL SRIO_REGS->SP3_CTL

SRIO_REGS->ERR_DET SRIO_REGS->ERR_EN SRIO_REGS->H_ADDR_CAPT SRIO_REGS->ADDR_CAPT SRIO_REGS->ID_CAPT SRIO_REGS->CTRL_CAPT

SRIO Functional Description

=0xFFFFFF00; // long

=0x40000000; // agent, master, undiscovered

=0x00600000; // enable i/o

=0x00600000; // enable i/o

=0x00600000; // enable i/o

=0x00600000; // enable i/o

=0x00000000 ; // clear

=0x00000000 ; // disable

=0x00000000 ; // clear

=0x00000000 ; // clear

=0x00000000 ; // clear

=0x00000000 ; // clear

SRIO_REGS->SP_IP_PW_IN_CAPT0 = 0x00000000 ; // clear

SRIO_REGS->SP_IP_PW_IN_CAPT1 = 0x00000000 ; // clear

SRIO_REGS->SP_IP_PW_IN_CAPT2 = 0x00000000 ; // clear

SRIO_REGS->SP_IP_PW_IN_CAPT3 = 0x00000000 ; // clear

//INIT_WAIT wait for lane initialization

Read register to check portx(1-4) OK bit

//polling SRIO_MAC's port_ok bit rdata = SRIO_REGS->P0_ERR_STAT ;

while ((rdata & 0x00000002) != 0x00000002)

{

rdata = SRIO_REGS->P0_ERR_STAT ;

}

if (srio4p1x_mode){

rdata = SRIO_REGS->P1_ERR_STAT;

while ((rdata & 0x00000002) != 0x00000002)

{

rdata = SRIO_REGS->P1_ERR_STAT;

}

rdata = SRIO_REGS->P2_ERR_STAT;

while ((rdata & 0x00000002) != 0x00000002)

{

rdata = SRIO_REGS->P2_ERR_STAT;

}

rdata = SRIO_REGS->P3_ERR_STAT;

while ((rdata & 0x00000002) != 0x00000002)

{

rdata = SRIO_REGS->P3_ERR_STAT;

}

}

Assert the PEREN bit to enable logical layer data flow

SRIO_REGS->PCR = 0x00000004;

// peren

2.3.14Bootload Capability

2.3.14.1Configuration and Operation

Figure 41 illustrates the system components involved in bootload operation. It is assumed that an external device will initiate the bootload data transfer and master the DMA interface. Upon reset, the following sequence of events must occur:

1.DSP is placed in SRIO boot mode by HW mode pins.

2.Host takes DSP out of reset (POR or RST). The peripheral’s state machines and registers are reset.

3.Internal boot-strap ROM configures device registers, including SERDES, and DMA. DSP executes internal ROM code to initialize SRIO.

Choice of 4 pin selectable configurations

Optionally, I2C boot can be used to configure SRIO

SPRUE13A –September 2006

Serial RapidIO (SRIO)

79

Submit Documentation Feedback

Page 79
Image 79
Texas Instruments TMS320TCI648x Read register to check portx1-4 OK bit, Bootload Capability, Configuration and Operation