]> git.baikalelectronics.ru Git - kernel.git/commit
reset: socfpga: add an early reset driver for SoCFPGA
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 13 Nov 2018 18:50:48 +0000 (12:50 -0600)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 7 Jan 2019 15:38:50 +0000 (16:38 +0100)
commit533c0b0df4cdb30e1c8003487403f9cfaad8cea2
tree0372e63304427cde5620f8bfc726096a1cae4b89
parentd1f65c56018aea0982325b8446f22ad3523b7287
reset: socfpga: add an early reset driver for SoCFPGA

Create a separate reset driver that uses the reset operations in
reset-simple. The reset driver for the SoCFPGA platform needs to
register early in order to be able bring online timers that needed
early in the kernel bootup.

We do not need this early reset driver for Stratix10, because on
arm64, Linux does not need the timers are that in reset. Linux is
able to run just fine with the internal armv8 timer. Thus, we use
a new binding "altr,stratix10-rst-mgr" for the Stratix10 platform.
The Stratix10 platform will continue to use the reset-simple platform
driver, while the 32-bit platforms(Cyclone5/Arria5/Arria10) will use
the early reset driver.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
[p.zabel@pengutronix.de: fixed socfpga of_device_id in reset-simple]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
arch/arm/mach-socfpga/socfpga.c
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/reset-simple.c
drivers/reset/reset-socfpga.c [new file with mode: 0644]