* [U-Boot] [PATCH V1 0/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C @ 2013-04-04 6:27 Amar 2013-04-04 6:27 ` [U-Boot] [PATCH V1 1/1] " Amar 0 siblings, 1 reply; 4+ messages in thread From: Amar @ 2013-04-04 6:27 UTC (permalink / raw) To: u-boot s patch updates the function board_i2c_init() to add support for both FDT and non-FDT for I2C, and initialise the I2C channels. Amar (1): EXYNOS5: I2C: Added FDT and non-FDT support for I2C drivers/i2c/s3c24x0_i2c.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 1.8.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH V1 1/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C 2013-04-04 6:27 [U-Boot] [PATCH V1 0/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C Amar @ 2013-04-04 6:27 ` Amar 2013-05-11 18:53 ` Simon Glass 0 siblings, 1 reply; 4+ messages in thread From: Amar @ 2013-04-04 6:27 UTC (permalink / raw) To: u-boot This patch updates the function board_i2c_init() to add support for both FDT and non-FDT for I2C, and initialise the I2C channels. Signed-off-by: Amar <amarendra.xt@samsung.com> --- drivers/i2c/s3c24x0_i2c.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 46d2506..5234ff6 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -515,11 +515,12 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len) len) != 0); } -#ifdef CONFIG_OF_CONTROL void board_i2c_init(const void *blob) { + int i; +#ifdef CONFIG_OF_CONTROL int node_list[CONFIG_MAX_I2C_NUM]; - int count, i; + int count; count = fdtdec_find_aliases_for_id(blob, "i2c", COMPAT_SAMSUNG_S3C2440_I2C, node_list, @@ -539,8 +540,15 @@ void board_i2c_init(const void *blob) bus->bus_num = i2c_busses++; exynos_pinmux_config(bus->id, 0); } +#else + for (i = 0; i < CONFIG_MAX_I2C_NUM; i++) { + exynos_pinmux_config((PERIPH_ID_I2C0 + i), + PINMUX_FLAG_NONE); + } +#endif } +#ifdef CONFIG_OF_CONTROL static struct s3c24x0_i2c_bus *get_bus(unsigned int bus_idx) { if (bus_idx < i2c_busses) -- 1.8.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH V1 1/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C 2013-04-04 6:27 ` [U-Boot] [PATCH V1 1/1] " Amar @ 2013-05-11 18:53 ` Simon Glass 2013-06-24 4:57 ` Minkyu Kang 0 siblings, 1 reply; 4+ messages in thread From: Simon Glass @ 2013-05-11 18:53 UTC (permalink / raw) To: u-boot On Thu, Apr 4, 2013 at 12:27 AM, Amar <amarendra.xt@samsung.com> wrote: > This patch updates the function board_i2c_init() to add support for both > FDT and non-FDT for I2C, and initialise the I2C channels. > > Signed-off-by: Amar <amarendra.xt@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH V1 1/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C 2013-05-11 18:53 ` Simon Glass @ 2013-06-24 4:57 ` Minkyu Kang 0 siblings, 0 replies; 4+ messages in thread From: Minkyu Kang @ 2013-06-24 4:57 UTC (permalink / raw) To: u-boot On 12/05/13 03:53, Simon Glass wrote: > On Thu, Apr 4, 2013 at 12:27 AM, Amar <amarendra.xt@samsung.com> wrote: >> This patch updates the function board_i2c_init() to add support for both >> FDT and non-FDT for I2C, and initialise the I2C channels. >> >> Signed-off-by: Amar <amarendra.xt@samsung.com> > > Acked-by: Simon Glass <sjg@chromium.org> > applied to u-boot-samsung Thanks, Minkyu Kang. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-24 4:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-04-04 6:27 [U-Boot] [PATCH V1 0/1] EXYNOS5: I2C: Add FDT and non-FDT support for I2C Amar 2013-04-04 6:27 ` [U-Boot] [PATCH V1 1/1] " Amar 2013-05-11 18:53 ` Simon Glass 2013-06-24 4:57 ` Minkyu Kang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox