analog_g3.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 _ANALOG_G3_H_
  13. #define _ANALOG_G3_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_ANALOG_G3_SET_OFFSET (1024)
  17. #define REG_ANALOG_G3_CLR_OFFSET (2048)
  18. #define REG_ANALOG_G3_BASE (0x51709000)
  19. typedef volatile struct
  20. {
  21. uint32_t analog_osc_26m_apll_ctrl; // 0x00000000
  22. uint32_t analog_osc_26m_reg_sel_cfg_0; // 0x00000004
  23. uint32_t __8[254]; // 0x00000008
  24. uint32_t analog_osc_26m_apll_ctrl_set; // 0x00000400
  25. uint32_t analog_osc_26m_reg_sel_cfg_0_set; // 0x00000404
  26. uint32_t __1032[254]; // 0x00000408
  27. uint32_t analog_osc_26m_apll_ctrl_clr; // 0x00000800
  28. uint32_t analog_osc_26m_reg_sel_cfg_0_clr; // 0x00000804
  29. } HWP_ANALOG_G3_T;
  30. #define hwp_analogG3 ((HWP_ANALOG_G3_T *)REG_ACCESS_ADDRESS(REG_ANALOG_G3_BASE))
  31. // analog_osc_26m_apll_ctrl
  32. typedef union {
  33. uint32_t v;
  34. struct
  35. {
  36. uint32_t analog_osc_26m_osc26m_ibas_ctrl : 1; // [0]
  37. uint32_t analog_osc_26m_osc26m_c_tune : 3; // [3:1]
  38. uint32_t analog_osc_26m_osc26m_r_tune : 4; // [7:4]
  39. uint32_t analog_osc_26m_osc26m_pu : 1; // [8]
  40. uint32_t __31_9 : 23; // [31:9]
  41. } b;
  42. } REG_ANALOG_G3_ANALOG_OSC_26M_APLL_CTRL_T;
  43. // analog_osc_26m_reg_sel_cfg_0
  44. typedef union {
  45. uint32_t v;
  46. struct
  47. {
  48. uint32_t dbg_sel_analog_osc_26m_osc26m_pu : 1; // [0]
  49. uint32_t __31_1 : 31; // [31:1]
  50. } b;
  51. } REG_ANALOG_G3_ANALOG_OSC_26M_REG_SEL_CFG_0_T;
  52. // analog_osc_26m_apll_ctrl
  53. #define ANALOG_G3_ANALOG_OSC_26M_OSC26M_IBAS_CTRL (1 << 0)
  54. #define ANALOG_G3_ANALOG_OSC_26M_OSC26M_C_TUNE(n) (((n)&0x7) << 1)
  55. #define ANALOG_G3_ANALOG_OSC_26M_OSC26M_R_TUNE(n) (((n)&0xf) << 4)
  56. #define ANALOG_G3_ANALOG_OSC_26M_OSC26M_PU (1 << 8)
  57. // analog_osc_26m_reg_sel_cfg_0
  58. #define ANALOG_G3_DBG_SEL_ANALOG_OSC_26M_OSC26M_PU (1 << 0)
  59. #endif // _ANALOG_G3_H_