forked from len0rd/rockbox
Stop the occasional crashes (most often 'undefined instruction') on PP5020 (and PP5022?) targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13991 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5ec657545c
commit
f67b4baf1d
1 changed files with 6 additions and 5 deletions
|
@ -172,7 +172,7 @@ void set_cpu_frequency(long frequency)
|
|||
/* Set clock source #1 to 24MHz and select it */
|
||||
outl((inl(0x60006020) & 0x0ffffff0) | 0x10000002, 0x60006020);
|
||||
|
||||
outl(unknown2 & 0x3fffffff, 0x600060a0);
|
||||
outl(inl(0x600060a0) & ~0xc0000000, 0x600060a0);
|
||||
|
||||
unknown1 = (138 * postmult + 255) >> 8;
|
||||
if (unknown1 > 15)
|
||||
|
@ -194,6 +194,7 @@ void set_cpu_frequency(long frequency)
|
|||
/* Select PLL as clock source? */
|
||||
outl((inl(0x60006020) & 0x0fffff0f) | 0x20000070, 0x60006020);
|
||||
|
||||
inl(0x600060a0); /* sync pipeline (?) */
|
||||
outl(unknown2, 0x600060a0);
|
||||
|
||||
# if NUM_CORES > 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue