summaryrefslogtreecommitdiff
path: root/drivers/video/tegra.c
diff options
context:
space:
mode:
authorJeroen Hofstee <[email protected]>2013-01-22 10:44:12 +0000
committerAnatolij Gustschin <[email protected]>2013-03-21 10:16:53 +0100
commit00a0ca5986c13d24ebbc5000cc1b7a1cdac0ba4b (patch)
tree88ba8d340866a41eb7142b39fa0121975e12b0f1 /drivers/video/tegra.c
parentf1d205a19cc89ae5a840cd45115201847dd5b73a (diff)
common/lcd.c: remove global lcd_base
lcd_base is available as gd->fb_base as well, there is no need to keep a seperate copy. For completeness the ack of Bo Shen is for the atmel part. Cc: Alessandro Rubini <[email protected]> Cc: Anatolij Gustschin <[email protected]> Cc: Bo Shen <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Minkyu Kang <[email protected]> Cc: Nikita Kiryanov <[email protected]> Cc: Simon Glass <[email protected]> Cc: Stelian Pop <[email protected]> Cc: Tom Warren <[email protected]> Acked-by: Bo Shen <[email protected]> Signed-off-by: Jeroen Hofstee <[email protected]> [agust: also fix cm_t35 board while rebasing] Signed-off-by: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'drivers/video/tegra.c')
-rw-r--r--drivers/video/tegra.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index 3d684ce076d..8d533955a50 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)