]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: sunxi-ng: a523: add reset lines
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Mar 2025 00:26:27 +0000 (00:26 +0000)
committerChen-Yu Tsai <wens@csie.org>
Wed, 12 Mar 2025 03:58:11 +0000 (11:58 +0800)
commita36cc6cd0feb7ea656a1a33db0e6347149f50fed
tree45a6b3eb75388c76034322592e426d4718202c5c
parentf3dabb29f0ca44f2053c0c3943ca6f47b248d348
clk: sunxi-ng: a523: add reset lines

Allwinner SoCs do not contain a separate reset controller, instead the
reset lines for the various devices are integrated into the "BGR" (Bus
Gate / Reset) registers, for each device group: one for all UARTs, one
for all SPI interfaces, and so on.
The Allwinner CCU driver also doubles as a reset provider, and since the
reset lines are indeed just single bits in those BGR register, we can
represent them easily in an array of structs, just containing the
register offset and the bit number.

Add the location of the reset bits for all devices in the A523/T527
SoCs, using the existing sunxi CCU infrastructure.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250307002628.10684-14-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun55i-a523.c