From 9eea8abce5dd8916d8b691816b1a2f365f89e13e Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 18 Aug 2009 04:24:01 +0000 Subject: LCD_DEPTH == 2, vertical packing: specify if lcd framebuffer is in iram into the model specific config file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22400 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-2bit-vert.c | 2 +- firmware/export/config-c100.h | 2 ++ firmware/export/config-h100.h | 2 ++ firmware/export/config-h120.h | 2 ++ firmware/export/config-h300.h | 2 ++ firmware/export/config-iaudio7.h | 3 +++ firmware/export/config-mrobe500.h | 2 ++ 7 files changed, 14 insertions(+), 1 deletion(-) diff --git a/firmware/drivers/lcd-2bit-vert.c b/firmware/drivers/lcd-2bit-vert.c index 7342cbd4ff..a124e3e15d 100644 --- a/firmware/drivers/lcd-2bit-vert.c +++ b/firmware/drivers/lcd-2bit-vert.c @@ -36,7 +36,7 @@ /*** globals ***/ -fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IBSS_ATTR; +fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IRAM_LCDFRAMEBUFFER; const unsigned char lcd_dibits[16] ICONST_ATTR = { 0x00, 0x03, 0x0C, 0x0F, 0x30, 0x33, 0x3C, 0x3F, diff --git a/firmware/export/config-c100.h b/firmware/export/config-c100.h index c4e5ad5673..d632deeb84 100644 --- a/firmware/export/config-c100.h +++ b/firmware/export/config-c100.h @@ -129,4 +129,6 @@ #define TCCBOOT #endif +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif /* SIMULATOR */ diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index 68b2444bc1..f06aaf8335 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -213,3 +213,5 @@ #define MIN_REMOTE_CONTRAST_SETTING 5 #define MAX_REMOTE_CONTRAST_SETTING 63 #define DEFAULT_REMOTE_CONTRAST_SETTING 42 + +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index b772a36323..da75c60ecf 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h @@ -210,3 +210,5 @@ #define MIN_REMOTE_CONTRAST_SETTING 5 #define MAX_REMOTE_CONTRAST_SETTING 63 #define DEFAULT_REMOTE_CONTRAST_SETTING 42 + +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 91f54f5479..f32732f545 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h @@ -206,3 +206,5 @@ #define MIN_REMOTE_CONTRAST_SETTING 5 #define MAX_REMOTE_CONTRAST_SETTING 63 #define DEFAULT_REMOTE_CONTRAST_SETTING 42 + +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ diff --git a/firmware/export/config-iaudio7.h b/firmware/export/config-iaudio7.h index 1e7c42258c..c8612bb2b9 100644 --- a/firmware/export/config-iaudio7.h +++ b/firmware/export/config-iaudio7.h @@ -162,4 +162,7 @@ #ifdef BOOTLOADER #define TCCBOOT #endif + +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif /* SIMULATOR */ diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h index 29591ce99a..15ce1265c8 100644 --- a/firmware/export/config-mrobe500.h +++ b/firmware/export/config-mrobe500.h @@ -249,4 +249,6 @@ #define BOOTFILE "rockbox." BOOTFILE_EXT #define BOOTDIR "/.rockbox" +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif -- cgit v1.2.3