07-26-2016, 09:17 PM
On the second I2c Port (TWI-SDA and TWI-SCL), which is connected to the Pin 28 & 29 of Pi-2 Connector, is on port PL8 and PL9 of the MCU. The base address of the MCU I/O configuration register for this Port L is on 0x01F02C00. To enable the I2c function for this pin, we need to configure the PL Configuration Register 1(by default, the MCU disable the i/O function of this 2 pin during power up). The detail of the setting can be found at the MCU User Manual on page 410 to page 416.
I think (some one please correct me if I am wrong) all this setting has to be done in the linux kernel in order for the user land program to be able to access it. Since I am not very good in linux kernal, may be someone which is good in it can help out. Thanks.
Regards,
KH Goh
I think (some one please correct me if I am wrong) all this setting has to be done in the linux kernel in order for the user land program to be able to access it. Since I am not very good in linux kernal, may be someone which is good in it can help out. Thanks.
Regards,
KH Goh