stv6110x_reg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. STV6110(A) Silicon tuner driver
  4. Copyright (C) Manu Abraham <abraham.manu@gmail.com>
  5. Copyright (C) ST Microelectronics
  6. */
  7. #ifndef __STV6110x_REG_H
  8. #define __STV6110x_REG_H
  9. #define STV6110x_CTRL1 0x00
  10. #define STV6110x_OFFST_CTRL1_K 3
  11. #define STV6110x_WIDTH_CTRL1_K 5
  12. #define STV6110x_OFFST_CTRL1_LPT 2
  13. #define STV6110x_WIDTH_CTRL1_LPT 1
  14. #define STV6110x_OFFST_CTRL1_RX 1
  15. #define STV6110x_WIDTH_CTRL1_RX 1
  16. #define STV6110x_OFFST_CTRL1_SYN 0
  17. #define STV6110x_WIDTH_CTRL1_SYN 1
  18. #define STV6110x_CTRL2 0x01
  19. #define STV6110x_OFFST_CTRL2_CO_DIV 6
  20. #define STV6110x_WIDTH_CTRL2_CO_DIV 2
  21. #define STV6110x_OFFST_CTRL2_RSVD 5
  22. #define STV6110x_WIDTH_CTRL2_RSVD 1
  23. #define STV6110x_OFFST_CTRL2_REFOUT_SEL 4
  24. #define STV6110x_WIDTH_CTRL2_REFOUT_SEL 1
  25. #define STV6110x_OFFST_CTRL2_BBGAIN 0
  26. #define STV6110x_WIDTH_CTRL2_BBGAIN 4
  27. #define STV6110x_TNG0 0x02
  28. #define STV6110x_OFFST_TNG0_N_DIV_7_0 0
  29. #define STV6110x_WIDTH_TNG0_N_DIV_7_0 8
  30. #define STV6110x_TNG1 0x03
  31. #define STV6110x_OFFST_TNG1_R_DIV 6
  32. #define STV6110x_WIDTH_TNG1_R_DIV 2
  33. #define STV6110x_OFFST_TNG1_PRESC32_ON 5
  34. #define STV6110x_WIDTH_TNG1_PRESC32_ON 1
  35. #define STV6110x_OFFST_TNG1_DIV4SEL 4
  36. #define STV6110x_WIDTH_TNG1_DIV4SEL 1
  37. #define STV6110x_OFFST_TNG1_N_DIV_11_8 0
  38. #define STV6110x_WIDTH_TNG1_N_DIV_11_8 4
  39. #define STV6110x_CTRL3 0x04
  40. #define STV6110x_OFFST_CTRL3_DCLOOP_OFF 7
  41. #define STV6110x_WIDTH_CTRL3_DCLOOP_OFF 1
  42. #define STV6110x_OFFST_CTRL3_RCCLK_OFF 6
  43. #define STV6110x_WIDTH_CTRL3_RCCLK_OFF 1
  44. #define STV6110x_OFFST_CTRL3_ICP 5
  45. #define STV6110x_WIDTH_CTRL3_ICP 1
  46. #define STV6110x_OFFST_CTRL3_CF 0
  47. #define STV6110x_WIDTH_CTRL3_CF 5
  48. #define STV6110x_STAT1 0x05
  49. #define STV6110x_OFFST_STAT1_CALVCO_STRT 2
  50. #define STV6110x_WIDTH_STAT1_CALVCO_STRT 1
  51. #define STV6110x_OFFST_STAT1_CALRC_STRT 1
  52. #define STV6110x_WIDTH_STAT1_CALRC_STRT 1
  53. #define STV6110x_OFFST_STAT1_LOCK 0
  54. #define STV6110x_WIDTH_STAT1_LOCK 1
  55. #define STV6110x_STAT2 0x06
  56. #define STV6110x_STAT3 0x07
  57. #endif /* __STV6110x_REG_H */