es_conf_info_cmu.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Change Logs:
  3. * Date Author Notes
  4. * 2021-04-20 liuhy the first version
  5. *
  6. * Copyright (C) 2021 Shanghai Eastsoft Microelectronics Co., Ltd. All rights reserved.
  7. *
  8. * SPDX-License-Identifier: Apache-2.0
  9. *
  10. * Licensed under the Apache License, Version 2.0 (the License); you may
  11. * not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  18. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. *
  22. */
  23. #ifndef __ES_CONF_INFO_CMU_H__
  24. #define __ES_CONF_INFO_CMU_H__
  25. #include <ald_cmu.h>
  26. /* 时钟树 配置 */
  27. #define ES_C_MUL_9 CMU_PLL1_OUTPUT_36M
  28. #define ES_C_MUL_12 CMU_PLL1_OUTPUT_48M
  29. #define ES_C_MUL_18 CMU_PLL1_OUTPUT_72M
  30. #define ES_C_MUL_24 CMU_PLL1_OUTPUT_96M
  31. #define ES_C_DIV_1 CMU_DIV_1
  32. #define ES_C_DIV_2 CMU_DIV_2
  33. #define ES_C_DIV_4 CMU_DIV_4
  34. #define ES_C_DIV_8 CMU_DIV_8
  35. #define ES_C_DIV_16 CMU_DIV_16
  36. #define ES_C_DIV_32 CMU_DIV_32
  37. #define ES_C_DIV_64 CMU_DIV_64
  38. #define ES_C_DIV_128 CMU_DIV_128
  39. #define ES_C_DIV_256 CMU_DIV_256
  40. #define ES_C_DIV_512 CMU_DIV_512
  41. #define ES_C_DIV_1024 CMU_DIV_1024
  42. #define ES_C_DIV_2048 CMU_DIV_2048
  43. #define ES_C_DIV_4096 CMU_DIV_4096
  44. #define ES_C_HOSC_DIV_1 CMU_PLL1_INPUT_HOSC
  45. #define ES_C_HOSC_DIV_2 CMU_PLL1_INPUT_HOSC_2
  46. #define ES_C_HOSC_DIV_3 CMU_PLL1_INPUT_HOSC_3
  47. #define ES_C_HOSC_DIV_4 CMU_PLL1_INPUT_HOSC_4
  48. #define ES_C_HOSC_DIV_5 CMU_PLL1_INPUT_HOSC_5
  49. #define ES_C_HOSC_DIV_6 CMU_PLL1_INPUT_HOSC_6
  50. #define ES_C_HRC_DIV_6 CMU_PLL1_INPUT_HRC_6
  51. #define ES_PLL1_REFER_CLK ES_C_HOSC_DIV_3
  52. #define ES_PLL1_OUT_CLK ES_C_MUL_18
  53. #define ES_CMU_PLL1_EN ES_C_ENABLE
  54. #define ES_CMU_PLL1_SAFE_EN ES_C_DISABLE
  55. #define ES_CMU_LOSC_EN ES_C_ENABLE
  56. #define ES_CMU_LRC_EN ES_C_ENABLE
  57. #define ES_CMU_HOSC_EN ES_C_ENABLE
  58. #define ES_CMU_HRC_EN ES_C_ENABLE
  59. #define ES_CMU_SYS_DIV ES_C_DIV_1
  60. #define ES_CMU_HCLK_1_DIV ES_C_DIV_2
  61. #define ES_CMU_HCLK_2_DIV ES_C_DIV_2
  62. #define ES_CMU_PCLK_1_DIV ES_C_DIV_2
  63. #define ES_CMU_PCLK_2_DIV ES_C_DIV_4
  64. #define ES_SYS_CLK_SOURSE CMU_CLOCK_PLL1
  65. #define ES_PLL_CLK 72000000
  66. #define ES_SYS_SOURCE_CLK 72000000
  67. #define ES_SYS_CLK 72000000
  68. #define ES_PCLK1_CLK 36000000
  69. #define ES_PCLK2_CLK 18000000
  70. #define ES_HCLK1_CLK 36000000
  71. #define ES_HCLK2_CLK 36000000
  72. #define ES_CMU_EXTERN_CLK_LOSC 32768
  73. #define ES_CMU_EXTERN_CLK_HOSC 12000000
  74. #endif