reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 11 Aug 2017 10:58:43 +0000 (12:58 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 17 Oct 2017 13:35:20 +0000 (15:35 +0200)
commit81c22ad0cc7db056408d6089c9303b2f6e486518
tree28322e2d9c3e435ca4688311f3fc4f5b61649974
parent7e8838fe59515860823233353227e89b82b8794e
reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967

Copy reusable parts from the sunxi driver, to add a driver for simple
reset controllers with reset lines that can be controlled by toggling
bits in exclusive, contiguous register ranges using read-modify-write
cycles under a spinlock.

The following patches will replace compatible reset drivers with
reset-simple, extending it where necessary.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
drivers/reset/Kconfig
drivers/reset/Makefile
drivers/reset/reset-simple.c [new file with mode: 0644]
drivers/reset/reset-simple.h [new file with mode: 0644]