Server IP : 172.67.216.182 / Your IP : 172.69.166.29 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ // TI LMU Common Core // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ #ifndef _TI_LMU_COMMON_H_ #define _TI_LMU_COMMON_H_ #include <linux/delay.h> #include <linux/device.h> #include <linux/init.h> #include <linux/leds.h> #include <linux/module.h> #include <linux/regmap.h> #include <linux/slab.h> #include <uapi/linux/uleds.h> #define LMU_11BIT_LSB_MASK (BIT(0) | BIT(1) | BIT(2)) #define LMU_11BIT_MSB_SHIFT 3 #define MAX_BRIGHTNESS_8BIT 255 #define MAX_BRIGHTNESS_11BIT 2047 struct ti_lmu_bank { struct regmap *regmap; int max_brightness; u8 lsb_brightness_reg; u8 msb_brightness_reg; u8 runtime_ramp_reg; u32 ramp_up_usec; u32 ramp_down_usec; }; int ti_lmu_common_set_brightness(struct ti_lmu_bank *lmu_bank, int brightness); int ti_lmu_common_set_ramp(struct ti_lmu_bank *lmu_bank); int ti_lmu_common_get_ramp_params(struct device *dev, struct fwnode_handle *child, struct ti_lmu_bank *lmu_data); int ti_lmu_common_get_brt_res(struct device *dev, struct fwnode_handle *child, struct ti_lmu_bank *lmu_data); #endif /* _TI_LMU_COMMON_H_ */