Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 authored by Linus Torvalds on 13 June 2011, 22:29:59 UTC
Linux 3.0-rc3
Tip revision: 2c53b43
reset.c
/*
 * OMAP1 reset support
 */
#include <linux/kernel.h>
#include <linux/io.h>

#include <mach/hardware.h>
#include <mach/system.h>
#include <plat/prcm.h>

void omap1_arch_reset(char mode, const char *cmd)
{
	/*
	 * 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);
}

void (*arch_reset)(char, const char *) = omap1_arch_reset;
back to top