How to clean DDR in a specific range on ATF?

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

How to clean DDR in a specific range on ATF?

1,023件の閲覧回数
Jeff-CF-Huang
Contributor III

Hi Sir,

We want to clean DDR in ATF, but there is only a ddr_init function available in arm-trusted-firmware/drivers/nxp/s32/ddr.

Best regards,

Jeff Huang

0 件の賞賛
返信
5 返答(返信)

958件の閲覧回数
chenyin_h
NXP Employee
NXP Employee

Hello, @Jeff-CF-Huang 

Thanks for pointing it out.

There is indeed TFA level libc functions implemented,  I have checked the code in TFA and it seems included in the S32 support.

Yes, you may try using memset directly. I do not see other specific APIs implemented from our BSP perspective.

 

BR

Chenyin

0 件の賞賛
返信

964件の閲覧回数
chenyin_h
NXP Employee
NXP Employee

Hello, @Jeff-CF-Huang 

Thanks for your reply.

I do not find related description from BSP related document, from my experience, there is mmio_write_32 APIs existed in TF-A, you may try using it to modify the DDR range per your request.

 

BR

Chenyin

0 件の賞賛
返信

961件の閲覧回数
Jeff-CF-Huang
Contributor III

Hi Chenyin,

Are you suggesting using mmio_write to achieve the same effect as memset(dest, 0, size)?

I don’t believe that’s an efficient approach.

Is there any NXP-specific method for handling the memory controller instead?

 

Best regards,

Jeff Huang

0 件の賞賛
返信

1,001件の閲覧回数
chenyin_h
NXP Employee
NXP Employee

Hello, @Jeff-CF-Huang 

Thanks for your post.

May I know what is your meaning of "clean"? to set it to all zeros?

 

BR

Chenyin

0 件の賞賛
返信

993件の閲覧回数
Jeff-CF-Huang
Contributor III
Hi Chenyin,

Yes.

Best regards,
Jeff Huang
0 件の賞賛
返信