]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
exynos: i2c: Correct bug in pinmux selection
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:15:44 +0000 (18:15 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:19 +0000 (13:29 +0200)
When driver model is not used the current code does not correctly select
the pinmux for the I2C bus. This bug was introduced by this commit:

8dfcbaa dm: i2c: s3c24x0: adjust to dm-i2c api

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/i2c/s3c24x0_i2c.c

index c053e84cdb6175da97de085fc0a4bc2512656f8e..9a04e48a0f32e653ee4b58d9b913601d7137d289 100644 (file)
@@ -1035,7 +1035,7 @@ static void process_nodes(const void *blob, int node_list[], int count,
                                                CONFIG_SYS_I2C_S3C24X0_SPEED);
                bus->node = node;
                bus->bus_num = i;
-               exynos_pinmux_config(PERIPH_ID_I2C0 + bus->id, flags);
+               exynos_pinmux_config(bus->id, flags);
 
                /* Mark position as used */
                node_list[i] = -1;