How to change the value of CCSR on P2020RDB-PC board

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

How to change the value of CCSR on P2020RDB-PC board

跳至解决方案
1,125 次查看
huyang
Contributor III

Hi,

 

We got a P2020RDB-PC board, and now we want to change some configuration of it.

From P2020RM, we know we need to write to configutation, control, and status registers (CCSRs).

Now we can read the value of CCSR in the uboot by command md ffe00000+offset address.

And we try to use command mw in uboot to write to CCSR. It seems not working or the value is back to default after reset the board.

Is there a way we can change the value in CCSR permenantly? How can we do it?

Thanks in advance.

 

Regards,

Hu

标签 (1)
0 项奖励
1 解答
775 次查看
addiyi
NXP Employee
NXP Employee

Hi Hu,

There are two possibilities to permanently keep the changes.

1. Rebuild the u-boot. You can modify function board_early_init_f (before relocation in DDR) or board_early_init_r(after relocation in DDR) with desired modification. These functions are present in board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c.

2. You can update “boot_cmd” command in u-boot env.

Adrian

在原帖中查看解决方案

0 项奖励
5 回复数
775 次查看
addiyi
NXP Employee
NXP Employee

Hi Hu,

Please provide more details about what you are trying to do. You try to change the ccsr default address, or you want to write in ccsr address space and change the

value of some registers (what registers)?

Adrian

0 项奖励
775 次查看
huyang
Contributor III

Hi Adrian,

We want to write in ccsr address space and change the value of some register.

We want to do some test about ethernet port, so we want to change the value of GUTS_PMUXCR(TSEC1\TSEC2 clock source) and the value of ETSECx_MACCFG2(I_F_Mode and duplex mode).

How can we change that permamently? From uboot or from codewarrior?

Thanks.

Hu

0 项奖励
775 次查看
addiyi
NXP Employee
NXP Employee

You need rebuild the u-boot, using the new values for the registers you want to change.

Adrian

775 次查看
huyang
Contributor III

I'm afraid we are not familiar of u-boot building.

Is there any other way we can change the value of it or it can't be done without rebuilding it?

Thanks.

Hu

0 项奖励
776 次查看
addiyi
NXP Employee
NXP Employee

Hi Hu,

There are two possibilities to permanently keep the changes.

1. Rebuild the u-boot. You can modify function board_early_init_f (before relocation in DDR) or board_early_init_r(after relocation in DDR) with desired modification. These functions are present in board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c.

2. You can update “boot_cmd” command in u-boot env.

Adrian

0 项奖励