How Flash Timing Registers are configured for CPLD connectedon IFC Bus?

cancel
Showing results for 
Search instead for 
Did you mean: 

How Flash Timing Registers are configured for CPLD connectedon IFC Bus?

128 Views
winstonjacob
Contributor III

Hi,

We are having LS1021aTWR development board.

Below is the contents of ls1021atwr.h file(u-boot source code).

/* CPLD */

#define CONFIG_SYS_CPLD_BASE 0x7fb00000
#define CPLD_BASE_PHYS CONFIG_SYS_CPLD_BASE

#define CONFIG_SYS_FPGA_CSPR_EXT (0x0)
#define CONFIG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(CPLD_BASE_PHYS) | \
CSPR_PORT_SIZE_8 | \
CSPR_MSEL_GPCM | \
CSPR_V)
#define CONFIG_SYS_FPGA_AMASK IFC_AMASK(64 * 1024)
#define CONFIG_SYS_FPGA_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
CSOR_NOR_NOR_MODE_AVD_NOR | \
CSOR_NOR_TRHZ_80)

/* CPLD Timing parameters for IFC GPCM */
#define CONFIG_SYS_FPGA_FTIM0   (FTIM0_GPCM_TACSE(0xf) | \
                                                                FTIM0_GPCM_TEADC(0xf) | \
                                                                FTIM0_GPCM_TEAHC(0xf))


#define CONFIG_SYS_FPGA_FTIM1   (FTIM1_GPCM_TACO(0xff) | \
                                                                FTIM1_GPCM_TRAD(0x3f))


#define CONFIG_SYS_FPGA_FTIM2   (FTIM2_GPCM_TCS(0xf) | \
                                                                FTIM2_GPCM_TCH(0xf) | \
                                                                FTIM2_GPCM_TWP(0xff))

#define CONFIG_SYS_FPGA_FTIM3 0x0

How these CPLD timing parameters for IFC GPCM calculated?

 

Labels (1)
0 Kudos
7 Replies

120 Views
ufedor
NXP TechSupport
NXP TechSupport

All relevant IFC timing parameters have maximum values to accommodate any CPLD solution.

0 Kudos

116 Views
winstonjacob
Contributor III

Hi,

In the above case, how the value 0x3f is selected for FTIM1_GPCM_TRAD field of Flash Timing register 1 for CSn - Normal GPCM Mode(IFC_FTIM1_CSn_GPCM)?

0 Kudos

108 Views
ufedor
NXP TechSupport
NXP TechSupport

TRAD.jpg

0 Kudos

101 Views
winstonjacob
Contributor III

 

I'm using ls1021atwr based custom board. Here SRAM(IS62WV25616EBLL) is connected on IFC bus in GPCM mode. In this case how to configure Flash timing register values for SRAM?

Thanks for your support.

 

0 Kudos

69 Views
ufedor
NXP TechSupport
NXP TechSupport

Please refer to:

1) QorIQ LS1021A Reference Manual, 24.7.1.1.1 Normal GPCM internal counter-based program operation and 24.7.1.2.1 Normal GPCM internal counter-based read operation containing figures describing IFC timing parameters.

2) the SDRAM datasheet timings.

NOTE: IFC module input clock is equal to LS1021A Platform clock.

Considering above note calculate values of the IFC timing parameters to be in accordance with the SDRAM datasheet.

0 Kudos

56 Views
winstonjacob
Contributor III

In our design SRAM doesn't have clock can you please confirm how to check the SRAM timing and clock sequence in our custom board.

Thanks in Advance.

0 Kudos

41 Views
ufedor
NXP TechSupport
NXP TechSupport

> SRAM doesn't have clock

Please use previously described sequence to determine the IFC timing parameters.

0 Kudos