gnss_clk.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _GNSS_CLK_H_
  13. #define _GNSS_CLK_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_GNSS_CLK_BASE (0x1c010000)
  17. typedef volatile struct
  18. {
  19. uint32_t __0[10]; // 0x00000000
  20. uint32_t cgm_gnss_mtx_sel_cfg; // 0x00000028
  21. uint32_t __44[2]; // 0x0000002c
  22. uint32_t cgm_gnss_bb_pp_sel_cfg; // 0x00000034
  23. uint32_t __56[2]; // 0x00000038
  24. uint32_t cgm_gnss_adc_sel_cfg; // 0x00000040
  25. uint32_t cgm_busy_src_monitor_cfg0; // 0x00000044
  26. } HWP_GNSS_CLK_T;
  27. #define hwp_gnssClk ((HWP_GNSS_CLK_T *)REG_ACCESS_ADDRESS(REG_GNSS_CLK_BASE))
  28. // cgm_gnss_mtx_sel_cfg
  29. typedef union {
  30. uint32_t v;
  31. struct
  32. {
  33. uint32_t cgm_gnss_mtx_sel : 3; // [2:0]
  34. uint32_t __31_3 : 29; // [31:3]
  35. } b;
  36. } REG_GNSS_CLK_CGM_GNSS_MTX_SEL_CFG_T;
  37. // cgm_gnss_bb_pp_sel_cfg
  38. typedef union {
  39. uint32_t v;
  40. struct
  41. {
  42. uint32_t __15_0 : 16; // [15:0]
  43. uint32_t cgm_gnss_bb_pp_sel : 1; // [16]
  44. uint32_t __31_17 : 15; // [31:17]
  45. } b;
  46. } REG_GNSS_CLK_CGM_GNSS_BB_PP_SEL_CFG_T;
  47. // cgm_gnss_adc_sel_cfg
  48. typedef union {
  49. uint32_t v;
  50. struct
  51. {
  52. uint32_t __15_0 : 16; // [15:0]
  53. uint32_t cgm_gnss_adc_sel : 1; // [16]
  54. uint32_t __31_17 : 15; // [31:17]
  55. } b;
  56. } REG_GNSS_CLK_CGM_GNSS_ADC_SEL_CFG_T;
  57. // cgm_busy_src_monitor_cfg0
  58. typedef union {
  59. uint32_t v;
  60. struct
  61. {
  62. uint32_t cgm_busy_src_monitor0 : 9; // [8:0], read only
  63. uint32_t __31_9 : 23; // [31:9]
  64. } b;
  65. } REG_GNSS_CLK_CGM_BUSY_SRC_MONITOR_CFG0_T;
  66. // cgm_gnss_mtx_sel_cfg
  67. #define GNSS_CLK_CGM_GNSS_MTX_SEL(n) (((n)&0x7) << 0)
  68. // cgm_gnss_bb_pp_sel_cfg
  69. #define GNSS_CLK_CGM_GNSS_BB_PP_SEL (1 << 16)
  70. // cgm_gnss_adc_sel_cfg
  71. #define GNSS_CLK_CGM_GNSS_ADC_SEL (1 << 16)
  72. // cgm_busy_src_monitor_cfg0
  73. #define GNSS_CLK_CGM_BUSY_SRC_MONITOR0(n) (((n)&0x1ff) << 0)
  74. #endif // _GNSS_CLK_H_