]> git.dujemihanovic.xyz Git - u-boot.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)
commitf5bfe1575078cea8de0fa4affb529b360a511094
tree6bb5ef2d41bfe29c1f1a85087d3e4a0329d10f43
parentc9dd3caae3119c9f77081b5c1ef42553b44ddf20
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