bdf6c4f1feef9418cf5bc58f8ee70f8cd4949222
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-ep93xx / include / mach / system.h
1 /*
2  * arch/arm/mach-ep93xx/include/mach/system.h
3  */
4
5 #include <mach/hardware.h>
6
7 static inline void arch_idle(void)
8 {
9         cpu_do_idle();
10 }
11
12 static inline void arch_reset(char mode, const char *cmd)
13 {
14         /*
15          * Set then clear the SWRST bit to initiate a software reset
16          */
17         ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST);
18         ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST);
19
20         while (1)
21                 ;
22 }