[PATCH 0/2] arm: lpc32xx: restart: add support for soft reset

Joachim Eastwood manabian at gmail.com
Thu Feb 18 14:07:35 PST 2016


Hi Sylvain,

On 18 February 2016 at 22:35,  <slemieux.tyco at gmail.com> wrote:
> From: Sylvain Lemieux <slemieux at tycoint.com>
>
> The LPC32xx provide the capability to perform a soft or hard reset;
> a soft reset will no reset the external peripheral
> (i.e. RESOUT_N output not asserted).
>
> The default behavior (i.e. hard reset) remain unchanged.
>
> Sylvain Lemieux (2):
>   arm: lpc32xx: restart: add support for soft reset
>   arm: lpc32xx: restart: support "cmd" from userspace
>
>  arch/arm/mach-lpc32xx/common.c | 26 +++++++++++++++++++++++---
>  1 file changed, 23 insertions(+), 3 deletions(-)

Instead of adding more code to mach-lpc32xx could this code be moved
to the watchdog driver (pnx4008_wdt.c) ?
See register_restart_handler() and how it's used in other watchdog drivers.

Then maybe the restart hook in phy3250.c could be removed all together.


regards,
Joachim Eastwood



More information about the linux-arm-kernel mailing list