OpenCloudOS-Kernel/drivers/reset
Rojhalat Ibrahim d518d9cab1 reset-socfpga: Fix nr_resets property
The SoC-FPGA reset controller driver defines NR_BANKS as 4 and uses that define
for two unrelated purposes. It is used
1. as an increment for reset line banks which are 32-bit registers with 4-byte
aligned addresses.
2. as the total number of reset line banks which together with the number of
resets per bank (32) limits the total number of useable resets to 128 and the
highest useable reset ID to 127.

This is clearly wrong as there are resets with higher IDs than 127 defined in
include/dt-bindings/reset/altr,rst-mgr.h and altr,rst-mgr-a10.h.

The patch introduces a new define BANK_INCREMENT for calculating the register
addresses as before and increases NR_BANKS to 8 for useable reset IDs up to 255.

Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2017-03-08 09:36:45 +01:00
..
hisilicon reset: hisilicon: add reset-hi3660 2017-01-09 10:38:58 +01:00
sti reset: sti: Remove STiH415/6 reset support 2016-10-20 11:52:08 +02:00
tegra reset: Add Tegra BPMP reset driver 2016-11-18 14:34:56 +01:00
Kconfig reset: zx2967: add reset controller driver for ZTE's zx2967 family 2017-01-20 10:36:12 +01:00
Makefile reset: zx2967: add reset controller driver for ZTE's zx2967 family 2017-01-20 10:36:12 +01:00
core.c ARM: SoC driver updates 2017-02-23 15:57:04 -08:00
reset-ath79.c reset: ath79: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-berlin.c reset: berlin: make it explicitly non-modular 2016-10-24 10:43:40 +02:00
reset-lpc18xx.c reset: lpc18xx: make it explicitly non-modular 2016-10-24 10:45:38 +02:00
reset-meson.c reset: meson: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-oxnas.c reset: oxnas: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-pistachio.c reset: pistachio: make it explicitly non-modular 2017-03-08 09:36:45 +01:00
reset-socfpga.c reset-socfpga: Fix nr_resets property 2017-03-08 09:36:45 +01:00
reset-stm32.c drivers: reset: Add STM32 reset driver 2016-08-24 15:21:28 +02:00
reset-sunxi.c reset: sunxi: make it explicitly non-modular 2016-10-24 10:45:31 +02:00
reset-ti-syscon.c reset: constify reset_control_ops structures 2017-01-12 11:12:07 +01:00
reset-uniphier.c reset: uniphier: fix non static symbol warnings 2017-03-08 09:36:45 +01:00
reset-zx2967.c reset: make zx2967 explicitly non-modular 2017-02-02 16:32:09 +01:00
reset-zynq.c reset: zynq: make it explicitly non-modular 2016-10-24 10:45:32 +02:00