diff options
Diffstat (limited to 'firmware/target/arm/tcc77x/crt0.S')
-rw-r--r-- | firmware/target/arm/tcc77x/crt0.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc77x/crt0.S b/firmware/target/arm/tcc77x/crt0.S index e144c16fae..569930352a 100644 --- a/firmware/target/arm/tcc77x/crt0.S +++ b/firmware/target/arm/tcc77x/crt0.S | |||
@@ -82,12 +82,15 @@ start_loc: | |||
82 | 82 | ||
83 | #ifdef TCCBOOT | 83 | #ifdef TCCBOOT |
84 | mov r0, #0x80000000 | 84 | mov r0, #0x80000000 |
85 | #ifdef LOGIK_DAX | 85 | #if defined(LOGIK_DAX) |
86 | ldr r0, [r0, #0x300] /* Hold button is GPIO A, pin 0x2 */ | 86 | ldr r0, [r0, #0x300] /* Hold button is GPIO A, pin 0x2 */ |
87 | tst r0, #0x2 | 87 | tst r0, #0x2 |
88 | #elif defined(SANSA_M200) | 88 | #elif defined(SANSA_M200) |
89 | ldr r0, [r0, #0x310] /* Hold button is GPIO B, pin 0x200 */ | 89 | ldr r0, [r0, #0x310] /* Hold button is GPIO B, pin 0x200 */ |
90 | tst r0, #0x200 | 90 | tst r0, #0x200 |
91 | #elif defined(IAUDIO_7) | ||
92 | ldr r0, [r0, #0x300] /* Hold button is !GPIO A, pin 0x2 */ | ||
93 | tst r0, #0x2 | ||
91 | #else | 94 | #else |
92 | #error No bootup key detection implemented for this target | 95 | #error No bootup key detection implemented for this target |
93 | #endif | 96 | #endif |