From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Mon, 23 Mar 2015 09:28:28 +0100 Subject: [U-Boot] question about software i2c multi instance In-Reply-To: <550BEBEC.7060609@atmel.com> References: <550BEBEC.7060609@atmel.com> Message-ID: <20150323092828.7a22c885@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Bo, > Hi Heiko, > After check the software i2c code, I found it can not support > multi instances, although it has I2C_SOFT_DECLARATIONS2, > I2C_SOFT_DECLARATIONS3, I2C_SOFT_DECLARATIONS4. > Because, when do GPIO operation, there is only one pair of > CONFIG_SOFT_I2C_GPIO_SCL and CONFIG_SOFT_I2C_GPIO_SDA. > So, if want to support multi instances, it needs to extend the > GPIO configuration for SCL/SDA, am I right? Some time ago we had a similar problem with SW I2C code. Please look into Samsung's trats board implementation. However, such approach might be outdated, since Przemek is working on porting this functionality to device model: https://patchwork.ozlabs.org/patch/448460/ > > Thanks. > > Best Regards, > Bo Shen -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group