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

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

MIPS: OCTEON: Use correct CSR to soft reset



Also delete unused cvmx_reset_octeon()
This fixes reboot for Octeon III boards

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


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a8667d70
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -413,6 +413,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);
}

+0 −8
Original line number Diff line number Diff line
@@ -436,14 +436,6 @@ static inline uint64_t cvmx_get_cycle_global(void)

/***************************************************************************/

static inline void cvmx_reset_octeon(void)
{
	union cvmx_ciu_soft_rst ciu_soft_rst;
	ciu_soft_rst.u64 = 0;
	ciu_soft_rst.s.soft_rst = 1;
	cvmx_write_csr(CVMX_CIU_SOFT_RST, ciu_soft_rst.u64);
}

/* Return the number of cores available in the chip */
static inline uint32_t cvmx_octeon_num_cores(void)
{