zl10353_priv.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Driver for Zarlink DVB-T ZL10353 demodulator
  4. *
  5. * Copyright (C) 2006, 2007 Christopher Pascoe <c.pascoe@itee.uq.edu.au>
  6. */
  7. #ifndef _ZL10353_PRIV_
  8. #define _ZL10353_PRIV_
  9. #define ID_ZL10353 0x14 /* Zarlink ZL10353 */
  10. #define ID_CE6230 0x18 /* Intel CE6230 */
  11. #define ID_CE6231 0x19 /* Intel CE6231 */
  12. #define msb(x) (((x) >> 8) & 0xff)
  13. #define lsb(x) ((x) & 0xff)
  14. enum zl10353_reg_addr {
  15. INTERRUPT_0 = 0x00,
  16. INTERRUPT_1 = 0x01,
  17. INTERRUPT_2 = 0x02,
  18. INTERRUPT_3 = 0x03,
  19. INTERRUPT_4 = 0x04,
  20. INTERRUPT_5 = 0x05,
  21. STATUS_6 = 0x06,
  22. STATUS_7 = 0x07,
  23. STATUS_8 = 0x08,
  24. STATUS_9 = 0x09,
  25. AGC_GAIN_1 = 0x0A,
  26. AGC_GAIN_0 = 0x0B,
  27. SNR = 0x10,
  28. RS_ERR_CNT_2 = 0x11,
  29. RS_ERR_CNT_1 = 0x12,
  30. RS_ERR_CNT_0 = 0x13,
  31. RS_UBC_1 = 0x14,
  32. RS_UBC_0 = 0x15,
  33. TPS_RECEIVED_1 = 0x1D,
  34. TPS_RECEIVED_0 = 0x1E,
  35. TPS_CURRENT_1 = 0x1F,
  36. TPS_CURRENT_0 = 0x20,
  37. CLOCK_CTL_0 = 0x51,
  38. CLOCK_CTL_1 = 0x52,
  39. PLL_0 = 0x53,
  40. PLL_1 = 0x54,
  41. RESET = 0x55,
  42. AGC_TARGET = 0x56,
  43. MCLK_RATIO = 0x5C,
  44. ACQ_CTL = 0x5E,
  45. TRL_NOMINAL_RATE_1 = 0x65,
  46. TRL_NOMINAL_RATE_0 = 0x66,
  47. INPUT_FREQ_1 = 0x6C,
  48. INPUT_FREQ_0 = 0x6D,
  49. TPS_GIVEN_1 = 0x6E,
  50. TPS_GIVEN_0 = 0x6F,
  51. TUNER_GO = 0x70,
  52. FSM_GO = 0x71,
  53. CHIP_ID = 0x7F,
  54. CHAN_STEP_1 = 0xE4,
  55. CHAN_STEP_0 = 0xE5,
  56. OFDM_LOCK_TIME = 0xE7,
  57. FEC_LOCK_TIME = 0xE8,
  58. ACQ_DELAY = 0xE9,
  59. };
  60. #endif /* _ZL10353_PRIV_ */