mn88472.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Panasonic MN88472 DVB-T/T2/C demodulator driver
  4. *
  5. * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
  6. */
  7. #ifndef MN88472_H
  8. #define MN88472_H
  9. #include <linux/dvb/frontend.h>
  10. /* Define old names for backward compatibility */
  11. #define VARIABLE_TS_CLOCK MN88472_TS_CLK_VARIABLE
  12. #define FIXED_TS_CLOCK MN88472_TS_CLK_FIXED
  13. #define SERIAL_TS_MODE MN88472_TS_MODE_SERIAL
  14. #define PARALLEL_TS_MODE MN88472_TS_MODE_PARALLEL
  15. /**
  16. * struct mn88472_config - Platform data for the mn88472 driver
  17. * @xtal: Clock frequency.
  18. * @ts_mode: TS mode.
  19. * @ts_clock: TS clock config.
  20. * @i2c_wr_max: Max number of bytes driver writes to I2C at once.
  21. * @fe: pointer to a frontend pointer
  22. * @get_dvb_frontend: Get DVB frontend callback.
  23. */
  24. struct mn88472_config {
  25. unsigned int xtal;
  26. #define MN88472_TS_MODE_SERIAL 0
  27. #define MN88472_TS_MODE_PARALLEL 1
  28. int ts_mode;
  29. #define MN88472_TS_CLK_FIXED 0
  30. #define MN88472_TS_CLK_VARIABLE 1
  31. int ts_clock;
  32. u16 i2c_wr_max;
  33. /* Everything after that is returned by the driver. */
  34. /*
  35. * DVB frontend.
  36. */
  37. struct dvb_frontend **fe;
  38. struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
  39. };
  40. #endif