LS1043A communicate with an on-board FPGA

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1043A communicate with an on-board FPGA

214件の閲覧回数
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 返答(返信)

189件の閲覧回数
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 件の賞賛
返信

160件の閲覧回数
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 件の賞賛
返信