Path: blob/master/arch/arm/mach-lpc32xx/include/mach/system.h
10820 views
/*1* arch/arm/mach-lpc32xx/include/mach/system.h2*3* Author: Kevin Wells <[email protected]>4*5* Copyright (C) 2010 NXP Semiconductors6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*/1718#ifndef __ASM_ARCH_SYSTEM_H19#define __ASM_ARCH_SYSTEM_H2021static void arch_idle(void)22{23cpu_do_idle();24}2526static inline void arch_reset(char mode, const char *cmd)27{28extern void lpc32xx_watchdog_reset(void);2930switch (mode) {31case 's':32case 'h':33printk(KERN_CRIT "RESET: Rebooting system\n");3435/* Disable interrupts */36local_irq_disable();3738lpc32xx_watchdog_reset();39break;4041default:42/* Do nothing */43break;44}4546/* Wait for watchdog to reset system */47while (1)48;49}5051#endif525354