leds-lm3556.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Simple driver for Texas Instruments LM3556 LED Flash driver chip (Rev0x03)
  3. * Copyright (C) 2012 Texas Instruments
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. */
  10. #ifndef __LINUX_LM3556_H
  11. #define __LINUX_LM3556_H
  12. #define LM3556_NAME "leds-lm3556"
  13. enum lm3556_pin_polarity {
  14. PIN_LOW_ACTIVE = 0,
  15. PIN_HIGH_ACTIVE,
  16. };
  17. enum lm3556_pin_enable {
  18. PIN_DISABLED = 0,
  19. PIN_ENABLED,
  20. };
  21. enum lm3556_strobe_usuage {
  22. STROBE_EDGE_DETECT = 0,
  23. STROBE_LEVEL_DETECT,
  24. };
  25. enum lm3556_indic_mode {
  26. INDIC_MODE_INTERNAL = 0,
  27. INDIC_MODE_EXTERNAL,
  28. };
  29. struct lm3556_platform_data {
  30. enum lm3556_pin_enable torch_pin_en;
  31. enum lm3556_pin_polarity torch_pin_polarity;
  32. enum lm3556_strobe_usuage strobe_usuage;
  33. enum lm3556_pin_enable strobe_pin_en;
  34. enum lm3556_pin_polarity strobe_pin_polarity;
  35. enum lm3556_pin_enable tx_pin_en;
  36. enum lm3556_pin_polarity tx_pin_polarity;
  37. enum lm3556_indic_mode indicator_mode;
  38. };
  39. #endif /* __LINUX_LM3556_H */