PageRenderTime 24ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Test/bug1764143.h

http://github.com/fishman/ctags
C Header | 27 lines | 20 code | 3 blank | 4 comment | 3 complexity | 75b900ccc298d6d79cef161d35f47cc4 MD5 | raw file
Possible License(s): GPL-2.0
 1static inline void omap1_arch_reset(char mode)
 2{
 3	/*
 4	 * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
 5	 * "Global Software Reset Affects Traffic Controller Frequency".
 6	 */
 7	if (cpu_is_omap5912()) {
 8		omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4),
 9				 DPLL_CTL);
10		omap_writew(0x8, ARM_RSTCT1);
11	}
12
13	if (machine_is_voiceblue())
14		voiceblue_reset();
15	else
16		omap_writew(1, ARM_RSTCT1);
17}
18
19static inline void arch_reset(char mode)
20{
21	if (!cpu_is_omap24xx())
22		omap1_arch_reset(mode);
23	else
24		omap_prcm_arch_reset(mode);
25}
26
27#endif