mt6630_fm.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __MT6630_FM_H__
  2. #define __MT6630_FM_H__
  3. #include "fm_typedef.h"
  4. /* #define FM_PowerOn_with_ShortAntenna */
  5. #define MT6630_RSSI_TH_LONG 0xFF01 /* FM radio long antenna RSSI threshold(11.375dBuV) */
  6. #define MT6630_RSSI_TH_SHORT 0xFEE0 /* FM radio short antenna RSSI threshold(-1dBuV) */
  7. #define MT6630_CQI_TH 0x00E9 /* FM radio Channel quality indicator threshold(0x0000~0x00FF) */
  8. #define MT6630_SEEK_SPACE 1 /* FM radio seek space,1:100KHZ; 2:200KHZ */
  9. #define MT6630_SCAN_CH_SIZE 40 /* FM radio scan max channel size */
  10. #define MT6630_BAND 1
  11. /* FM radio band, 1:87.5MHz~108.0MHz; 2:76.0MHz~90.0MHz; 3:76.0MHz~108.0MHz; 4:special */
  12. #define MT6630_BAND_FREQ_L 875 /* FM radio special band low freq(Default 87.5MHz) */
  13. #define MT6630_BAND_FREQ_H 1080 /* FM radio special band high freq(Default 108.0MHz) */
  14. #define MT6630_DEEMPHASIS_50us TRUE
  15. #define MT6630_SLAVE_ADDR 0xE0 /* 0x70 7-bit address */
  16. #define MT6630_MAX_COUNT 100
  17. #ifdef CONFIG_MTK_FM_50KHZ_SUPPORT
  18. #define MT6630_SCANTBL_SIZE 26 /* 16*uinit16_t */
  19. #else
  20. #define MT6630_SCANTBL_SIZE 16 /* 16*uinit16_t */
  21. #endif
  22. #define AFC_ON 0x01
  23. #if AFC_ON
  24. #define FM_MAIN_CTRL_INIT 0x480
  25. #else
  26. #define FM_MAIN_CTRL_INIT 0x080
  27. #endif
  28. #define ext_clk /* if define ext_clk use external reference clock or mask will use internal */
  29. #define MT6630_DEV "MT6630"
  30. #endif /* end of #ifndef __MT6630_FM_H__ */