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
Solved! Go to Solution.
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.
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
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.
thank you Yiping Wang
i am using wusdk1.6, i will check source code for the modification that you have suggested.
Hello patil,
I think you need to change in u-boot source.
Regeards
Lunmin
thank you lunminliang ,
i will check it.