Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv10621/include/blob
Modified Files:
arch.h lcd.h linux.h
Log Message:
- FGAG miniprint port by Urs Kaufmann
Index: arch.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/arch.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- arch.h 23 Apr 2002 12:36:19 -0000 1.8
+++ arch.h 27 May 2002 10:01:48 -0000 1.9
@@ -106,6 +106,8 @@
# include <blob/arch/jornada720.h>
#elif defined LART
# include <blob/arch/lart.h>
+#elif defined MINIPRINT
+# include <blob/arch/miniprint.h>
#elif defined NESA
# include <blob/arch/nesa.h>
#elif defined PLEB
Index: lcd.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/lcd.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- lcd.h 11 Feb 2002 16:54:23 -0000 1.5
+++ lcd.h 27 May 2002 10:01:48 -0000 1.6
@@ -5,7 +5,8 @@
*
* Generic lcd framework
*
- * Copyright (C) 2001 Stefan Eletzhofer <ste...@ww...>
+ * Copyright (C) 2001,2002 Stefan Eletzhofer <ste...@ww...>
+ * Copyright (C) 2002 Urs Kaufmann <u_k...@bl...>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -44,6 +45,49 @@
# 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))
+#elif MINIPRINT
+# define LCD_LCCR0 0x00000038
+/* LEN = 0 not enabled
+ CMS = 0 Color Mode
+ SDS = 0 Single Panel
+ LDM = 1 Done IRQ Disable
+ BAM = 1 Base Addr update IRQ disable
+ ERM = 1 Disable Error IRQ
+ PAS = 0 Passive Mode
+ BLE = 0 Little Endian
+ DPD = 0 for monochrome only
+ VSC = 0 Vert Slant
+ PDD = 0 No DMA Delay */
+# define LCD_LCCR1 0x01010530
+/* PPL = 304 (320-16=304)
+ HSW = 1 H-Sync
+ ELW = 1 EndOfLine Sync
+ BLW = 1 BeginOfLine Sync */
+# define LCD_LCCR2 0x000000EF
+/* LPP = 239 Lines
+ VSW = 0 Xtra Clock
+ EFW = 0 Xtra Clock
+ BFW = 0 Xtra Clock */
+# define LCD_LCCR3 0x0000FF1E
+/* PCD = 0x1E 75Hz Refresh
+ ACB = 0
+ API = 0
+ VSP = 0
+ HSP = 0
+ PCP = 0
+ OEP = 0 */
+# define LCD_BPP 16
+# define LCD_COLS 320
+# define LCD_ROWS 240
+# define LCD_VIDEORAM_SIZE ((LCD_BPP*LCD_ROWS*LCD_COLS)>>3)
+# define LCD_PALETTE_ENTRIES 256
+# define LCD_PALETTE_SIZE (LCD_PALETTE_ENTRIES * 2)
+# define LCD_RAM_BASE 0xc0900000
+# 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 + LCD_VIDEORAM_SIZE)
+# define LCD_VIDEORAM_DMA_ADR (LCD_PALETTE_DMA_ADR + LCD_PALETTE_SIZE + (LCD_VIDEORAM_SIZE>>1))
+# define LCD_REVERSE
#else
# error "Cowardly refusing to break your LCD, please supply correct LCD parameters."
#endif
@@ -61,6 +105,9 @@
int lcd_backlight_on( void );
int lcd_backlight_off( void );
+
+int lcd_fill(int color);
+int lcd_set_pixel(unsigned int x, unsigned int y, unsigned int color);
int lcd_palette_setup( void );
Index: linux.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/linux.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- linux.h 23 Apr 2002 12:36:19 -0000 1.8
+++ linux.h 27 May 2002 10:01:48 -0000 1.9
@@ -52,6 +52,8 @@
# define ARCH_NUMBER (48)
#elif defined LART
# define ARCH_NUMBER (27)
+#elif defined MINIPRINT
+# define ARCH_NUMBER (173)
#elif defined NESA
# define ARCH_NUMBER (75)
#elif defined PLEB
|