mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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 <rubini@unipv.it> Cc: Anatolij Gustschin <agust@denx.de> Cc: Bo Shen <voice.shen@atmel.com> Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Simon Glass <sjg@chromium.org> Cc: Stelian Pop <stelian@popies.net> Cc: Tom Warren <twarren@nvidia.com> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> [agust: also fix cm_t35 board while rebasing] Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
committed by
Anatolij Gustschin
parent
f1d205a19c
commit
00a0ca5986
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user