~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/lm3630a_bl.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3 * Simple driver for Texas Instruments LM3630A LED Flash driver chip
  4 * Copyright (C) 2012 Texas Instruments
  5 */
  6 
  7 #ifndef __LINUX_LM3630A_H
  8 #define __LINUX_LM3630A_H
  9 
 10 #define LM3630A_NAME "lm3630a_bl"
 11 
 12 enum lm3630a_pwm_ctrl {
 13         LM3630A_PWM_DISABLE = 0x00,
 14         LM3630A_PWM_BANK_A,
 15         LM3630A_PWM_BANK_B,
 16         LM3630A_PWM_BANK_ALL,
 17         LM3630A_PWM_BANK_A_ACT_LOW = 0x05,
 18         LM3630A_PWM_BANK_B_ACT_LOW,
 19         LM3630A_PWM_BANK_ALL_ACT_LOW,
 20 };
 21 
 22 enum lm3630a_leda_ctrl {
 23         LM3630A_LEDA_DISABLE = 0x00,
 24         LM3630A_LEDA_ENABLE = 0x04,
 25         LM3630A_LEDA_ENABLE_LINEAR = 0x14,
 26 };
 27 
 28 enum lm3630a_ledb_ctrl {
 29         LM3630A_LEDB_DISABLE = 0x00,
 30         LM3630A_LEDB_ON_A = 0x01,
 31         LM3630A_LEDB_ENABLE = 0x02,
 32         LM3630A_LEDB_ENABLE_LINEAR = 0x0A,
 33 };
 34 
 35 #define LM3630A_MAX_BRIGHTNESS 255
 36 /*
 37  *@leda_label    : optional led a label.
 38  *@leda_init_brt : led a init brightness. 4~255
 39  *@leda_max_brt  : led a max brightness.  4~255
 40  *@leda_ctrl     : led a disable, enable linear, enable exponential
 41  *@ledb_label    : optional led b label.
 42  *@ledb_init_brt : led b init brightness. 4~255
 43  *@ledb_max_brt  : led b max brightness.  4~255
 44  *@ledb_ctrl     : led b disable, enable linear, enable exponential
 45  *@pwm_period    : pwm period
 46  *@pwm_ctrl      : pwm disable, bank a or b, active high or low
 47  */
 48 struct lm3630a_platform_data {
 49 
 50         /* led a config.  */
 51         const char *leda_label;
 52         int leda_init_brt;
 53         int leda_max_brt;
 54         enum lm3630a_leda_ctrl leda_ctrl;
 55         /* led b config. */
 56         const char *ledb_label;
 57         int ledb_init_brt;
 58         int ledb_max_brt;
 59         enum lm3630a_ledb_ctrl ledb_ctrl;
 60         /* pwm config. */
 61         unsigned int pwm_period;
 62         enum lm3630a_pwm_ctrl pwm_ctrl;
 63 };
 64 
 65 #endif /* __LINUX_LM3630A_H */
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php