leds-lm3642.h 818 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 Texas Instruments
  4. *
  5. * Simple driver for Texas Instruments LM3642 LED driver chip
  6. *
  7. * Author: G.Shark Jeong <[email protected]>
  8. * Daniel Jeong <[email protected]>
  9. */
  10. #ifndef __LINUX_LM3642_H
  11. #define __LINUX_LM3642_H
  12. #define LM3642_NAME "leds-lm3642"
  13. enum lm3642_torch_pin_enable {
  14. LM3642_TORCH_PIN_DISABLE = 0x00,
  15. LM3642_TORCH_PIN_ENABLE = 0x10,
  16. };
  17. enum lm3642_strobe_pin_enable {
  18. LM3642_STROBE_PIN_DISABLE = 0x00,
  19. LM3642_STROBE_PIN_ENABLE = 0x20,
  20. };
  21. enum lm3642_tx_pin_enable {
  22. LM3642_TX_PIN_DISABLE = 0x00,
  23. LM3642_TX_PIN_ENABLE = 0x40,
  24. };
  25. struct lm3642_platform_data {
  26. enum lm3642_torch_pin_enable torch_pin;
  27. enum lm3642_strobe_pin_enable strobe_pin;
  28. enum lm3642_tx_pin_enable tx_pin;
  29. };
  30. #endif /* __LINUX_LM3642_H */