Path: blob/master/arch/arm/mach-ixp23xx/include/mach/system.h
15157 views
/*1* arch/arm/mach-ixp23xx/include/mach/system.h2*3* Copyright (C) 2003 Intel Corporation.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*/910#include <mach/hardware.h>11#include <asm/mach-types.h>1213static inline void arch_idle(void)14{15#if 016if (!hlt_counter)17cpu_do_idle();18#endif19}2021static inline void arch_reset(char mode, const char *cmd)22{23/* First try machine specific support */24if (machine_is_ixdp2351()) {25*IXDP2351_CPLD_RESET1_REG = IXDP2351_CPLD_RESET1_MAGIC;26(void) *IXDP2351_CPLD_RESET1_REG;27*IXDP2351_CPLD_RESET1_REG = IXDP2351_CPLD_RESET1_ENABLE;28}2930/* Use on-chip reset capability */31*IXP23XX_RESET0 |= IXP23XX_RST_ALL;32}333435