stv6110x_reg.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. STV6110(A) Silicon tuner driver
  3. Copyright (C) Manu Abraham <abraham.manu@gmail.com>
  4. Copyright (C) ST Microelectronics
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef __STV6110x_REG_H
  18. #define __STV6110x_REG_H
  19. #define STV6110x_CTRL1 0x00
  20. #define STV6110x_OFFST_CTRL1_K 3
  21. #define STV6110x_WIDTH_CTRL1_K 5
  22. #define STV6110x_OFFST_CTRL1_LPT 2
  23. #define STV6110x_WIDTH_CTRL1_LPT 1
  24. #define STV6110x_OFFST_CTRL1_RX 1
  25. #define STV6110x_WIDTH_CTRL1_RX 1
  26. #define STV6110x_OFFST_CTRL1_SYN 0
  27. #define STV6110x_WIDTH_CTRL1_SYN 1
  28. #define STV6110x_CTRL2 0x01
  29. #define STV6110x_OFFST_CTRL2_CO_DIV 6
  30. #define STV6110x_WIDTH_CTRL2_CO_DIV 2
  31. #define STV6110x_OFFST_CTRL2_RSVD 5
  32. #define STV6110x_WIDTH_CTRL2_RSVD 1
  33. #define STV6110x_OFFST_CTRL2_REFOUT_SEL 4
  34. #define STV6110x_WIDTH_CTRL2_REFOUT_SEL 1
  35. #define STV6110x_OFFST_CTRL2_BBGAIN 0
  36. #define STV6110x_WIDTH_CTRL2_BBGAIN 4
  37. #define STV6110x_TNG0 0x02
  38. #define STV6110x_OFFST_TNG0_N_DIV_7_0 0
  39. #define STV6110x_WIDTH_TNG0_N_DIV_7_0 8
  40. #define STV6110x_TNG1 0x03
  41. #define STV6110x_OFFST_TNG1_R_DIV 6
  42. #define STV6110x_WIDTH_TNG1_R_DIV 2
  43. #define STV6110x_OFFST_TNG1_PRESC32_ON 5
  44. #define STV6110x_WIDTH_TNG1_PRESC32_ON 1
  45. #define STV6110x_OFFST_TNG1_DIV4SEL 4
  46. #define STV6110x_WIDTH_TNG1_DIV4SEL 1
  47. #define STV6110x_OFFST_TNG1_N_DIV_11_8 0
  48. #define STV6110x_WIDTH_TNG1_N_DIV_11_8 4
  49. #define STV6110x_CTRL3 0x04
  50. #define STV6110x_OFFST_CTRL3_DCLOOP_OFF 7
  51. #define STV6110x_WIDTH_CTRL3_DCLOOP_OFF 1
  52. #define STV6110x_OFFST_CTRL3_RCCLK_OFF 6
  53. #define STV6110x_WIDTH_CTRL3_RCCLK_OFF 1
  54. #define STV6110x_OFFST_CTRL3_ICP 5
  55. #define STV6110x_WIDTH_CTRL3_ICP 1
  56. #define STV6110x_OFFST_CTRL3_CF 0
  57. #define STV6110x_WIDTH_CTRL3_CF 5
  58. #define STV6110x_STAT1 0x05
  59. #define STV6110x_OFFST_STAT1_CALVCO_STRT 2
  60. #define STV6110x_WIDTH_STAT1_CALVCO_STRT 1
  61. #define STV6110x_OFFST_STAT1_CALRC_STRT 1
  62. #define STV6110x_WIDTH_STAT1_CALRC_STRT 1
  63. #define STV6110x_OFFST_STAT1_LOCK 0
  64. #define STV6110x_WIDTH_STAT1_LOCK 1
  65. #define STV6110x_STAT2 0x06
  66. #define STV6110x_STAT3 0x07
  67. #endif /* __STV6110x_REG_H */