Russell King - ARM Linux | ee54dba | 2011-01-27 16:39:45 -0800 | [diff] [blame] | 1 | /* |
| 2 | * OMAP1 reset support |
| 3 | */ |
| 4 | #include <linux/kernel.h> |
| 5 | #include <linux/io.h> |
| 6 | |
Russell King - ARM Linux | ee54dba | 2011-01-27 16:39:45 -0800 | [diff] [blame] | 7 | #include <plat/prcm.h> |
| 8 | |
Tony Lindgren | 2e3ee9f | 2012-02-24 10:34:34 -0800 | [diff] [blame] | 9 | #include <mach/hardware.h> |
| 10 | |
Russell King | baa9588 | 2011-11-05 17:06:28 +0000 | [diff] [blame] | 11 | void omap1_restart(char mode, const char *cmd) |
Russell King - ARM Linux | ee54dba | 2011-01-27 16:39:45 -0800 | [diff] [blame] | 12 | { |
| 13 | /* |
| 14 | * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 |
| 15 | * "Global Software Reset Affects Traffic Controller Frequency". |
| 16 | */ |
| 17 | if (cpu_is_omap5912()) { |
| 18 | omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); |
| 19 | omap_writew(0x8, ARM_RSTCT1); |
| 20 | } |
| 21 | |
| 22 | omap_writew(1, ARM_RSTCT1); |
| 23 | } |