MIPS: OCTEON: Use correct CSR to soft reset
authorChandrakala Chavva <cchavva@caviumnetworks.com>
Thu, 5 Mar 2015 15:06:11 +0000 (18:06 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:44 +0000 (17:21 +0200)
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: Chandrakala Chavva <cchavva@caviumnetworks.com>
Signed-off-by: Aleksey 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: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c

index 01130e93126deb087ccc0da3cad9bf18256eea00..73348afa4b8014fc13d7cee0ba630e5a84e103cc 100644 (file)
@@ -416,7 +416,10 @@ static void octeon_restart(char *command)
 
        mb();
        while (1)
-               cvmx_write_csr(CVMX_CIU_SOFT_RST, 1);
+               if (OCTEON_IS_OCTEON3())
+                       cvmx_write_csr(CVMX_RST_SOFT_RST, 1);
+               else
+                       cvmx_write_csr(CVMX_CIU_SOFT_RST, 1);
 }