2011-01-28 08:39:45 +08:00
|
|
|
/*
|
|
|
|
* OMAP1 reset support
|
|
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
|
|
|
|
#include <plat/prcm.h>
|
|
|
|
|
2012-02-25 02:34:34 +08:00
|
|
|
#include <mach/hardware.h>
|
|
|
|
|
2012-04-13 20:34:26 +08:00
|
|
|
#include "common.h"
|
|
|
|
|
2011-11-06 01:06:28 +08:00
|
|
|
void omap1_restart(char mode, const char *cmd)
|
2011-01-28 08:39:45 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
|
|
|
|
* "Global Software Reset Affects Traffic Controller Frequency".
|
|
|
|
*/
|
|
|
|
if (cpu_is_omap5912()) {
|
|
|
|
omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL);
|
|
|
|
omap_writew(0x8, ARM_RSTCT1);
|
|
|
|
}
|
|
|
|
|
|
|
|
omap_writew(1, ARM_RSTCT1);
|
|
|
|
}
|