tda18250.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * NXP TDA18250BHN silicon tuner driver
  3. *
  4. * Copyright (C) 2017 Olli Salonen <olli.salonen@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. #ifndef TDA18250_H
  17. #define TDA18250_H
  18. #include <linux/kconfig.h>
  19. #include <media/media-device.h>
  20. #include <media/dvb_frontend.h>
  21. #define TDA18250_XTAL_FREQ_16MHZ 0
  22. #define TDA18250_XTAL_FREQ_24MHZ 1
  23. #define TDA18250_XTAL_FREQ_25MHZ 2
  24. #define TDA18250_XTAL_FREQ_27MHZ 3
  25. #define TDA18250_XTAL_FREQ_30MHZ 4
  26. #define TDA18250_XTAL_FREQ_MAX 5
  27. struct tda18250_config {
  28. u16 if_dvbt_6;
  29. u16 if_dvbt_7;
  30. u16 if_dvbt_8;
  31. u16 if_dvbc_6;
  32. u16 if_dvbc_8;
  33. u16 if_atsc;
  34. u8 xtal_freq;
  35. bool loopthrough;
  36. /*
  37. * frontend
  38. */
  39. struct dvb_frontend *fe;
  40. #if defined(CONFIG_MEDIA_CONTROLLER)
  41. struct media_device *mdev;
  42. #endif
  43. };
  44. #endif