diff options
| -rw-r--r-- | arch/arm/cpu/pxa/pxafb.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc8xx/lcd.c | 3 | ||||
| -rw-r--r-- | board/cm_t35/display.c | 2 | ||||
| -rw-r--r-- | board/mcc200/lcd.c | 3 | ||||
| -rw-r--r-- | common/lcd.c | 7 | ||||
| -rw-r--r-- | drivers/video/amba.c | 2 | ||||
| -rw-r--r-- | drivers/video/atmel_hlcdfb.c | 2 | ||||
| -rw-r--r-- | drivers/video/atmel_lcdfb.c | 2 | ||||
| -rw-r--r-- | drivers/video/exynos_fb.c | 2 | ||||
| -rw-r--r-- | drivers/video/tegra.c | 4 | ||||
| -rw-r--r-- | include/lcd.h | 6 | 
11 files changed, 8 insertions, 27 deletions
| diff --git a/arch/arm/cpu/pxa/pxafb.c b/arch/arm/cpu/pxa/pxafb.c index 987fa0682..25747b112 100644 --- a/arch/arm/cpu/pxa/pxafb.c +++ b/arch/arm/cpu/pxa/pxafb.c @@ -333,8 +333,6 @@ void lcd_ctrl_init	(void *lcdbase);  void lcd_enable	(void);  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;			/* Start of framebuffer memory	*/  void *lcd_console_address;		/* Start of console buffer	*/ diff --git a/arch/powerpc/cpu/mpc8xx/lcd.c b/arch/powerpc/cpu/mpc8xx/lcd.c index 4b88b21b3..4fd44acd1 100644 --- a/arch/powerpc/cpu/mpc8xx/lcd.c +++ b/arch/powerpc/cpu/mpc8xx/lcd.c @@ -258,9 +258,6 @@ vidinfo_t panel_info = {  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg; -  /*   * Frame buffer memory information   */ diff --git a/board/cm_t35/display.c b/board/cm_t35/display.c index 2f78bad6e..885c484cc 100644 --- a/board/cm_t35/display.c +++ b/board/cm_t35/display.c @@ -382,8 +382,6 @@ static enum display_type env_parse_displaytype(char *displaytype)  }  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;  short console_col;  short console_row; diff --git a/board/mcc200/lcd.c b/board/mcc200/lcd.c index 893f4b7cb..0f3f585d6 100644 --- a/board/mcc200/lcd.c +++ b/board/mcc200/lcd.c @@ -70,9 +70,6 @@ vidinfo_t panel_info = {  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg; -  /*   * Frame buffer memory information   */ diff --git a/common/lcd.c b/common/lcd.c index 590bbb930..b09e45fc1 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -99,6 +99,9 @@ static int lcd_getbgcolor(void);  static void lcd_setfgcolor(int color);  static void lcd_setbgcolor(int color); +static int lcd_color_fg; +static int lcd_color_bg; +  char lcd_is_enabled = 0;  static char lcd_flush_dcache;	/* 1 to flush dcache after each lcd update */ @@ -534,12 +537,10 @@ static void lcd_setbgcolor(int color)  /*----------------------------------------------------------------------*/ -#ifdef	NOT_USED_SO_FAR -static int lcd_getfgcolor(void) +int lcd_getfgcolor(void)  {  	return lcd_color_fg;  } -#endif	/* NOT_USED_SO_FAR */  /*----------------------------------------------------------------------*/ diff --git a/drivers/video/amba.c b/drivers/video/amba.c index ffa1c399e..b4fb47da4 100644 --- a/drivers/video/amba.c +++ b/drivers/video/amba.c @@ -29,8 +29,6 @@  /* These variables are required by lcd.c -- although it sets them by itself */  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;  void *lcd_console_address;  short console_col; diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index b10ca4b67..e74eb65f3 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -30,8 +30,6 @@  #include <atmel_hlcdc.h>  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;				/* Start of framebuffer memory	*/  void *lcd_console_address;		/* Start of console buffer	*/ diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index c02ffd803..d96f175c5 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -30,8 +30,6 @@  #include <atmel_lcdc.h>  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;				/* Start of framebuffer memory	*/  void *lcd_console_address;		/* Start of console buffer	*/ diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c index ee0ed06d6..4536c5c0e 100644 --- a/drivers/video/exynos_fb.c +++ b/drivers/video/exynos_fb.c @@ -34,8 +34,6 @@  #include "exynos_fb.h"  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;  void *lcd_console_address; diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index afcb00881..00d855356 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -61,8 +61,6 @@ enum {  };  int lcd_line_length; -int lcd_color_fg; -int lcd_color_bg;  void *lcd_base;			/* Start of framebuffer memory	*/  void *lcd_console_address;	/* Start of console buffer	*/ @@ -108,7 +106,7 @@ void lcd_toggle_cursor(void)  		for (i = 0; i < lcd_cursor_width; ++i) {  			color = *d; -			color ^= lcd_color_fg; +			color ^= lcd_getfgcolor();  			*d = color;  			++d;  		} diff --git a/include/lcd.h b/include/lcd.h index 4ac4ddd1e..e8c6c96f5 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -32,13 +32,11 @@  extern char lcd_is_enabled;  extern int lcd_line_length; -extern int lcd_color_fg; -extern int lcd_color_bg;  /*   * Frame buffer memory information   */ -extern void *lcd_base;		/* Start of framebuffer memory	*/ +extern void *lcd_base;			/* Start of framebuffer memory	*/  extern void *lcd_console_address;	/* Start of console buffer	*/  extern short console_col; @@ -54,6 +52,8 @@ extern void lcd_setcolreg (ushort regno,  				ushort red, ushort green, ushort blue);  extern void lcd_initcolregs (void); +extern int lcd_getfgcolor(void); +  /* gunzip_bmp used if CONFIG_VIDEO_BMP_GZIP */  extern struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp);  extern int bmp_display(ulong addr, int x, int y); |