f88b8979d2
Remove the now empty arch_reset() from all the mach/system.h includes, and remove its callsite. Remove arm_machine_restart() as this function no longer does anything useful. For samsung platforms, remove the include of mach/system-reset.h and plat/system-reset.h from their respective mach/system.h headers as these just define their arch_reset functions. As a result, the s3c2410 and plat-samsung system-reset.h files are no longer referenced, so remove these files entirely. Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
37 lines
1 KiB
C
37 lines
1 KiB
C
/*
|
|
* arch/arm/mach-ebsa110/include/mach/system.h
|
|
*
|
|
* Copyright (C) 1996-2000 Russell King.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_ARCH_SYSTEM_H
|
|
#define __ASM_ARCH_SYSTEM_H
|
|
|
|
/*
|
|
* EBSA110 idling methodology:
|
|
*
|
|
* We can not execute the "wait for interrupt" instruction since that
|
|
* will stop our MCLK signal (which provides the clock for the glue
|
|
* logic, and therefore the timer interrupt).
|
|
*
|
|
* Instead, we spin, polling the IRQ_STAT register for the occurrence
|
|
* of any interrupt with core clock down to the memory clock.
|
|
*/
|
|
static inline void arch_idle(void)
|
|
{
|
|
const char *irq_stat = (char *)0xff000000;
|
|
|
|
/* disable clock switching */
|
|
asm volatile ("mcr p15, 0, ip, c15, c2, 2" : : : "cc");
|
|
|
|
/* wait for an interrupt to occur */
|
|
while (!*irq_stat);
|
|
|
|
/* enable clock switching */
|
|
asm volatile ("mcr p15, 0, ip, c15, c1, 2" : : : "cc");
|
|
}
|
|
|
|
#endif
|