分类: 嵌入式
2010-08-14 15:36:43
嵌入式学习入门 http://blog.chinaunix.net/u3/117680/showart.php?id=2300212
|
将背光驱动源码
TX2440_backlight.c放到drivers/video/目录下,修改同目录下Kconfig文件,在1948行加入:
config TX2440_BACKLIGHT
tristate "Backlight support for TX2440A"
depends on FB_S3C2410
help
LCD backlight driver for TX2440A
修改同目录下Makefile文件,在最后面加入:
obj-$(CONFIG_TX2440_BACKLIGHT) += TX2440_backlight.o
配置内核,支持LCD背光:
Device Drivers --->
Graphics support --->
<*> Support for frame buffer devices --->
<*> Backlight support for TX2440A
系统启动时,自动加载背光驱动,设备名为:TX2440-backlight
测试背光驱动:
执行 #echo 0 > /dev/TX2440-backlight 会使LCD背光熄灭
执行 #echo 1 > /dev/TX2440-backlight 会使LCD背光点亮