更改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