Commit | Line | Data |
---|---|---|
e7736d47 | 1 | /* |
a09e64fb | 2 | * arch/arm/mach-ep93xx/include/mach/system.h |
e7736d47 LB |
3 | */ |
4 | ||
a09e64fb | 5 | #include <mach/hardware.h> |
e7736d47 LB |
6 | |
7 | static inline void arch_idle(void) | |
8 | { | |
9 | cpu_do_idle(); | |
10 | } | |
11 | ||
be093beb | 12 | static inline void arch_reset(char mode, const char *cmd) |
e7736d47 | 13 | { |
e7736d47 LB |
14 | local_irq_disable(); |
15 | ||
02239f0a HS |
16 | /* |
17 | * Set then clear the SWRST bit to initiate a software reset | |
18 | */ | |
19 | ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST); | |
20 | ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST); | |
e7736d47 LB |
21 | |
22 | while (1) | |
23 | ; | |
24 | } |