tda10071.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * NXP TDA10071 + Conexant CX24118A DVB-S/S2 demodulator + tuner driver
  3. *
  4. * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. */
  20. #ifndef TDA10071_H
  21. #define TDA10071_H
  22. #include <linux/dvb/frontend.h>
  23. /*
  24. * I2C address
  25. * 0x05, 0x55,
  26. */
  27. /**
  28. * struct tda10071_platform_data - Platform data for the tda10071 driver
  29. * @clk: Clock frequency.
  30. * @i2c_wr_max: Max bytes I2C adapter can write at once.
  31. * @ts_mode: TS mode.
  32. * @spec_inv: Input spectrum inversion.
  33. * @pll_multiplier: PLL multiplier.
  34. * @tuner_i2c_addr: CX24118A tuner I2C address (0x14, 0x54, ...).
  35. * @get_dvb_frontend: Get DVB frontend.
  36. */
  37. struct tda10071_platform_data {
  38. u32 clk;
  39. u16 i2c_wr_max;
  40. #define TDA10071_TS_SERIAL 0
  41. #define TDA10071_TS_PARALLEL 1
  42. u8 ts_mode;
  43. bool spec_inv;
  44. u8 pll_multiplier;
  45. u8 tuner_i2c_addr;
  46. struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
  47. };
  48. #endif /* TDA10071_H */