si2165.h 872 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
  4. *
  5. * Copyright (C) 2013-2017 Matthias Schwarzott <zzam@gentoo.org>
  6. *
  7. * References:
  8. * http://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf
  9. */
  10. #ifndef _DVB_SI2165_H
  11. #define _DVB_SI2165_H
  12. #include <linux/dvb/frontend.h>
  13. enum {
  14. SI2165_MODE_OFF = 0x00,
  15. SI2165_MODE_PLL_EXT = 0x20,
  16. SI2165_MODE_PLL_XTAL = 0x21
  17. };
  18. /* I2C addresses
  19. * possible values: 0x64,0x65,0x66,0x67
  20. */
  21. struct si2165_platform_data {
  22. /*
  23. * frontend
  24. * returned by driver
  25. */
  26. struct dvb_frontend **fe;
  27. /* external clock or XTAL */
  28. u8 chip_mode;
  29. /* frequency of external clock or xtal in Hz
  30. * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
  31. */
  32. u32 ref_freq_hz;
  33. /* invert the spectrum */
  34. bool inversion;
  35. };
  36. #endif /* _DVB_SI2165_H */