MTK Android Driver:led

[FAQ07302][LED]如何配置LCD背光和LED,调试方法:

LCD背光和LED配置文件

alps/custom/lk/cust_leds.c

alps/custom//kernel/leds/mt65xx/cust_leds.c

drvgen.exe编辑修改codegen.dws

配置cust_leds.c参数:

static struct cust_mt65xx_ledcust_led_list[MT65XX_LED_TYPE_TOTAL] = {

{"red",                 MT65XX_LED_MODE_NONE,-1,{0}},

{"green",              MT65XX_LED_MODE_NONE,-1,{0}},

{"blue",                MT65XX_LED_MODE_NONE,-1,{0}},

{"jogball-backlight",MT65XX_LED_MODE_NONE, -1,{0}},

{"keyboard-backlight",MT65XX_LED_MODE_NONE,-1,{0}},

{"button-backlight",  MT65XX_LED_MODE_PMIC, MT65XX_LED_PMIC_BUTTON,{0}},

{"lcd-backlight",       MT65XX_LED_MODE_CUST_BLS_PWM,(int)disp_bls_set_backlight,{0}},

};

LCD背光

MT6589

使用不同的控制源,配置模式:

1.BL_PWM (BLS_PWM)

{"lcd-backlight",    MT65XX_LED_MODE_CUST_BLS_PWM,(int)disp_bls_set_backlight,{0}},

2.PWM1~PWM7

你可能感兴趣的:(Android,系统底层,Android,系统底层开发)