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
@@ -381,8 +381,6 @@ static enum display_type env_parse_displaytype(char *displaytype)
|
||||
return NONE;
|
||||
}
|
||||
|
||||
void *lcd_base;
|
||||
|
||||
void lcd_ctrl_init(void *lcdbase)
|
||||
{
|
||||
struct prcm *prcm = (struct prcm *)PRCM_BASE;
|
||||
|
||||
@@ -68,10 +68,6 @@ vidinfo_t panel_info = {
|
||||
LCD_WIDTH, LCD_HEIGHT, LCD_BPP
|
||||
};
|
||||
|
||||
/*
|
||||
* Frame buffer memory information
|
||||
*/
|
||||
void *lcd_base; /* Start of framebuffer memory */
|
||||
|
||||
/*
|
||||
* The device we use to communicate with PSoC
|
||||
@@ -147,12 +143,12 @@ void lcd_enable (void)
|
||||
|
||||
#if !defined(SWAPPED_LCD)
|
||||
for (i=0; i<fb_size; i++) {
|
||||
serial_putc_raw_dev (PSOC_PSC, ((char *)lcd_base)[i]);
|
||||
serial_putc_raw_dev(PSOC_PSC, ((char *)gd->fb_base)[i]);
|
||||
}
|
||||
#else
|
||||
{
|
||||
int x, y, pwidth;
|
||||
char *p = (char *)lcd_base;
|
||||
char *p = (char *)gd->fb_base;
|
||||
|
||||
pwidth = ((panel_info.vl_col+7) >> 3);
|
||||
for (y=0; y<panel_info.vl_row; y++) {
|
||||
|
||||
Reference in New Issue
Block a user