Hi,
We have a problem about LS1021a IFC interface's addressing mechanism. We want to use IFC interface to communicate with FPGA. We changed and added some lines of codes on u-boot. When we tested we noticed that data was sending correctly but address data was always 0x6. We only connected first 3 pins of data pins A16-17-18 and we read values on chip scope as :
A16 - 1
A17 - 1
A18 - 0
Our send/read data command is mw.b/md.b 0x60000000 0x1 and our notes on this stage is:
- changing base address on u-boot doesn't change,
- changing sending or reading address used in mw/md command doesn't change 0x6 address value which reading from pins.
Could you please help us about this issue? I added our configuration below.
Thanks.
Our u-boot configuration:
/*
* IFC Definitions
*/
#define CONFIG_FSL_IFC
#define CONFIG_SYS_FLASH_BASE 0x60000000
#define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE
#define CONFIG_SYS_FPGA_CSPR_EXT (0x0)
#define CONFIG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
CSPR_PORT_SIZE_8 | \
CSPR_MSEL_GPCM | \
CSPR_V)
#define CONFIG_SYS_FPGA_AMASK IFC_AMASK(512 * 1024 * 1024)
#define CONFIG_SYS_FPGA_CSOR (CSOR_GPCM_GPMODE_NORMAL | \
CSOR_GPCM_GPTO(256) | \
CSOR_GPCM_ADM_SHIFT(4) | \
CSOR_GPCM_TRHZ_20 | \
CSOR_GPCM_BCTLD)
/* 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
#define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_FPGA_CSPR_EXT
#define CONFIG_SYS_CSPR0 CONFIG_SYS_FPGA_CSPR
#define CONFIG_SYS_AMASK0 CONFIG_SYS_FPGA_AMASK
#define CONFIG_SYS_CSOR0 CONFIG_SYS_FPGA_CSOR
#define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_FPGA_FTIM0
#define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_FPGA_FTIM1
#define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_FPGA_FTIM2
#define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_FPGA_FTIM3
Our RCW:
Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 30000000 00007900 e0015a00 21046000
00000020: 00000000 00000000 00000000 084bcf00
00000030: 00000000 4704b540 00000000 00000000