I.MX6 U-boot Kernel backlight setting
/********************************************************************** I.MX6 U-boot Kernel backlight setting* 说明:* 本文主要记录I.MX6 U-boot、Kernel中如何打开、关闭背光设置。* * 2016-3-7 深圳 南山平山村 曾剑锋********************************************************************/1. cat bootable/bootloader/uboot-imx/board/freescale/mx6q_sabresd/mx6q_sabresd.c......#ifdef CONFIG_LCDvoid 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);......}......2. cat arch/arm/mach-mx6/board-mx6q_sabresd.c....../*!* Board specific initialization.*/static void __init mx6_sabresd_board_init(void){....../** Disable HannStar touch panel CABC function,* this function turns the panel's backlight automatically* according to the content shown on the panel which* may cause annoying unstable backlight issue.* * zengjf 2015-10-8 this also has down in uboot */gpio_request(SABRESD_CABC_EN0, "cabc-en0");gpio_direction_output(SABRESD_CABC_EN0, 1);gpio_request(SABRESD_CABC_EN1, "cabc-en1");gpio_direction_output(SABRESD_CABC_EN1, 1);......}......
I.MX6 U-boot Kernel backlight setting相关推荐
- 【SemiDrive源码分析】【X9芯片启动流程】30 - AP1 Android Kernel 启动流程 start_kernel 函数详细分析(一)
[SemiDrive源码分析][X9芯片启动流程]30 - AP1 Android Kernel 启动流程 start_kernel 函数详细分析(一) 一.Android Kernel 启动流程分析 ...
- msm8917:LCD移植 LK+Kernel
LK阶段: Index: dev/gcdb/display/include/panel_ili9881_800p_video.h =================================== ...
- kernel笔记——内核编译与进程管理
内核与操作系统 由于一些商业操作系统设计上的缺陷以及日益庞杂,"操作系统"的概念对很多人而言变得含糊不清.在进一步讨论Linux内核的话题前,我们先区分"内核" ...
- 第一季6:海思方案中uboot、kernel和rootfs的烧写方法
以下内容源于朱有鹏课程的学习,以及海思方案的学习资料整理.如有侵权,请告知删除. 这里主要讲"使用tftp,烧写映像文件(uboot.kernel.rootfs)到SPI Flash&quo ...
- android system.img编译,快速编译system.img和boot.img的方法
快速编译system.img,可以使用这个命令: #make systemimage 快速编译boot.img,可以使用以下命令: #make bootimage 快速编译userdata.img,可 ...
- [IMX6Q]u-boot启动kernel流程
u-boot版本:v2009.08 u-boot利用了env里的cmd来实现调用boot linux的接口, 效果等同于在u-boot中敲"booti xxx..." start_ ...
- Real-World Super-Resolution via Kernel Estimation and Noise Injection ---2020.08.10
介绍:2020 cvpr real world SR challenge NO.1 内容:论文翻译+实验细节 摘要: 不管blur和noise如何,最新的超分辨率方法在理想数据集上均具有出色的性能.但 ...
- 用kernel FDT的思路来研究u-boot FIT
u-boot FIT image介绍 1. 前言 Linux kernel在ARM架构中引入device tree(全称是flattened device tree,后续将会以FDT代称)的时候[1] ...
- linux secure boot(安全启动)下为内核模块签名
文章目录 linux secure boot(安全启动)下为内核模块签名 背景 Secure Boot安全启动开启关闭方法 内核驱动签名 生成签名证书和私钥 导入签名证书 BIOS(UEFI)导入证书 ...
最新文章
- jQuery发送含有数组参数的ajax请求以及后台Struts2的OGNL解析错误
- 把本地mysql备份到服务器innodb_使用mysql备份工具innobackupex将本地数据 直接恢复 到远端服务器数据目录操作实例...
- python一次性读取整个文件-使用Python读取大文件的方法
- 在Nginx上配置多个站点
- leetcode 330. Patching Array | 1798. Maximum Number of Consecutive Values You Can Make
- 【2018新年巨献】像阿里巴巴一样高效工作!(含视频、文章、PDF文件)
- W ndows找不到explorer,windows找不到explorer.exe的处理教程
- python 文件按行读写
- spring+quartz实现定时调度
- 2020级C语言大作业 - 丛林大作战
- Atitit atimvc rest原理与自定义实现t33 目录 1.1. Web.xml	1 1.2. MvcFilter	2 1.3. jerserMeth	4 原理 过滤器 过滤即可
- VS2019 产品密钥
- IDispatch接口原理与应用
- 双十一要不要提前收货
- 音准听力测试软件app,听音练耳app神器考试用
- ~scanf()简析
- 空间金字塔池化Spatial Pyramid Pooling
- c# winform打包单个exe文件
- WiFi基本概念(一)WiFi和互联网
- sql优化之查询优化器