reset: mchp: sparx5: Extend support for lan966x
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 18 Oct 2021 09:15:22 +0000 (11:15 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 18 Oct 2021 12:09:57 +0000 (14:09 +0200)
commit8c81620ac1ace77dd0cbcc2193d4c7311f77d49b
tree499d49dfbac7ab71d30752b64e2de685bfc00f61
parent3ec1b819f1c4a1d473bb59cd6ebd4609a4c0f0f1
reset: mchp: sparx5: Extend support for lan966x

This patch extends sparx5 driver to support also the lan966x. The
process to reset the switch is the same only it has different offsets.
Therefore make the driver more generic and add support for lan966x.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Steen Hegelund <steen.hegelund@microchip.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20211018091522.1113510-3-horatiu.vultur@microchip.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig
drivers/reset/reset-microchip-sparx5.c