Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv13442
Modified Files:
lcd.h
Log Message:
- bugfixes in lcd configuration for pt system 3 platform
- lcd_controller_enable() separated to two functions
Index: lcd.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/lcd.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- lcd.h 2001/10/09 19:24:54 1.3
+++ lcd.h 2001/10/15 15:06:06 1.4
@@ -35,14 +35,14 @@
# define LCD_BPP 8
# define LCD_COLS 640
# define LCD_ROWS 480
-# define LCD_VIDEORAM_OFFSET ((LCD_BPP*LCD_ROWS*LCD_COLS)>>1)
+# define LCD_VIDEORAM_SIZE ((LCD_BPP*LCD_ROWS*LCD_COLS)>>3)
# define LCD_PALETTE_ENTRIES 256
-# define LCD_PALETTE_SIZE (LCD_PALETTE_ENTRIES * 8)
+# define LCD_PALETTE_SIZE (LCD_PALETTE_ENTRIES * 2)
# define LCD_RAM_BASE 0xd0000000
# define LCD_PALETTE_DMA_ADR (LCD_RAM_BASE + 0x0)
# define LCD_VIDEORAM_START (LCD_RAM_BASE + LCD_PALETTE_SIZE)
-# define LCD_VIDEORAM_END (LCD_VIDEORAM_START + 2*LCD_VIDEORAM_OFFSET)
-# define LCD_VIDEORAM_DMA_ADR (LCD_PALETTE_DMA_ADR + LCD_PALETTE_SIZE + LCD_VIDEORAM_OFFSET)
+# define LCD_VIDEORAM_END (LCD_VIDEORAM_START + LCD_VIDEORAM_SIZE)
+# define LCD_VIDEORAM_DMA_ADR (LCD_PALETTE_DMA_ADR + LCD_PALETTE_SIZE + (LCD_VIDEORAM_SIZE>>1))
#else
# error "Cowardly refusing to break your LCD, please supply correct LCD parameters."
@@ -55,6 +55,7 @@
int lcd_gpio_setup( void );
+int lcd_controller_setup( void );
int lcd_controller_enable( void );
int lcd_controller_disable( void );
|