reset: starfive: Factor out common JH71X0 reset code
authorEmil Renner Berthing <kernel@esmil.dk>
Sat, 9 Jul 2022 21:32:56 +0000 (23:32 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:30 +0000 (08:24 +0900)
commitbc877e9cfc17064fdd32e14bec89440b47164d9f
treef14e1728620ffdd44a33806a7db3119a38b40e88
parentf16e89c7df91c3431303512c1b3b7e2ac8e159d8
reset: starfive: Factor out common JH71X0 reset code

The StarFive JH7100 SoC has additional reset controllers for audio and
video, but the registers follow the same structure. On the JH7110 the
reset registers don't get their own memory range, but instead follow the
clock control registers. The registers still follow the same structure
though, so let's factor out the common code to handle all these cases.

Tested-by: Tommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
MAINTAINERS
drivers/reset/starfive/Kconfig
drivers/reset/starfive/Makefile
drivers/reset/starfive/reset-starfive-jh7100.c
drivers/reset/starfive/reset-starfive-jh71x0.c [new file with mode: 0644]
drivers/reset/starfive/reset-starfive-jh71x0.h [new file with mode: 0644]