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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ 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 LM3630 LED Flash driver chip
  4 * Copyright (C) 2012 Texas Instruments
  5 */
  6 
  7 #ifndef __LINUX_LM3639_H
  8 #define __LINUX_LM3639_H
  9 
 10 #define LM3639_NAME "lm3639_bl"
 11 
 12 enum lm3639_pwm {
 13         LM3639_PWM_DISABLE = 0x00,
 14         LM3639_PWM_EN_ACTLOW = 0x48,
 15         LM3639_PWM_EN_ACTHIGH = 0x40,
 16 };
 17 
 18 enum lm3639_strobe {
 19         LM3639_STROBE_DISABLE = 0x00,
 20         LM3639_STROBE_EN_ACTLOW = 0x10,
 21         LM3639_STROBE_EN_ACTHIGH = 0x30,
 22 };
 23 
 24 enum lm3639_txpin {
 25         LM3639_TXPIN_DISABLE = 0x00,
 26         LM3639_TXPIN_EN_ACTLOW = 0x04,
 27         LM3639_TXPIN_EN_ACTHIGH = 0x0C,
 28 };
 29 
 30 enum lm3639_fleds {
 31         LM3639_FLED_DIASBLE_ALL = 0x00,
 32         LM3639_FLED_EN_1 = 0x40,
 33         LM3639_FLED_EN_2 = 0x20,
 34         LM3639_FLED_EN_ALL = 0x60,
 35 };
 36 
 37 enum lm3639_bleds {
 38         LM3639_BLED_DIASBLE_ALL = 0x00,
 39         LM3639_BLED_EN_1 = 0x10,
 40         LM3639_BLED_EN_2 = 0x08,
 41         LM3639_BLED_EN_ALL = 0x18,
 42 };
 43 enum lm3639_bled_mode {
 44         LM3639_BLED_MODE_EXPONETIAL = 0x00,
 45         LM3639_BLED_MODE_LINEAR = 0x10,
 46 };
 47 
 48 struct lm3639_platform_data {
 49         unsigned int max_brt_led;
 50         unsigned int init_brt_led;
 51 
 52         /* input pins */
 53         enum lm3639_pwm pin_pwm;
 54         enum lm3639_strobe pin_strobe;
 55         enum lm3639_txpin pin_tx;
 56 
 57         /* output pins */
 58         enum lm3639_fleds fled_pins;
 59         enum lm3639_bleds bled_pins;
 60         enum lm3639_bled_mode bled_mode;
 61 
 62         void (*pwm_set_intensity) (int brightness, int max_brightness);
 63         int (*pwm_get_intensity) (void);
 64 };
 65 #endif /* __LINUX_LM3639_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