mtk android 背光设置

更改cust_leds.c文件 cust_mt65xx_led cust_led_list[ ]中lcd-backlight项

static struct cust_mt65xx_led cust_led_list[MT65XX_LED_TYPE_TOTAL] = {
...
{"button-backlight",  MT65XX_LED_MODE_NONE, -1},
//{"lcd-backlight",     MT65XX_LED_MODE_PMIC, MT65XX_LED_PMIC_LCD_BOOST},//libin del
{"lcd-backlight",     MT65XX_LED_MODE_PWM, PWM4}, //libin add on 20120725
};

PS:

1)此处PWM4对应硬件原理图中PWM3脚。

2)也可以暂时强制打开相应GPIO口,点亮背光。

     如:

static int mt65xx_led_set_cust(struct cust_mt65xx_led *cust, int level)
{
......
switch (cust->mode) {
case MT65XX_LED_MODE_PWM:
printf("[LEDS]uboot: mt65xx_led_set_cust MT65XX_LED_MODE_PWM \n\r"); 
//libin add for for M1-3 test
mt_set_gpio_mode(GPIO68,GPIO_MODE_00);
mt_set_gpio_dir(GPIO68,GPIO_DIR_OUT);
mt_set_gpio_out(GPIO68,GPIO_OUT_ONE);
return 1;

......

}


Modified : /trunk/ALPS.ICS.MP.V1_T_20120405/mediatek/custom/bbk15_td_ics/kernel/leds/mt65xx/cust_leds.c
Modified : /trunk/ALPS.ICS.MP.V1_T_20120405/mediatek/custom/bbk15_td_ics/uboot/cust_leds.c

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值