]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: sun8i_rsb: Only do non-DM pin setup for non-DM I2C
authorSamuel Holland <samuel@sholland.org>
Thu, 21 Oct 2021 04:01:29 +0000 (23:01 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:16 +0000 (23:24 +0100)
commit6330fefb9f214a1e42bb66973d50e2dc230ad588
tree5522ddb64edeb89ad42dda6862eecae0773c4981
parent052d295b2bb0c0b07e9236a8de4ba7e0bf09f67f
i2c: sun8i_rsb: Only do non-DM pin setup for non-DM I2C

When the DM_I2C driver is loaded, the pin setup is done automatically
from the device tree by the pinctrl driver.

Clean up the code in the process: remove #ifdefs and recognize that the
pin configuration is the same for all sun8i/sun50i SoCs, not just those
which select CONFIG_MACH_SUN8I.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/i2c/sun8i_rsb.c