root/loader/ixus100_sd780/entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 .section .entry
   2 
   3     LDR     SP, =MEMBASEADDR
   4     BL      check_compat
   5 
   6 
   7 //// Turn OFF SD Card power
   8 //// to support autostart
   9 ////    LDR     R3, =0xC0220048
  10 //      LDR     R3, =0xC0220018 // sd990: from sub_FFFF1390, also ref SdPower.c  //same for SD780
  11 //      MOV     R2, #0x44
  12 //      STR     R2, [R3]
  13 //
  14 //// looks like idle cycle is required for proper shutdown
  15 //      MOV     R3, #0x8000
  16 //1:
  17 //      SUB     R3, R3, #1
  18 //      CMP     R3, #0
  19 //      BNE     1b
  20 //
  21 
  22 // ordinary startup...
  23 
  24         MOV     SP, #0x1900
  25         MOV     R11, #0
  26         B       my_restart

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