(更新:Akabane Jumpei)

LoadTable, RD_ID(normalモード), RD_PAGE(BootSegment), CHG_MODE(normal),RD_ID(Gameモード),
RD_PAGE(Gameモード)の各コマンドの後に適切なウェイトを入れる。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1389 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2008-05-19 01:36:26 +00:00
parent 051f8fdf12
commit 5381441124

View File

@ -104,6 +104,9 @@ HotSwState ReadIDNormal(CardBootData *cbd)
}
#endif
// 1us Wait
OS_SpinWait( OS_USEC_TO_CPUCYC(1) );
return HOTSW_SUCCESS;
}
@ -190,8 +193,11 @@ HotSwState ReadBootSegNormal(CardBootData *cbd)
}
#endif
page++;
}
// 10us Wait
OS_SpinWait( OS_USEC_TO_CPUCYC(10) );
}
return HOTSW_SUCCESS;
}
@ -324,6 +330,9 @@ static HotSwState HOTSWi_ChangeModeNormal(CardBootData *cbd, u64 cmd)
// カードデータ転送終了まで待つ
HOTSW_WaitCardCtrl();
// 47us Wait
OS_SpinWait( OS_USEC_TO_CPUCYC(47) );
return HOTSW_SUCCESS;
}
@ -368,6 +377,9 @@ HotSwState LoadTable(void)
temp = reg_HOTSW_MCD1;
}
#endif
// 1us Wait
OS_SpinWait( OS_USEC_TO_CPUCYC(1) );
return HOTSW_SUCCESS;
}
@ -783,6 +795,9 @@ HotSwState ReadIDGame(CardBootData *cbd)
cbd->id_gam = reg_HOTSW_MCD1;
}
#endif
// 1us Wait
OS_SpinWait( OS_USEC_TO_CPUCYC(1) );
return HOTSW_SUCCESS;
}
@ -839,6 +854,9 @@ HotSwState ReadPageGame(CardBootData *cbd, u32 start_addr, void* buf, u32 size)
#endif
}
// 100ns Wait
OS_SpinWait( OS_NSEC_TO_CPUCYC(100) );
return HOTSW_SUCCESS;
}