Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003 * Copyright (C) 2012 Texas Instruments
0004 *
0005 * Simple driver for Texas Instruments LM3642 LED driver chip
0006 *
0007 * Author: G.Shark Jeong <gshark.jeong@gmail.com>
0008 *         Daniel Jeong <daniel.jeong@ti.com>
0009 */
0010 
0011 #ifndef __LINUX_LM3642_H
0012 #define __LINUX_LM3642_H
0013 
0014 #define LM3642_NAME "leds-lm3642"
0015 
0016 enum lm3642_torch_pin_enable {
0017     LM3642_TORCH_PIN_DISABLE = 0x00,
0018     LM3642_TORCH_PIN_ENABLE = 0x10,
0019 };
0020 
0021 enum lm3642_strobe_pin_enable {
0022     LM3642_STROBE_PIN_DISABLE = 0x00,
0023     LM3642_STROBE_PIN_ENABLE = 0x20,
0024 };
0025 
0026 enum lm3642_tx_pin_enable {
0027     LM3642_TX_PIN_DISABLE = 0x00,
0028     LM3642_TX_PIN_ENABLE = 0x40,
0029 };
0030 
0031 struct lm3642_platform_data {
0032     enum lm3642_torch_pin_enable torch_pin;
0033     enum lm3642_strobe_pin_enable strobe_pin;
0034     enum lm3642_tx_pin_enable tx_pin;
0035 };
0036 
0037 #endif /* __LINUX_LM3642_H */