diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-12-15 23:07:11 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-12-15 23:07:11 +0000 |
commit | 62facd1ff233a4734e4bc3d616ac22c5c56f926c (patch) | |
tree | 95d22b472e7ec548fbb0c239de7bd4e657437b88 /firmware/target/arm/s3c2440/gigabeat-fx | |
parent | f53b8ff959ee4443593569440403229108e26b3d (diff) | |
download | rockbox-62facd1ff233a4734e4bc3d616ac22c5c56f926c.tar.gz rockbox-62facd1ff233a4734e4bc3d616ac22c5c56f926c.zip |
Collect some of the memory frame LCD C code.
For this commit: Sansa e200v1, Gigabeat F, Gigabeat S and Mini2440 are
changed over. Quite a number of other targets probably can be as well.
General LCD code is moved out of the target drivers into
drivers/lcd-memframe.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31311 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/lcd-target.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-target.h b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-target.h index c136a2052d..d5656f6d45 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-target.h +++ b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-target.h | |||
@@ -18,8 +18,10 @@ | |||
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #ifndef LCD_TARGET_H | ||
22 | #define LCD_TARGET_H | ||
21 | 23 | ||
22 | extern void lcd_enable(bool state); | 24 | #define LCD_FRAMEBUF_ADDR(col, row) ((fb_data *)FRAME + (row)*LCD_WIDTH + (col)) |
23 | 25 | ||
24 | /* Config values for LCDCON1 */ | 26 | /* Config values for LCDCON1 */ |
25 | /* ENVID = 0, BPPMODE = 16 bpp, PNRMODE = TFT, MMODE = Each Frame, CLKVAL = 8 */ | 27 | /* ENVID = 0, BPPMODE = 16 bpp, PNRMODE = TFT, MMODE = Each Frame, CLKVAL = 8 */ |
@@ -43,3 +45,5 @@ extern void lcd_enable(bool state); | |||
43 | /* Config values for LCDCON4 */ | 45 | /* Config values for LCDCON4 */ |
44 | /* HSPW = 7 */ | 46 | /* HSPW = 7 */ |
45 | #define LCD_HSYNC_LEN 7 | 47 | #define LCD_HSYNC_LEN 7 |
48 | |||
49 | #endif /* LCD_TARGET_H */ | ||