/********************************************************************* * 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