From ee9ece1acf4e48aec2ce058c2739c8d6ba08e9a5 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 18 Aug 2009 04:23:57 +0000 Subject: LCD_DEPTH == 2, horizontal packing: specify if lcd framebuffer is in iram into the model specific config file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22399 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-2bit-horz.c | 2 +- firmware/export/config-ipod1g2g.h | 2 ++ firmware/export/config-ipod3g.h | 2 ++ firmware/export/config-ipod4g.h | 2 ++ firmware/export/config-ipodmini.h | 2 ++ firmware/export/config-ipodmini2g.h | 2 ++ 6 files changed, 11 insertions(+), 1 deletion(-) diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c index bb540a9ae1..f9a53ee20c 100644 --- a/firmware/drivers/lcd-2bit-horz.c +++ b/firmware/drivers/lcd-2bit-horz.c @@ -39,7 +39,7 @@ /*** globals ***/ -unsigned char lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IBSS_ATTR; +unsigned char lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH] IRAM_LCDFRAMEBUFFER; static const unsigned char pixmask[4] ICONST_ATTR = { 0xC0, 0x30, 0x0C, 0x03 diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h index e642dfd930..d26d9787cc 100644 --- a/firmware/export/config-ipod1g2g.h +++ b/firmware/export/config-ipod1g2g.h @@ -169,4 +169,6 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif /* SIMULATOR */ diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index c13070a805..21c0b89207 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h @@ -173,4 +173,6 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif /* SIMULATOR */ diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 599c4c254e..6c08e7533e 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h @@ -202,4 +202,6 @@ #define IPOD_ACCESSORY_PROTOCOL #define HAVE_SERIAL +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h index d4fdc2eb2a..1ec377e646 100644 --- a/firmware/export/config-ipodmini.h +++ b/firmware/export/config-ipodmini.h @@ -192,4 +192,6 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index c6a0cfa368..af83f5c31a 100644 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h @@ -203,4 +203,6 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT +#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ + #endif -- cgit v1.2.3