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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/ti-lmu.h

Version: ~ [ linux-5.13-rc5 ] ~ [ linux-5.12.9 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.42 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.124 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.193 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.235 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.271 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.271 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ 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.5 ] ~ [ 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 | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp