SHARE
TWEET

Untitled

a guest Jun 21st, 2010 128 Never
  1. diff --git a/firmware/target/arm/tcc780x/crt0.S b/firmware/target/arm/tcc780x/crt0.S
  2. index f6eb6af..548bb15 100644
  3. --- a/firmware/target/arm/tcc780x/crt0.S
  4. +++ b/firmware/target/arm/tcc780x/crt0.S
  5. @@ -74,7 +74,11 @@ start_loc:
  6.      ldr    r0, =0xf005a000
  7.      ldr    r0, [r0, #0x20] /* Read GPIO A */
  8.      tst    r0, #0x8
  9. -    ldrne  pc, [pc, #-28]  /* Jump to original firmware if HOLD not pressed */
  10. +    ldreq  pc, [pc, #-28]  /* Jump to original firmware if HOLD pressed */
  11. +    ldr    r0, =0xf005a060
  12. +    ldr    r0, [r0, #0x20] /* Read GPIO C */
  13. +    tst    r0, #0x4000000
  14. +    ldreq  pc, [pc, #-28]  /* Jump to original firmware if usb connected */
  15.  #else
  16.      #error No bootup key detection implemented for this target
  17.  #endif
RAW Paste Data
Top