[U-Boot] [PATCH 2/2] i2c:gpio:s5p: I2C GPIO Software implementation (via soft_i2c)

Lukasz Majewski l.majewski at samsung.com
Fri Jul 15 12:50:01 CEST 2011


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


More information about the U-Boot mailing list