diff options
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/pm_slowclock.S | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S index 6022d2d8c267..a207dea3a152 100644 --- a/arch/arm/mach-at91/pm_slowclock.S +++ b/arch/arm/mach-at91/pm_slowclock.S | |||
@@ -50,15 +50,6 @@ tmp2 .req r5 | |||
50 | beq 1b | 50 | beq 1b |
51 | .endm | 51 | .endm |
52 | 52 | ||
53 | /* | ||
54 | * Wait until PLLB has locked. | ||
55 | */ | ||
56 | .macro wait_pllblock | ||
57 | 1: ldr tmp1, [pmc, #AT91_PMC_SR] | ||
58 | tst tmp1, #AT91_PMC_LOCKB | ||
59 | beq 1b | ||
60 | .endm | ||
61 | |||
62 | .text | 53 | .text |
63 | 54 | ||
64 | .arm | 55 | .arm |
@@ -176,13 +167,6 @@ sdr_sr_done: | |||
176 | orr tmp1, tmp1, #(1 << 29) /* bit 29 always set */ | 167 | orr tmp1, tmp1, #(1 << 29) /* bit 29 always set */ |
177 | str tmp1, [pmc, #AT91_CKGR_PLLAR] | 168 | str tmp1, [pmc, #AT91_CKGR_PLLAR] |
178 | 169 | ||
179 | /* Save PLLB setting and disable it */ | ||
180 | ldr tmp1, [pmc, #AT91_CKGR_PLLBR] | ||
181 | str tmp1, .saved_pllbr | ||
182 | |||
183 | mov tmp1, #AT91_PMC_PLLCOUNT | ||
184 | str tmp1, [pmc, #AT91_CKGR_PLLBR] | ||
185 | |||
186 | /* Turn off the main oscillator */ | 170 | /* Turn off the main oscillator */ |
187 | ldr tmp1, [pmc, #AT91_CKGR_MOR] | 171 | ldr tmp1, [pmc, #AT91_CKGR_MOR] |
188 | bic tmp1, tmp1, #AT91_PMC_MOSCEN | 172 | bic tmp1, tmp1, #AT91_PMC_MOSCEN |
@@ -200,18 +184,6 @@ sdr_sr_done: | |||
200 | 184 | ||
201 | wait_moscrdy | 185 | wait_moscrdy |
202 | 186 | ||
203 | /* Restore PLLB setting */ | ||
204 | ldr tmp1, .saved_pllbr | ||
205 | str tmp1, [pmc, #AT91_CKGR_PLLBR] | ||
206 | |||
207 | tst tmp1, #(AT91_PMC_MUL & 0xff0000) | ||
208 | bne 1f | ||
209 | tst tmp1, #(AT91_PMC_MUL & ~0xff0000) | ||
210 | beq 2f | ||
211 | 1: | ||
212 | wait_pllblock | ||
213 | 2: | ||
214 | |||
215 | /* Restore PLLA setting */ | 187 | /* Restore PLLA setting */ |
216 | ldr tmp1, .saved_pllar | 188 | ldr tmp1, .saved_pllar |
217 | str tmp1, [pmc, #AT91_CKGR_PLLAR] | 189 | str tmp1, [pmc, #AT91_CKGR_PLLAR] |
@@ -279,9 +251,6 @@ ram_restored: | |||
279 | .saved_pllar: | 251 | .saved_pllar: |
280 | .word 0 | 252 | .word 0 |
281 | 253 | ||
282 | .saved_pllbr: | ||
283 | .word 0 | ||
284 | |||
285 | .saved_sam9_lpr: | 254 | .saved_sam9_lpr: |
286 | .word 0 | 255 | .word 0 |
287 | 256 | ||