i.mx6 U-boot Backlight Setting

Source: Internet
Author: User

/********************************************************************* * i.mx6 u-boot backlight Setting * said NOTE: * This document mainly records how to turn the backlight setting on and off in i.mx6 U-boot. * 2016-3-7 Shenzhen Nanshan Ping Shan village Zengjianfeng ************************************************************* *******/Bootable/bootloader/uboot-imx/board/freescale/mx6q_sabresd/mx6q_sabresd.c. #ifdef CONFIG_LCDvoidLcd_enable (void)    {        ......        /** Set LVDS panel cabc_en0 to disable * CABC function. This function would turn backlight * automatically according to the 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 ZENGJ F Modify fot LVDS backlight*/Reg= Readl (gpio6_base_addr +Gpio_gdir); Reg|= (1<< the); Writel (Reg, Gpio6_base_addr+Gpio_gdir); Reg= Readl (gpio6_base_addr +gpio_dr); //reg &= ~ (1 <<);Reg |= (1<< the); Writel (Reg, Gpio6_base_addr+gpio_dr); /** Set LVDS panel cabc_en1 to disable * CABC function. */Reg= Readl (gpio6_base_addr +Gpio_gdir); Reg|= (1<< -); Writel (Reg, Gpio6_base_addr+Gpio_gdir); Reg= Readl (gpio6_base_addr +gpio_dr); //reg &= ~ (1 <<);Reg |= (1<< -); Writel (Reg, Gpio6_base_addr+gpio_dr);    ......    } ......

i.mx6 U-boot Backlight Setting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.