LS1046A How to enable I2C4 automatically in RCW

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

LS1046A How to enable I2C4 automatically in RCW

Jump to solution
1,227 Views
Darren_P
Contributor II

Hi NXP,

As title. How can I enable I2C4 automatically in RCW?

I found "Extended RCW PinMux Control Register" in reference manual.

Address: 157_0000h base + 40Ch offset = 157_040Ch.

What's the command format set in RCW?

 

And if we didn't enable I2C4 function in boot stage. Does that mean I can't use I2C4 control when the system is in user space.

 

Thanks!!

0 Kudos
1 Solution
1,198 Views
Pavel
NXP Employee
NXP Employee

Add .pbl writing to RCW. Attached file contains RCW example for I2C4 pins enabling.

Path for this file in LSDK 2108 is the following:

flexbuild_lsdk2108/components/firmware/rcw/ls1046ardb/RR_FFSSPPPH_1133_5559

 

See information about files using for building in the following file:

flexbuild_lsdk2108/configs/board/ls1046ardb/manifest

 

Use the following command sequence for RCW, ATF and .img building:

flex-builder -c rcw -m ls1046ardb -b sd

flex-builder -c atf -m ls1046ardb -b sd

flex-builder -i mkfw -m ls1046ardb -b sd

View solution in original post

0 Kudos
3 Replies
1,220 Views
Pavel
NXP Employee
NXP Employee

The LS1046a RCW does not have bits for I2C4 pins assignment.

Use the DEVDISR5 Register. See the Section 12.3.10 of the LS1046a Reference Manual.

Use the SCFG_RCWPMUXCR0 register. See the Section 11.3.41.

 

0 Kudos
1,205 Views
Darren_P
Contributor II

Hi Pavel,

 

Yes I understand those registers. My question is how can I enable those functions in RCW?

I noticed there's a pbi section which allows me to send some commands. 

Here's my command format. write 0x0157040C, 0x00000000. But it doesn't work.

Is my understanding for how to enable I2C4 wrong?

 

Darren

0 Kudos
1,199 Views
Pavel
NXP Employee
NXP Employee

Add .pbl writing to RCW. Attached file contains RCW example for I2C4 pins enabling.

Path for this file in LSDK 2108 is the following:

flexbuild_lsdk2108/components/firmware/rcw/ls1046ardb/RR_FFSSPPPH_1133_5559

 

See information about files using for building in the following file:

flexbuild_lsdk2108/configs/board/ls1046ardb/manifest

 

Use the following command sequence for RCW, ATF and .img building:

flex-builder -c rcw -m ls1046ardb -b sd

flex-builder -c atf -m ls1046ardb -b sd

flex-builder -i mkfw -m ls1046ardb -b sd

0 Kudos