Sansa Connect: Clear recoverzap parameter

Clearing recoverzap parameter exists the Recovery Mode. This makes it
possible to run Rockbox on Sansa Connect without relying on original
Linux firmware.

Enable write-through cache on flash memory as write-back complicates
handling without any real benefits. The flash memory accepts commands
as series of writes at predefined addresses, so it is important that
the cache does not interfere with the writes.

Change-Id: I219f962f20953d84df43012cf16bbb16d673add8
This commit is contained in:
Tomasz Moń 2021-05-20 21:16:46 +02:00
parent 5388607968
commit 00b4626790
3 changed files with 149 additions and 9 deletions

View file

@ -201,14 +201,14 @@ _start:
mov r3, #CACHE_NONE
bl map_section
/* Enable caching for FLASH */
/* Enable write-through caching for FLASH */
ldr r0, =_flash_start
ldr r1, =_flash_start
ldr r2, =_flash_sizem
mov r3, #CACHE_ALL
mov r3, #(CACHE_ALL & ~BUFFERED)
bl map_section
/* Enable caching for RAM */
/* Enable write-back caching for RAM */
ldr r0, =_sdram_start
ldr r1, =_sdram_start
ldr r2, =_sdram_sizem