]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: sun8i_rsb: Add support for DM clocks and resets
authorSamuel Holland <samuel@sholland.org>
Fri, 18 Mar 2022 04:52:36 +0000 (23:52 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:17 +0000 (23:24 +0100)
commit37fcce65c413d901f7c545b624f380776c084d61
tree6bb5ef2d41bfe29c1f1a85087d3e4a0329d10f43
parent8b8d9a8006c717412ef526a15a4b7972f06b29c8
i2c: sun8i_rsb: Add support for DM clocks and resets

Currently, clock/reset setup for this device is handled by a
platform-specific function and is intermixed with non-DM pinctrl
setup. Use the devicetree to get clocks/resets, which disentagles
it from the pinctrl setup in preparation for moving to DM_PINCTRL.

This also has the added benefit of picking the right clock/reset
bits for H6 and new SoCs that have a rearranged PRCM MMIO space.

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