X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fvideo%2Fpxa_lcd.c;h=1809fc6f1e2f09039c8e296f5b315c8eaf6ecf05;hb=ca562b630e97c1c2fe710aab3d6f98cd47adce96;hp=5e4c6853cd59c17901866a5d3ede11b24ff5ba7b;hpb=d6639d10dbfa42dc888f8917012550b632a88959;p=oweals%2Fu-boot.git diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 5e4c6853cd..1809fc6f1e 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -4,38 +4,20 @@ * (C) Copyright 2001-2002 * Wolfgang Denk, DENX Software Engineering -- wd@denx.de * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ /************************************************************************/ /* ** HEADER FILES */ /************************************************************************/ -#include #include -#include -#include -#include -#include -#include #include #include +#include +#include +#include +#include /* #define DEBUG */ @@ -193,6 +175,7 @@ vidinfo_t panel_info = { vidinfo_t panel_info = { .vl_col = 240, .vl_row = 320, + .vl_rot = 3, .vl_width = 240, .vl_height = 320, .vl_clkp = CONFIG_SYS_HIGH, @@ -358,6 +341,12 @@ static int pxafb_init (vidinfo_t *vid); /* --------------- PXA chipset specific functions ------------------- */ /************************************************************************/ +ushort *configuration_get_cmap(void) +{ + struct pxafb_info *fbi = &panel_info.pxa; + return (ushort *)fbi->palette; +} + void lcd_ctrl_init (void *lcdbase) { pxafb_init_mem(lcdbase, &panel_info); @@ -394,21 +383,6 @@ lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue) } #endif /* LCD_COLOR8 */ -/*----------------------------------------------------------------------*/ -#if LCD_BPP == LCD_MONOCHROME -void lcd_initcolregs (void) -{ - struct pxafb_info *fbi = &panel_info.pxa; - cmap = (ushort *)fbi->palette; - ushort regno; - - for (regno = 0; regno < 16; regno++) { - cmap[regno * 2] = 0; - cmap[(regno * 2) + 1] = regno & 0x0f; - } -} -#endif /* LCD_MONOCHROME */ - /*----------------------------------------------------------------------*/ __weak void lcd_enable(void) {