summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/sansa_as3525.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index fb3ba98346..3938f819b4 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -160,6 +160,13 @@ void main(void)
160#endif 160#endif
161 } 161 }
162 162
163#if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP)
164 /* It is necessary for proper detection AMSv2 variant 1.
165 * We should restore initial state of GPIOB_PIN(5) as it used for
166 * variant detection, but can be changed if we switch SD card. */
167 if (amsv2_variant == 1)
168 GPIOB_PIN(5) = 1 << 5;
169#endif
163 kernel_entry = (void*) loadbuffer; 170 kernel_entry = (void*) loadbuffer;
164 commit_discard_idcache(); 171 commit_discard_idcache();
165 printf("Executing"); 172 printf("Executing");