]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: ralink: manage low reset lines
authorSander Vanheule <sander@svanheule.net>
Wed, 3 Feb 2021 09:21:41 +0000 (10:21 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 4 Feb 2021 12:35:01 +0000 (13:35 +0100)
commit79c924b824e5633fadf2133d7fda9072dddfda39
treeea80d380d56dae680d959a13150b48c57d85ddf1
parent30b3469c96a8ef7d908d58b4cacbac4c90218b7c
MIPS: ralink: manage low reset lines

Reset lines with indices smaller than 8 are currently considered invalid
by the rt2880-reset reset controller.

The MT7621 SoC uses a number of these low reset lines. The DTS defines
reset lines "hsdma", "fe", and "mcm" with respective values 5, 6, and 2.
As a result of the above restriction, these resets cannot be asserted or
de-asserted by the reset controller. In cases where the bootloader does
not de-assert these lines, this results in e.g. the MT7621's internal
switch staying in reset.

Change the reset controller to only ignore the system reset, so all
reset lines with index greater than 0 are considered valid.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/reset.c