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

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

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

跳至解决方案
3,522 次查看
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

标签 (1)
0 项奖励
回复
1 解答
3,275 次查看
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 项奖励
回复
5 回复数
3,275 次查看
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 项奖励
回复
3,276 次查看
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 项奖励
回复
3,275 次查看
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 项奖励
回复
3,275 次查看
lunminliang
NXP Employee
NXP Employee

Hello patil,

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

Regeards

Lunmin

0 项奖励
回复
3,275 次查看
manjanagoudapat
Contributor III

thank you lunminliang ,

i will check it.

0 项奖励
回复