Esempio n. 1
0
void
at91_rst_cpu_reset(void)
{

	if (at91_rst_sc) {
		cpu_reset_sam9g20(); /* May be null */

		WR4(at91_rst_sc, RST_MR,
		    RST_MR_ERSTL(0xd) | RST_MR_URSTEN | RST_MR_KEY);

		WR4(at91_rst_sc, RST_CR,
		    RST_CR_PROCRST |
		    RST_CR_PERRST  |
		    RST_CR_EXTRST  |
		    RST_CR_KEY);
	}
	while(1)
		continue;
}
Esempio n. 2
0
void
cpu_reset(void)
{

	if (rst_sc) {

		cpu_reset_sam9g20(); /* May be null */

		WR4(rst_sc, RST_MR,
		    RST_MR_ERSTL(0xd) | RST_MR_URSTEN | RST_MR_KEY);

		WR4(rst_sc, RST_CR,
		    RST_CR_PROCRST |
		    RST_CR_PERRST  |
		    RST_CR_EXTRST  |
		    RST_CR_KEY);
	}

	for(;;) ;
}