1 /* 2 * OMAP1 reset support 3 */ 4 #include <linux/kernel.h> 5 #include <linux/io.h> 6 7 #include <mach/hardware.h> 8 #include <plat/prcm.h> 9 10 void omap1_restart(char mode, const char *cmd) 11 { 12 /* 13 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 14 * "Global Software Reset Affects Traffic Controller Frequency". 15 */ 16 if (cpu_is_omap5912()) { 17 omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); 18 omap_writew(0x8, ARM_RSTCT1); 19 } 20 21 omap_writew(1, ARM_RSTCT1); 22 } 23