OpenCloudOS-Kernel/arch/arm/mach-lpc32xx
Roland Stigge 01100c022d ARM: LPC32xx: Fix reset function
In the recent change to the reset function API (commit
7b6d864b48), the mode argument changed from a
char to an enum. lpc23xx_restart() only handles REBOOT_SOFT and REBOOT_HARD,
but the new kernel code emits REBOOT_COLD (0) on reboots now which leads to
lpc32xx simply not rebooting (but halting).

This patch fixes this by just resetting unconditionally as on other platforms
(e.g. mach-bcm2835).

Pulling lpc32xx_watchdog_reset() into lpc23xx_restart() since the while() in
lpc23xx_restart() is part of the procedure anyway and lpc32xx_watchdog_reset()
isn't used anywhere else anymore.

Signed-off-by: Roland Stigge <stigge@antcom.de>
2014-09-10 17:25:14 +02:00
..
include/mach This cleanup series gets rid of <mach/timex.h> for platforms not using 2014-02-18 22:19:33 -08:00
Makefile ARM: 7044/1: mach-lpc32xx: move LPC32XX GPIO driver to GPIO subsystem 2011-08-22 09:13:21 +01:00
Makefile.boot ARM: move all dtb targets out of Makefile.boot 2012-09-14 09:22:04 -05:00
clock.c ARM: LPC32xx: Add the motor PWM clock 2012-11-12 11:27:40 +01:00
clock.h ARM: LPC32XX: Clock driver 2010-07-27 03:08:09 -07:00
common.c ARM: LPC32xx: Fix reset function 2014-09-10 17:25:14 +02:00
common.h reboot: arm: change reboot_mode to use enum reboot_mode 2013-07-09 10:33:29 -07:00
irq.c ARM: LPC32xx: Cleanup irq.c 2012-11-07 13:30:50 +01:00
phy3250.c mmc: mmci: Enforce DMA configuration through DT 2014-06-02 11:20:25 +02:00
pm.c ARM: LPC32xx: Fix missing and bad LPC32XX macros 2012-02-27 17:31:24 +01:00
serial.c ARM: LPC32xx: Move uart6 irda disable to serial.c 2012-06-14 16:16:19 +02:00
suspend.S ARM: LPC32XX: System suspend support 2010-07-27 08:35:56 -07:00
timer.c ARM: 7999/1: arch/arm/mach-lpc32xx-remove-irqf-disabled 2014-03-12 10:32:36 +00:00