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

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

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

ソリューションへジャンプ
1,143件の閲覧回数
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 解決策
793件の閲覧回数
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 返答(返信)
793件の閲覧回数
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 件の賞賛
793件の閲覧回数
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 件の賞賛
793件の閲覧回数
addiyi
NXP Employee
NXP Employee

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

Adrian

793件の閲覧回数
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 件の賞賛
794件の閲覧回数
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 件の賞賛