From 464e6a140598743ade31105fe78c22b8480a4761 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 11 Apr 2009 01:45:11 +0000 Subject: [PATCH] Fuze & e200v2: Put lcd framebuffer into iram, which saves 77k normal ram and gives 2.6%/7.6% (unboosted/boosted) lcd update speed up git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20682 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SOURCES | 1 + apps/plugins/test_fps.c | 9 ++++++++- firmware/export/config-e200v2.h | 3 ++- firmware/export/config-fuze.h | 4 +++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index d9ed9ac24f..9317ab6657 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -1,4 +1,5 @@ /* plugins common to all models */ +test_fps.c chessclock.c credits.c cube.c diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c index c688a54de0..f7027ffd8d 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c @@ -349,12 +349,19 @@ enum plugin_status plugin_start(const void* parameter) #endif backlight_force_on(); /* backlight control in lib/helper.c */ - log_text("Main LCD Update"); + rb->cpu_boost(false); + log_text("Main LCD Update unboosted"); time_main_update(); + rb->cpu_boost(true); + log_text("Main LCD Update boosted"); + time_main_update(); + rb->cpu_boost(false); +/* #ifdef HAVE_LCD_COLOR log_text("Main LCD YUV"); time_main_yuv(); #endif +*/ #if LCD_DEPTH < 4 log_text("Greyscale library"); time_greyscale(); diff --git a/firmware/export/config-e200v2.h b/firmware/export/config-e200v2.h index 7f993be512..dbd3b0c0ee 100644 --- a/firmware/export/config-e200v2.h +++ b/firmware/export/config-e200v2.h @@ -66,7 +66,8 @@ /* define this if you can invert the colours on your LCD */ #define HAVE_LCD_INVERT -/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ +/* put the lcd frame buffer in IRAM */ +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR #define CONFIG_KEYPAD SANSA_E200_PAD diff --git a/firmware/export/config-fuze.h b/firmware/export/config-fuze.h index a5ccf63180..51b2180217 100644 --- a/firmware/export/config-fuze.h +++ b/firmware/export/config-fuze.h @@ -70,7 +70,9 @@ #define HAVE_SW_TONE_CONTROLS #endif /* !BOOTLOADER */ -/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ + +/* put the lcd frame buffer in IRAM */ +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR #define CONFIG_KEYPAD SANSA_FUZE_PAD