tda10071.h 955 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * NXP TDA10071 + Conexant CX24118A DVB-S/S2 demodulator + tuner driver
  4. *
  5. * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
  6. */
  7. #ifndef TDA10071_H
  8. #define TDA10071_H
  9. #include <linux/dvb/frontend.h>
  10. /*
  11. * I2C address
  12. * 0x05, 0x55,
  13. */
  14. /**
  15. * struct tda10071_platform_data - Platform data for the tda10071 driver
  16. * @clk: Clock frequency.
  17. * @i2c_wr_max: Max bytes I2C adapter can write at once.
  18. * @ts_mode: TS mode.
  19. * @spec_inv: Input spectrum inversion.
  20. * @pll_multiplier: PLL multiplier.
  21. * @tuner_i2c_addr: CX24118A tuner I2C address (0x14, 0x54, ...).
  22. * @get_dvb_frontend: Get DVB frontend.
  23. */
  24. struct tda10071_platform_data {
  25. u32 clk;
  26. u16 i2c_wr_max;
  27. #define TDA10071_TS_SERIAL 0
  28. #define TDA10071_TS_PARALLEL 1
  29. u8 ts_mode;
  30. bool spec_inv;
  31. u8 pll_multiplier;
  32. u8 tuner_i2c_addr;
  33. struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
  34. };
  35. #endif /* TDA10071_H */