diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-12 22:07:57 +0200 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-04-12 22:07:57 +0200 | 
| commit | 18122019972ca639ee3b581257e3a63ff7c8efeb (patch) | |
| tree | 52f7223e7c63f43322f3eee4722743e12190a19f /drivers/video/tegra.c | |
| parent | 90639feaa0d66a204f9d03a325ab14e2f97f6cbb (diff) | |
| parent | 785881f775252940185e10fbb2d5299c9ffa6bce (diff) | |
| download | olio-uboot-2014.01-18122019972ca639ee3b581257e3a63ff7c8efeb.tar.xz olio-uboot-2014.01-18122019972ca639ee3b581257e3a63ff7c8efeb.zip | |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts:
	drivers/video/exynos_fb.c
Diffstat (limited to 'drivers/video/tegra.c')
| -rw-r--r-- | drivers/video/tegra.c | 66 | 
1 files changed, 1 insertions, 65 deletions
| diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index afcb00881..8d533955a 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -60,77 +60,15 @@ enum {  	LCD_MAX_LOG2_BPP	= 4,		/* 2^4 = 16 bpp */  }; -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	*/ - -short console_col; -short console_row; -  vidinfo_t panel_info = {  	/* Insert a value here so that we don't end up in the BSS */  	.vl_col = -1,  }; -char lcd_cursor_enabled; - -ushort lcd_cursor_width; -ushort lcd_cursor_height; -  #ifndef CONFIG_OF_CONTROL  #error "You must enable CONFIG_OF_CONTROL to get Tegra LCD support"  #endif -void lcd_cursor_size(ushort width, ushort height) -{ -	lcd_cursor_width = width; -	lcd_cursor_height = height; -} - -void lcd_toggle_cursor(void) -{ -	ushort x, y; -	uchar *dest; -	ushort row; - -	x = console_col * lcd_cursor_width; -	y = console_row * lcd_cursor_height; -	dest = (uchar *)(lcd_base + y * lcd_line_length + x * (1 << LCD_BPP) / -			8); - -	for (row = 0; row < lcd_cursor_height; ++row, dest += lcd_line_length) { -		ushort *d = (ushort *)dest; -		ushort color; -		int i; - -		for (i = 0; i < lcd_cursor_width; ++i) { -			color = *d; -			color ^= lcd_color_fg; -			*d = color; -			++d; -		} -	} -} - -void lcd_cursor_on(void) -{ -	lcd_cursor_enabled = 1; -	lcd_toggle_cursor(); -} -void lcd_cursor_off(void) -{ -	lcd_cursor_enabled = 0; -	lcd_toggle_cursor(); -} - -char lcd_is_cursor_enabled(void) -{ -	return lcd_cursor_enabled; -} -  static void update_panel_size(struct fdt_disp_config *config)  {  	panel_info.vl_col = config->width; @@ -150,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); @@ -172,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) |