Пример #1
0
void nxp_before_linux(void)
{
#ifdef CONFIG_HW_WATCHDOG
    // enable hw watchdog
	hw_watchdog_restart();
#endif
}
Пример #2
0
void nxp_before_linux(void)
{
#ifdef CONFIG_HW_WATCHDOG
    // enable hw watchdog
	hw_watchdog_restart();
#endif
#ifdef CONFIG_ARM64_EL3
	void __iomem *base = (void*)0xC0009000;
	int i;

	/*
	 * set gic access non-secure permition : GIC_DIST_IGROUP
	 */
	for (i = 0x80; i < 0xbc; i += 4)
		writel(0xffffffff, base + i);

	/*
	 * set tzpc and tieoff to access non-secure permition
	 */
	cpu_tzpc_init();
#endif
}