FS#10048 : enable MMU and data cache on Sansa AMS to give a major speed up

- cache IRAM and DRAM
- map IRAM just next to DRAM to remove the need for -mlong-calls and reduce binsize
- tweak delays in Fuze button code
- tweak delays in Clip button code (down button sometimes doesn't respond anyway : an alternate driver is being worked on)

Before reporting any problem, please check your filesystem or format your player from the OF

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21228 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2009-06-08 23:05:33 +00:00
parent 20a78a36f3
commit f504153857
13 changed files with 84 additions and 54 deletions

View file

@ -46,8 +46,9 @@ int button_read_device(void)
/* This is a keypad using C4-C6 as columns and B0-B2 as rows */
GPIOC_PIN(4) = (1<<4);
asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */
/* C4B0 is unused */
(void)GPIOB_PIN(0); /* C4B0 is unused */
if (GPIOB_PIN(1))
result |= BUTTON_VOL_UP;
@ -58,6 +59,7 @@ int button_read_device(void)
GPIOC_PIN(4) = 0x00;
GPIOC_PIN(5) = (1<<5);
asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */
if (GPIOB_PIN(0))
result |= BUTTON_LEFT;
@ -71,6 +73,7 @@ int button_read_device(void)
GPIOC_PIN(5) = 0x00;
GPIOC_PIN(6) = (1<<6);
asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */
if (GPIOB_PIN(0))
result |= BUTTON_DOWN;