Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe2360f8 authored by Chandrakala Chavva's avatar Chandrakala Chavva Committed by Ralf Baechle
Browse files

MIPS: OCTEON: Use correct CSR to soft reset



This fixes reboot for Octeon III boards

[ralf@linux-mips.org: Dropped segment for function cvmx_reset_octeon()
which was removed by the preceeding commit.]

Signed-off-by: default avatarChandrakala Chavva <cchavva@caviumnetworks.com>
Signed-off-by: default avatarAleksey Makarov <aleksey.makarov@auriga.com>
Cc: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9464/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 254f0bd9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -416,6 +416,9 @@ static void octeon_restart(char *command)

	mb();
	while (1)
		if (OCTEON_IS_OCTEON3())
			cvmx_write_csr(CVMX_RST_SOFT_RST, 1);
		else
			cvmx_write_csr(CVMX_CIU_SOFT_RST, 1);
}