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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/ti-lmu.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  * TI LMU (Lighting Management Unit) Devices
  4  *
  5  * Copyright 2017 Texas Instruments
  6  *
  7  * Author: Milo Kim <milo.kim@ti.com>
  8  */
  9 
 10 #ifndef __MFD_TI_LMU_H__
 11 #define __MFD_TI_LMU_H__
 12 
 13 #include <linux/gpio.h>
 14 #include <linux/notifier.h>
 15 #include <linux/regmap.h>
 16 #include <linux/gpio/consumer.h>
 17 
 18 /* Notifier event */
 19 #define LMU_EVENT_MONITOR_DONE          0x01
 20 
 21 enum ti_lmu_id {
 22         LM3631,
 23         LM3632,
 24         LM3633,
 25         LM3695,
 26         LM36274,
 27         LMU_MAX_ID,
 28 };
 29 
 30 enum ti_lmu_max_current {
 31         LMU_IMAX_5mA,
 32         LMU_IMAX_6mA,
 33         LMU_IMAX_7mA = 0x03,
 34         LMU_IMAX_8mA,
 35         LMU_IMAX_9mA,
 36         LMU_IMAX_10mA = 0x07,
 37         LMU_IMAX_11mA,
 38         LMU_IMAX_12mA,
 39         LMU_IMAX_13mA,
 40         LMU_IMAX_14mA,
 41         LMU_IMAX_15mA = 0x0D,
 42         LMU_IMAX_16mA,
 43         LMU_IMAX_17mA,
 44         LMU_IMAX_18mA,
 45         LMU_IMAX_19mA,
 46         LMU_IMAX_20mA = 0x13,
 47         LMU_IMAX_21mA,
 48         LMU_IMAX_22mA,
 49         LMU_IMAX_23mA = 0x17,
 50         LMU_IMAX_24mA,
 51         LMU_IMAX_25mA,
 52         LMU_IMAX_26mA,
 53         LMU_IMAX_27mA = 0x1C,
 54         LMU_IMAX_28mA,
 55         LMU_IMAX_29mA,
 56         LMU_IMAX_30mA,
 57 };
 58 
 59 enum lm363x_regulator_id {
 60         LM3631_BOOST,           /* Boost output */
 61         LM3631_LDO_CONT,        /* Display panel controller */
 62         LM3631_LDO_OREF,        /* Gamma reference */
 63         LM3631_LDO_POS,         /* Positive display bias output */
 64         LM3631_LDO_NEG,         /* Negative display bias output */
 65         LM3632_BOOST,           /* Boost output */
 66         LM3632_LDO_POS,         /* Positive display bias output */
 67         LM3632_LDO_NEG,         /* Negative display bias output */
 68         LM36274_BOOST,          /* Boost output */
 69         LM36274_LDO_POS,        /* Positive display bias output */
 70         LM36274_LDO_NEG,        /* Negative display bias output */
 71 };
 72 
 73 /**
 74  * struct ti_lmu
 75  *
 76  * @dev:        Parent device pointer
 77  * @regmap:     Used for i2c communcation on accessing registers
 78  * @en_gpio:    GPIO for HWEN pin [Optional]
 79  * @notifier:   Notifier for reporting hwmon event
 80  */
 81 struct ti_lmu {
 82         struct device *dev;
 83         struct regmap *regmap;
 84         struct gpio_desc *en_gpio;
 85         struct blocking_notifier_head notifier;
 86 };
 87 #endif
 88 

~ [ 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