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)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 31 Jan 2023 15:43:38 +0000 (16:43 +0100)
commit61d74bf67f38c4a7ec76736f38a823b350f4e5d5
tree2ab64733b17fcd2080dacd682fc7761afcc1bed8
parentdac616c0202562b2b0deeb2175af7c4d9a221a05
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.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Co-developed-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
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]