mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
ee54dba9c3
This adds a clean method to allow platforms to hook into the reset code if they require to. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Tony Lindgren <tony@atomide.com>
26 lines
560 B
C
26 lines
560 B
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;
|