X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fvideo%2Fpxa_lcd.c;h=92d6e3d4676ba3f0353fab5cb70f9f6285170183;hb=cf8dcc5d02c32173b74bf1b7600dd2b990a90b13;hp=8ed52c0202be02e253a1ef4356ad1b96dddfb6c1;hpb=5b9c79a81db80c3f9e50c77477957cd803429af8;p=oweals%2Fu-boot.git diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 8ed52c0202..92d6e3d467 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -1,25 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * PXA LCD Controller * * (C) Copyright 2001-2002 * Wolfgang Denk, DENX Software Engineering -- wd@denx.de - * - * SPDX-License-Identifier: GPL-2.0+ */ /************************************************************************/ /* ** HEADER FILES */ /************************************************************************/ -#include #include -#include -#include -#include -#include -#include #include #include +#include +#include +#include +#include /* #define DEBUG */ @@ -177,6 +174,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, @@ -342,6 +340,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); @@ -378,21 +382,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) {