2 * TI LMU (Lighting Management Unit) Devices
4 * Copyright 2017 Texas Instruments
6 * Author: Milo Kim <milo.kim@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __MFD_TI_LMU_H__
14 #define __MFD_TI_LMU_H__
16 #include <linux/gpio.h>
17 #include <linux/notifier.h>
18 #include <linux/regmap.h>
21 #define LMU_EVENT_MONITOR_DONE 0x01
33 enum ti_lmu_max_current
{
62 enum lm363x_regulator_id
{
63 LM3631_BOOST
, /* Boost output */
64 LM3631_LDO_CONT
, /* Display panel controller */
65 LM3631_LDO_OREF
, /* Gamma reference */
66 LM3631_LDO_POS
, /* Positive display bias output */
67 LM3631_LDO_NEG
, /* Negative display bias output */
68 LM3632_BOOST
, /* Boost output */
69 LM3632_LDO_POS
, /* Positive display bias output */
70 LM3632_LDO_NEG
, /* Negative display bias output */
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
83 struct regmap
*regmap
;
85 struct blocking_notifier_head notifier
;