I.MX6 U-boot backlight setting
Posted zengjf
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了I.MX6 U-boot backlight setting相关的知识,希望对你有一定的参考价值。
/********************************************************************* * I.MX6 U-boot backlight setting * 说明: * 本文主要记录I.MX6 U-boot中如何打开、关闭背光设置。 * * 2016-3-7 深圳 南山平山村 曾剑锋 ********************************************************************/ bootable/bootloader/uboot-imx/board/freescale/mx6q_sabresd/mx6q_sabresd.c ...... #ifdef CONFIG_LCD void lcd_enable(void) { ...... /* * Set LVDS panel CABC_EN0 to low to disable * CABC function. This function will turn backlight * automatically according to display content, so * simply disable it to get rid of annoying unstable * backlight phenomena. * * • GPIO direction register (GPIO_GDIR) * • Data register (GPIO_DR) * * 2015-10-8 zengjf modify fot lvds backlight */ reg = readl(GPIO6_BASE_ADDR + GPIO_GDIR); reg |= (1 << 15); writel(reg, GPIO6_BASE_ADDR + GPIO_GDIR); reg = readl(GPIO6_BASE_ADDR + GPIO_DR); //reg &= ~(1 << 15); reg |= (1 << 15); writel(reg, GPIO6_BASE_ADDR + GPIO_DR); /* * Set LVDS panel CABC_EN1 to low to disable * CABC function. */ reg = readl(GPIO6_BASE_ADDR + GPIO_GDIR); reg |= (1 << 16); writel(reg, GPIO6_BASE_ADDR + GPIO_GDIR); reg = readl(GPIO6_BASE_ADDR + GPIO_DR); //reg &= ~(1 << 16); reg |= (1 << 16); writel(reg, GPIO6_BASE_ADDR + GPIO_DR); ...... } ......
以上是关于I.MX6 U-boot backlight setting的主要内容,如果未能解决你的问题,请参考以下文章
I.MX6 u-boot 2009 lvds hdmi lcd 补丁
正点原子I.MX6U-MINI移植篇u-boot移植过程详解