From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 21 Mar 2016 03:14:30 +0100 Subject: [U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette In-Reply-To: References: <1458524230-10827-1-git-send-email-anarsoul@gmail.com> <1458524230-10827-3-git-send-email-anarsoul@gmail.com> <56EF52D4.70706@denx.de> Message-ID: <56EF5906.40903@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/21/2016 03:10 AM, Vasily Khoruzhick wrote: > On Sun, Mar 20, 2016 at 6:48 PM, Marek Vasut wrote: >> On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: >>> Signed-off-by: Vasily Khoruzhick >> >> What happens if you display picture ? Will the colors be complete mess ? > > Yes, inverted. Can be fixed by inverting colors in BMP. I didn't find > another way to get white on black > console in u-boot. CONFIG_SYS_WHITE_ON_BLACK might help. >>> --- >>> drivers/video/pxa_lcd.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c >>> index 1809fc6..ba4f897 100644 >>> --- a/drivers/video/pxa_lcd.c >>> +++ b/drivers/video/pxa_lcd.c >>> @@ -166,7 +166,7 @@ vidinfo_t panel_info = { >>> #ifdef CONFIG_LMS283GF05 >>> >>> # define LCD_BPP LCD_COLOR8 >>> -/*# define LCD_INVERT_COLORS*/ >>> +# define LCD_INVERT_COLORS >>> >>> /* you have to set lccr0 and lccr3 (including pcd) */ >>> # define REG_LCCR0 0x043008f8 >>> >> >> >> -- >> Best regards, >> Marek Vasut -- Best regards, Marek Vasut