mips: mscc: serval: Fix reset
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 15 Apr 2019 09:56:36 +0000 (11:56 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 3 May 2019 14:42:23 +0000 (16:42 +0200)
commit72e224b864baa4905b9c5997223baa3e65725be7
tree9954c6087815c7699351f802e8cfcd01330c69d3
parentb4ee6daad7a2604ca9466b2ba48de86cc27d381f
mips: mscc: serval: Fix reset

In case the ddr training was failing, it couldn't reset, it was just
hanging. Therefore reimplement it, so when ddr training is failing
it would call _machine_restart, which power downs the DDR and does
a force reset.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
arch/mips/mach-mscc/include/mach/ddr.h
arch/mips/mach-mscc/reset.c