diff options
Diffstat (limited to 'drivers')
| -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 | 8 | ||||
| -rw-r--r-- | drivers/video/mpc8xx_lcd.c | 12 | ||||
| -rw-r--r-- | drivers/video/pxa_lcd.c | 2 | ||||
| -rw-r--r-- | drivers/video/tegra.c | 6 | 
6 files changed, 6 insertions, 26 deletions
| diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 32626cfed..fc9589774 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -29,8 +29,6 @@  #include <lcd.h>  #include <atmel_hlcdc.h> -void *lcd_base;				/* Start of framebuffer memory	*/ -  /* configurable parameters */  #define ATMEL_LCDC_CVAL_DEFAULT		0xc8  #define ATMEL_LCDC_DMA_BURST_LEN	8 diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 370d9ca13..2afeab2ff 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -29,8 +29,6 @@  #include <lcd.h>  #include <atmel_lcdc.h> -void *lcd_base;				/* Start of framebuffer memory	*/ -  /* configurable parameters */  #define ATMEL_LCDC_CVAL_DEFAULT		0xc8  #define ATMEL_LCDC_DMA_BURST_LEN	8 diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c index 82b19e521..c0f1830dc 100644 --- a/drivers/video/exynos_fb.c +++ b/drivers/video/exynos_fb.c @@ -33,7 +33,7 @@  #include "exynos_fb.h" -void *lcd_base; +DECLARE_GLOBAL_DATA_PTR;  static unsigned int panel_width, panel_height; @@ -44,11 +44,9 @@ static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)  	fb_size = vid->vl_row * vid->vl_col * (NBITS(vid->vl_bpix) >> 3); -	lcd_base = lcdbase; -  	palette_size = NBITS(vid->vl_bpix) == 8 ? 256 : 16; -	exynos_fimd_lcd_init_mem((unsigned long)lcd_base, +	exynos_fimd_lcd_init_mem((unsigned long)lcdbase,  			(unsigned long)fb_size, palette_size);  } @@ -140,7 +138,7 @@ void lcd_ctrl_init(void *lcdbase)  void lcd_enable(void)  {  	if (panel_info.logo_on) { -		memset(lcd_base, 0, panel_width * panel_height * +		memset((void *) gd->fb_base, 0, panel_width * panel_height *  				(NBITS(panel_info.vl_bpix) >> 3));  #ifdef CONFIG_CMD_BMP  		draw_logo(); diff --git a/drivers/video/mpc8xx_lcd.c b/drivers/video/mpc8xx_lcd.c index 26ad432b2..1aa196731 100644 --- a/drivers/video/mpc8xx_lcd.c +++ b/drivers/video/mpc8xx_lcd.c @@ -255,14 +255,6 @@ vidinfo_t panel_info = {  #endif  /*----------------------------------------------------------------------*/ - -/* - * Frame buffer memory information - */ -void *lcd_base;			/* Start of framebuffer memory	*/ - -/************************************************************************/ -  void lcd_ctrl_init (void *lcdbase);  void lcd_enable (void);  #if LCD_BPP == LCD_COLOR8 @@ -392,8 +384,8 @@ void lcd_ctrl_init (void *lcdbase)  	 * BIG NOTE:  This has to be modified to load A and B depending  	 * upon the split mode of the LCD.  	 */ -	lcdp->lcd_lcfaa = (ulong)lcd_base; -	lcdp->lcd_lcfba = (ulong)lcd_base; +	lcdp->lcd_lcfaa = (ulong)lcdbase; +	lcdp->lcd_lcfba = (ulong)lcdbase;  	/* MORE HACKS...This must be updated according to 823 manual  	 * for different panels. diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 57243ce61..fef49c1fe 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -332,8 +332,6 @@ void lcd_getcolreg (ushort regno, ushort *red, ushort *green, ushort *blue);  void lcd_ctrl_init	(void *lcdbase);  void lcd_enable	(void); -void *lcd_base;			/* Start of framebuffer memory	*/ -  static int pxafb_init_mem (void *lcdbase, vidinfo_t *vid);  static void pxafb_setup_gpio (vidinfo_t *vid);  static void pxafb_enable_controller (vidinfo_t *vid); diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 3d684ce07..8d533955a 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -60,8 +60,6 @@ enum {  	LCD_MAX_LOG2_BPP	= 4,		/* 2^4 = 16 bpp */  }; -void *lcd_base;			/* Start of framebuffer memory	*/ -  vidinfo_t panel_info = {  	/* Insert a value here so that we don't end up in the BSS */  	.vl_col = -1, @@ -90,8 +88,6 @@ void lcd_ctrl_init(void *lcdbase)  	assert(disp_config); -	lcd_base = (void *)disp_config->frame_buffer; -  	/* Make sure that we can acommodate the selected LCD */  	assert(disp_config->width <= LCD_MAX_WIDTH);  	assert(disp_config->height <= LCD_MAX_HEIGHT); @@ -112,7 +108,7 @@ void lcd_ctrl_init(void *lcdbase)  	/* Enable flushing after LCD writes if requested */  	lcd_set_flush_dcache(config.cache_type & FDT_LCD_CACHE_FLUSH); -	debug("LCD frame buffer at %p\n", lcd_base); +	debug("LCD frame buffer at %08X\n", disp_config->frame_buffer);  }  ulong calc_fbsize(void) |