Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a546b0ac authored by Michael Hennerich's avatar Michael Hennerich Committed by Bryan Wu
Browse files

[Blackfin] arch: Fix BUG - kernel sometimes would stuck with KEYBOARD_GPIO on



Make sure the SYSTEM reset completes before we issue the CORE reset

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 7cc1c4b2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,9 +34,11 @@ void bfin_reset(void)
	while (1) {
		/* initiate system soft reset with magic 0x7 */
		bfin_write_SWRST(0x7);
		bfin_read_SWRST();
		asm("ssync;");
		/* clear system soft reset */
		bfin_write_SWRST(0);
		bfin_read_SWRST();
		asm("ssync;");
		/* issue core reset */
		asm("raise 1");