how to make BSC9132 I2C2 controller enabled by default instead of usb

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

how to make BSC9132 I2C2 controller enabled by default instead of usb

Jump to solution
1,373 Views
manjanagoudapat
Contributor III

Hi,

BSC9132 I2C2 controller is not enabled by default in WUSDK BSP.

so i am running  below mentioned commands each time i boot the board, how can i make I2C2 controller enabled by default.

=> mm ff7e0068

ff7e0068: 00000000 ? 00000600

=> i2c mw 66 55 e0

=> i2c dev 1

Setting bus to 1

=> i2c probe

Valid chip addresses: 70 71 72

thanks and regards

patil

Labels (1)
0 Kudos
1 Solution
1,126 Views
manjanagoudapat
Contributor III

hello Yiping Wang

how i can access the chips connected to the PCA9546APW, Is there any commands in u-boot command prompt or linux command prompt.

View solution in original post

0 Kudos
5 Replies
1,126 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Manjanagouda Patil,

I checked u-boot header file include/configs/BSC9132QDS.h of SDK 1.8, I2C2 is enabled, please refer to the following. If your source code is different from this, please modify the header file as the following.

#define CONFIG_SYS_I2C

#define CONFIG_SYS_I2C_FSL

#define CONFIG_SYS_FSL_I2C_SPEED        400800 /* I2C speed and slave address*/

#define CONFIG_SYS_FSL_I2C_SLAVE        0x7F

#define CONFIG_SYS_FSL_I2C2_SPEED       400800 /* I2C speed and slave address*/

#define CONFIG_SYS_FSL_I2C2_SLAVE       0x7F

#define CONFIG_SYS_FSL_I2C_OFFSET       0x3000

#define CONFIG_SYS_FSL_I2C2_OFFSET      0x3100

Thanks,

Yiping

0 Kudos
1,127 Views
manjanagoudapat
Contributor III

hello Yiping Wang

how i can access the chips connected to the PCA9546APW, Is there any commands in u-boot command prompt or linux command prompt.

0 Kudos
1,126 Views
manjanagoudapat
Contributor III

thank you Yiping Wang

i am using wusdk1.6, i will check source code for the modification that you have suggested.

0 Kudos
1,126 Views
lunminliang
NXP Employee
NXP Employee

Hello patil,

I think you need to change in u-boot source.

Regeards

Lunmin

0 Kudos
1,126 Views
manjanagoudapat
Contributor III

thank you lunminliang ,

i will check it.

0 Kudos