Skip to content
Browse files

[forth] fixes for using PLL as clock source

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 8e707bf commit 116bf3db8dac1ed93a89cb5ca4a0ef8ac3087e39 @hxw hxw committed
Showing with 2 additions and 13 deletions.
  1. +2 −1 samo-lib/forth/header.s
  2. +0 −12 samo-lib/forth/vector.s
View
3 samo-lib/forth/header.s
@@ -238,7 +238,8 @@ main:
ld.w %r0, 0 ; clear status register
ld.w %psr, %r0
- xcall Vector_initialise ; must be first
+ xcall Suspend_initialise ; must be first
+ xcall Vector_initialise ; must be second
xcall Serial_initialise
xcall Button_initialise
xcall CTP_initialise
View
12 samo-lib/forth/vector.s
@@ -63,18 +63,6 @@ Vector_initialise:
DISABLE_INTERRUPTS
- xld.w %r4, R32_CMU_PROTECT
- xld.w %r5, CMU_PROTECT_OFF
- ld.w [%r4], %r5
-
- xld.w %r6, R32_CMU_OPT
- ld.w %r7, [%r6]
- or %r7, 1
- ld.w [%r6], %r7
-
- ld.w %r5, CMU_PROTECT_ON
- ld.w [%r4], %r5
-
xld.w %r4, R8_RST_RESET
xld.w %r5, DENONLY | IDMAONLY | RSTONLY
ld.b [%r4], %r5

0 comments on commit 116bf3d

Please sign in to comment.
Something went wrong with that request. Please try again.