1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 Texas Instruments
5 * Simple driver for Texas Instruments LM3642 LED driver chip
7 * Author: G.Shark Jeong <gshark.jeong@gmail.com>
8 * Daniel Jeong <daniel.jeong@ti.com>
11 #ifndef __LINUX_LM3642_H
12 #define __LINUX_LM3642_H
14 #define LM3642_NAME "leds-lm3642"
16 enum lm3642_torch_pin_enable
{
17 LM3642_TORCH_PIN_DISABLE
= 0x00,
18 LM3642_TORCH_PIN_ENABLE
= 0x10,
21 enum lm3642_strobe_pin_enable
{
22 LM3642_STROBE_PIN_DISABLE
= 0x00,
23 LM3642_STROBE_PIN_ENABLE
= 0x20,
26 enum lm3642_tx_pin_enable
{
27 LM3642_TX_PIN_DISABLE
= 0x00,
28 LM3642_TX_PIN_ENABLE
= 0x40,
31 struct lm3642_platform_data
{
32 enum lm3642_torch_pin_enable torch_pin
;
33 enum lm3642_strobe_pin_enable strobe_pin
;
34 enum lm3642_tx_pin_enable tx_pin
;
37 #endif /* __LINUX_LM3642_H */