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,562件の閲覧回数
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,315件の閲覧回数
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,315件の閲覧回数
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,316件の閲覧回数
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,315件の閲覧回数
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,315件の閲覧回数
lunminliang
NXP Employee
NXP Employee

Hello patil,

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

Regeards

Lunmin

0 件の賞賛
返信
3,315件の閲覧回数
manjanagoudapat
Contributor III

thank you lunminliang ,

i will check it.

0 件の賞賛
返信