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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,098 Views
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

Labels (1)
0 Kudos
1 Solution
748 Views
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

View solution in original post

0 Kudos
5 Replies
748 Views
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 Kudos
748 Views
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 Kudos
748 Views
addiyi
NXP Employee
NXP Employee

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

Adrian

748 Views
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 Kudos
749 Views
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 Kudos