summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvoke Zhang <evoke.zhang@amlogic.com>2019-01-03 04:02:13 -0500
committerDongjin Kim <tobetter@gmail.com>2019-05-16 13:15:18 +0900
commit107fd9503299dd544de96250b83ece54ff1522a7 (patch)
treeabf2e4a6a9c0d359018d965f1b909c2dae173a20 /include
parent84e8b6d3bcf733c1c75aee2aa887258adab5d391 (diff)
downloadu-boot-odroid-c1-107fd9503299dd544de96250b83ece54ff1522a7.tar.gz
backlight: ldim: add analog pwm support [1/1]
PD#SWPL-3702 Problem: local dimming need analog pwm function Solution: add analog pwm support Verify: x301 Change-Id: I9054593880efc3f0654f966ce1e4b0b585cf12de Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Diffstat (limited to 'include')
-rw-r--r--include/amlogic/aml_ldim.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/amlogic/aml_ldim.h b/include/amlogic/aml_ldim.h
index 6b22453434..68a648b64e 100644
--- a/include/amlogic/aml_ldim.h
+++ b/include/amlogic/aml_ldim.h
@@ -31,12 +31,6 @@ enum ldim_dev_type_e {
#define LDIM_INIT_ON_MAX 300
#define LDIM_INIT_OFF_MAX 20
-struct ldim_pinmux_ctrl_s {
- char *name;
- unsigned int pinmux_set[LCD_PINMUX_NUM][2];
- unsigned int pinmux_clr[LCD_PINMUX_NUM][2];
-};
-
struct ldim_config_s {
unsigned char row;
unsigned char col;
@@ -66,8 +60,11 @@ struct ldim_dev_config_s {
unsigned int init_off_cnt;
unsigned char pinctrl_ver;
- struct ldim_pinmux_ctrl_s *ldim_pinmux;
- struct bl_pwm_config_s pwm_config;
+ struct lcd_pinmux_ctrl_s *ldim_pinmux;
+ struct bl_pwm_config_s ldim_pwm_config;
+ struct bl_pwm_config_s analog_pwm_config;
+ void (*dim_range_update)(void);
+
char gpio_name[BL_GPIO_NUM_MAX][LCD_CPU_GPIO_NAME_MAX];
unsigned short bl_regnum;