···160160#endif
161161 }
162162163163+#if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP)
164164+ /* It is necessary for proper detection AMSv2 variant 1.
165165+ * We should restore initial state of GPIOB_PIN(5) as it used for
166166+ * variant detection, but can be changed if we switch SD card. */
167167+ if (amsv2_variant == 1)
168168+ GPIOB_PIN(5) = 1 << 5;
169169+#endif
163170 kernel_entry = (void*) loadbuffer;
164171 commit_discard_idcache();
165172 printf("Executing");
+7
firmware/rolo.c
···275275 /* Set CVDD1 power supply to default*/
276276 ascodec_write_pmu(0x17, 1, 0);
277277#endif
278278+#if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP)
279279+ /* It is necessary for proper detection AMSv2 variant 1.
280280+ * We should restore initial state of GPIOB_PIN(5) as it used for
281281+ * variant detection, but can be changed if we switch SD card. */
282282+ if (amsv2_variant == 1)
283283+ GPIOB_PIN(5) = 1 << 5;
284284+#endif
278285279286#if CONFIG_CPU != IMX31L /* We're not finished yet */
280287#ifdef CPU_ARM