summaryrefslogtreecommitdiff
path: root/change_bclk
diff options
context:
space:
mode:
Diffstat (limited to 'change_bclk')
-rw-r--r--change_bclk20
1 files changed, 20 insertions, 0 deletions
diff --git a/change_bclk b/change_bclk
new file mode 100644
index 0000000..96220e6
--- /dev/null
+++ b/change_bclk
@@ -0,0 +1,20 @@
+ "mov r4, r0\n\t"
+ "and #0x0F, r0\n\t"
+ "shll16 r0\n\t"
+ "shll2 r0\n\t"
+ "shll2 r0\n\t"
+ "mov.l frqcr_bclk, r1\n\t"
+ "mov.l bclk_mask, r3\n\t"
+ "mov.l @r1, r2\n\t"
+ "and r3, r2\n\t"
+ "or r0, r2\n\t"
+ "mov.l r2, @r1\n\t"
+ "mov.l frqcr_kick_bit_bclk, r0\n\t"
+ "mov.l @r1, r2\n\t"
+ "or r0, r2\n\t"
+ "rts\n\t"
+ "mov.l r2, @r1\n\t"
+ ".align 4\n\t"
+ "frqcr_kick_bit_bclk: .long 0x80000000\n\t"
+ "bclk_mask: .long 0xFFFFF0FF\n\t"
+ "frqcr_bclk: .long 0xA4150000\n\t" \ No newline at end of file