From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 15 Jul 2011 12:50:01 +0200 Subject: [U-Boot] [PATCH 2/2] i2c:gpio:s5p: I2C GPIO Software implementation (via soft_i2c) In-Reply-To: References: <1310372331-26637-1-git-send-email-l.majewski@samsung.com> <1310372331-26637-3-git-send-email-l.majewski@samsung.com> Message-ID: <20110715125001.54902a6b@lmajewski.digital.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Minkyu, > > + > > +#ifdef CONFIG_SOFT_I2C > > + > > +enum { I2C_PMIC, I2C_NUM, }; > > What purpose of these enum? > Where these used? For now goni reference target is going to use only one I2C bus (implemented as soft_i2c GPIO). Therefore this enum will be erased for v2. In the future, however this might be needed. > > +#define S5PC110_GPIO_J3 ? ? ? ?(S5PC110_GPIO_BASE + 0x2C0) > > +#define CONFIG_SOFT_I2C_GPIO_SCL s5p_gpio_get_nr(S5PC110_GPIO_J3, > > 3) +#define CONFIG_SOFT_I2C_GPIO_SDA > > s5p_gpio_get_nr(S5PC110_GPIO_J3, 0) > > I have one question. > How we can handle multiple bus? > I mean.. how we can change SCL and SDA? I've asked this question to Heiko Schocher already. Please refer to this reply: http://lists.denx.de/pipermail/u-boot/2011-July/095610.html -- Best regards, Lukasz Majewski Samsung Poland R&D Center Platform Group