blob: b17709103866aeeb16394d760b3e6af33396a5c9 [file] [log] [blame]
Russell King - ARM Linuxee54dba2011-01-27 16:39:45 -08001/*
2 * OMAP1 reset support
3 */
4#include <linux/kernel.h>
5#include <linux/io.h>
6
Russell King - ARM Linuxee54dba2011-01-27 16:39:45 -08007#include <plat/prcm.h>
8
Tony Lindgren2e3ee9f2012-02-24 10:34:34 -08009#include <mach/hardware.h>
10
Paul Walmsleye2ed89f2012-04-13 06:34:26 -060011#include "common.h"
12
Russell Kingbaa95882011-11-05 17:06:28 +000013void omap1_restart(char mode, const char *cmd)
Russell King - ARM Linuxee54dba2011-01-27 16:39:45 -080014{
15 /*
16 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
17 * "Global Software Reset Affects Traffic Controller Frequency".
18 */
19 if (cpu_is_omap5912()) {
20 omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL);
21 omap_writew(0x8, ARM_RSTCT1);
22 }
23
24 omap_writew(1, ARM_RSTCT1);
25}