提交 a546b0ac 编写于 作者: M Michael Hennerich 提交者: Bryan Wu

[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: NMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 7cc1c4b2
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册