LS1043A communicate with an on-board FPGA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LS1043A communicate with an on-board FPGA

152 次查看
Yangjk
Contributor I

Hello,

We have a custom LS1043A board. We want to use IFC to communicate with an extern FPGA .

I want to write data to extern FPGA, I see the code in uboot/board/freescale/ls1043ardb/cpld.c :

void cpld_write(unsigned int reg, u8 value)
{
    void *p = (void *)CFG_SYS_CPLD_BASE;

    out_8(p + reg, value);
}
 
I search this macro " CFG_SYS_CPLD_BASE " in the uboot project, is :
 
#define CFG_SYS_CPLD_BASE       0x7fb00000
 
My understand to this address is the internal sram address which mapped to extern FPGA.
Now, I use the extern FPGA as a extern ram, if I want to Write data to address 0 of this
"ram" ,  do I need to do some initialization before write?
 
0 项奖励
回复
2 回复数

127 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to "Table 2-1. System memory map" in LS1043ARM, this address is IFC region, no need initialization to write this memory.

0 项奖励
回复

98 次查看
Yangjk
Contributor I

Thanks for your answer, my understand to your answer is :

If I want to write 1 to address 0x0f of extern FPGA, I only need to write one line of code :

out_8(0x7fb00000 + 0x0f, 0x01);

this data "0x01" will be written in the address 0x0f of extern FPGA, any other initialization work (such as internal sram init in IFC nand flash) we do not need to do in driver

0 项奖励
回复