diff options
| author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-04-22 12:17:35 +0000 |
|---|---|---|
| committer | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-04-22 20:43:45 +0000 |
| commit | 7cb1e5ae8b8014edca64f1fd187f4e1e6f3e99e3 (patch) | |
| tree | 813600c507d997521fd54dd740921cbac4026b35 /bootloader | |
| parent | 79ca6d4e3cf6fcd2f05cca0a703200394920741f (diff) | |
| download | rockbox-7cb1e5ae8b8014edca64f1fd187f4e1e6f3e99e3.zip rockbox-7cb1e5ae8b8014edca64f1fd187f4e1e6f3e99e3.tar.gz rockbox-7cb1e5ae8b8014edca64f1fd187f4e1e6f3e99e3.tar.bz2 rockbox-7cb1e5ae8b8014edca64f1fd187f4e1e6f3e99e3.tar.xz | |
Fix AMSv2 variant 1 detection if rockbox loaded from SD card
Change-Id: Ie7c9c06170601e109f8d3de9686773c38a6e224a
Diffstat (limited to 'bootloader')
| -rw-r--r-- | bootloader/sansa_as3525.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index fb3ba98..3938f81 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -160,6 +160,13 @@ void main(void) #endif } +#if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP) + /* It is necessary for proper detection AMSv2 variant 1. + * We should restore initial state of GPIOB_PIN(5) as it used for + * variant detection, but can be changed if we switch SD card. */ + if (amsv2_variant == 1) + GPIOB_PIN(5) = 1 << 5; +#endif kernel_entry = (void*) loadbuffer; commit_discard_idcache(); printf("Executing"); |