mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-01 06:23:35 +01:00
spu: more complete initialization
This commit is contained in:
parent
3694f20d56
commit
2c2d1513f9
1 changed files with 7 additions and 0 deletions
|
@ -29,9 +29,16 @@ static void init(void)
|
||||||
|
|
||||||
/* Reset the SPU */
|
/* Reset the SPU */
|
||||||
SPU.SPUSRST.RST = 0;
|
SPU.SPUSRST.RST = 0;
|
||||||
|
sleep_us_spin(1000);
|
||||||
SPU.SPUSRST.RST = 1;
|
SPU.SPUSRST.RST = 1;
|
||||||
sleep_us_spin(1000);
|
sleep_us_spin(1000);
|
||||||
|
|
||||||
|
/* Initially give all P memory and X memory to DSP0 */
|
||||||
|
SPU.PBANKC0 = 0x1f;
|
||||||
|
SPU.PBANKC1 = 0x00;
|
||||||
|
SPU.XBANKC0 = 0x7f;
|
||||||
|
SPU.XBANKC1 = 0x00;
|
||||||
|
|
||||||
/* Perform full DSP resets */
|
/* Perform full DSP resets */
|
||||||
DSP0.DSPCORERST = 1;
|
DSP0.DSPCORERST = 1;
|
||||||
DSP1.DSPCORERST = 1;
|
DSP1.DSPCORERST = 1;
|
||||||
|
|
Loading…
Reference in a new issue