Path: blob/master/arch/arm/mach-h720x/include/mach/system.h
17544 views
/*1* arch/arm/mach-h720x/include/mach/system.h2*3* Copyright (C) 2001-2002 Jungjun Kim, Hynix Semiconductor Inc.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* arch/arm/mach-h720x/include/mach/system.h9*10*/1112#ifndef __ASM_ARCH_SYSTEM_H13#define __ASM_ARCH_SYSTEM_H14#include <mach/hardware.h>1516static void arch_idle(void)17{18CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_IDLE;19nop();20nop();21CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_RUN;22nop();23nop();24}252627static __inline__ void arch_reset(char mode, const char *cmd)28{29CPU_REG (PMU_BASE, PMU_STAT) |= PMU_WARMRESET;30}3132#endif333435