root/loader/sx1/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1     .section .entry
   2 
   3 // Turn OFF SD Card power
   4 // to support autostart
   5         LDR     R3, =0xC0220018  // found at FF85EC9C + FF85ECC0
   6         MOV     R2, #0x44
   7         STR     R2, [R3]
   8         
   9 // looks like idle cycle is required for proper shutdown
  10         MOV     R3, #0x8000
  11 1:
  12         SUB     R3, R3, #1
  13         CMP     R3, #0
  14         BNE     1b
  15 
  16 // ordinary startup...
  17 
  18         MOV     SP, #0x1900
  19         MOV     R11, #0
  20         B       my_restart

/* [<][>][^][v][top][bottom][index][help] */