]> www.infradead.org Git - users/jedix/linux-maple.git/commit
reset: mchp: sparx5: add switch reset driver
authorSteen Hegelund <steen.hegelund@microchip.com>
Fri, 16 Apr 2021 08:40:53 +0000 (10:40 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 26 Apr 2021 07:31:03 +0000 (09:31 +0200)
commitca6213f7d775fb60628eda3aa9de09d572adbb07
treec3fa28b140eceb8c29e395163ae37c49d68f7ff3
parent8462573103f63ee4d027572956a9031f2c548a6d
reset: mchp: sparx5: add switch reset driver

The Sparx5 Switch SoC has a number of components that can be reset
indiviually, but at least the Switch Core needs to be in a well defined
state at power on, when any of the Sparx5 drivers starts to access the
Switch Core, this reset driver is available.

The reset driver is loaded early via the postcore_initcall interface, and
will then be available for the other Sparx5 drivers (SGPIO, SwitchDev etc)
that are loaded next, and the first of them to be loaded can perform the
one-time Switch Core reset that is needed.

The driver has protection so that the system busses, DDR controller, PCI-E
and ARM A53 CPU and a few other subsystems are not touched by the reset.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/reset-microchip-sparx5.c [new file with mode: 0644]