Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-arm/arch-iop13xx/system.h |
| 3 | * |
| 4 | * Copyright (C) 2004 Intel Corp. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | #include <asm/arch/iop13xx.h> |
| 11 | static inline void arch_idle(void) |
| 12 | { |
| 13 | cpu_do_idle(); |
| 14 | } |
| 15 | |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 16 | static inline void arch_reset(char mode) |
| 17 | { |
| 18 | /* |
| 19 | * Reset the internal bus (warning both cores are reset) |
| 20 | */ |
Dan Williams | 70c14ff | 2007-07-20 02:07:26 +0100 | [diff] [blame] | 21 | write_wdtcr(IOP_WDTCR_EN_ARM); |
| 22 | write_wdtcr(IOP_WDTCR_EN); |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 23 | write_wdtsr(IOP13XX_WDTSR_WRITE_EN | IOP13XX_WDTCR_IB_RESET); |
| 24 | write_wdtcr(0x1000); |
Dan Williams | 285f5fa | 2006-12-07 02:59:39 +0100 | [diff] [blame] | 25 | |
| 26 | for(;;); |
| 27 | } |