root/loader/s95/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 .section .entry
   2 
   3     LDR     SP, =MEMBASEADDR
   4     BL      check_compat
   5 
   6 // Turn OFF SD Card power
   7 // to support autostart
   8 LDR     R3, =0xC0220018 // s95-100e @FF876F20
   9 MOV     R2, #0x44
  10 STR     R2, [R3]
  11 
  12 
  13 
  14 // af on
  15 //LDR     R3, =0xC0223030
  16 //MOV     R2, #0x46
  17 //STR     R2, [R3]
  18 
  19 
  20 
  21 // looks like idle cycle is required for proper shutdown
  22 MOV     R3, #0xF0000   // increased from 8000 to F0000 for extra delay
  23 1:
  24 SUB R3, R3, #1
  25 CMP R3, #0
  26 BNE 1b
  27 
  28 // ordinary startup...
  29 
  30         MOV     SP, #0x1900
  31         MOV     R11, #0
  32         B       my_restart

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