Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217324
b: refs/heads/master
c: ef4d63e
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Ferre committed Oct 26, 2010
1 parent 3f34748 commit 89b7114
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 184c82e853704ee98e729af0f36a8539355c0e2e
refs/heads/master: ef4d63e6f51d9669e247c47b670a83511b98eb68
14 changes: 7 additions & 7 deletions trunk/arch/arm/mach-at91/at91sam9g20_reset.S
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@
.globl at91sam9g20_reset

at91sam9g20_reset: mov r0, #0
mcr p15, 0, r0, c7, c5, 0 @ flush I-cache
mcr p15, 0, r0, c7, c5, 0 @ flush I-cache

mrc p15, 0, r0, c1, c0, 0
orr r0, r0, #CP15_CR_I
mcr p15, 0, r0, c1, c0, 0 @ enable I-cache
mcr p15, 0, r0, c1, c0, 0 @ enable I-cache

ldr r0, =SDRAMC_BASE @ preload constants
ldr r0, =SDRAMC_BASE @ preload constants
ldr r1, =RSTC_BASE

mov r2, #1
mov r3, #SDRAMC_LPCB_POWER_DOWN
ldr r4, =RSTC_KEY | RSTC_PERRST | RSTC_PROCRST

.balign 32 @ align to cache line
.balign 32 @ align to cache line

str r2, [r0, #SDRAMC_TR] @ disable SDRAM access
str r3, [r0, #SDRAMC_LPR] @ power down SDRAM
str r4, [r1, #RSTC_CR] @ reset processor
str r2, [r0, #SDRAMC_TR] @ disable SDRAM access
str r3, [r0, #SDRAMC_LPR] @ power down SDRAM
str r4, [r1, #RSTC_CR] @ reset processor

b .

0 comments on commit 89b7114

Please sign in to comment.