1 // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 /** 18 * @file regi2c_apll.h 19 * @brief Register definitions for audio PLL (APLL) 20 * 21 * This file lists register fields of APLL, located on an internal configuration 22 * bus. These definitions are used via macros defined in regi2c_ctrl.h, by 23 * rtc_clk_apll_enable function in rtc_clk.c. 24 */ 25 26 #define I2C_APLL 0X6D 27 #define I2C_APLL_HOSTID 3 28 29 #define I2C_APLL_IR_CAL_DELAY 0 30 #define I2C_APLL_IR_CAL_DELAY_MSB 3 31 #define I2C_APLL_IR_CAL_DELAY_LSB 0 32 33 #define I2C_APLL_IR_CAL_RSTB 0 34 #define I2C_APLL_IR_CAL_RSTB_MSB 4 35 #define I2C_APLL_IR_CAL_RSTB_LSB 4 36 37 #define I2C_APLL_IR_CAL_START 0 38 #define I2C_APLL_IR_CAL_START_MSB 5 39 #define I2C_APLL_IR_CAL_START_LSB 5 40 41 #define I2C_APLL_IR_CAL_UNSTOP 0 42 #define I2C_APLL_IR_CAL_UNSTOP_MSB 6 43 #define I2C_APLL_IR_CAL_UNSTOP_LSB 6 44 45 #define I2C_APLL_OC_ENB_FCAL 0 46 #define I2C_APLL_OC_ENB_FCAL_MSB 7 47 #define I2C_APLL_OC_ENB_FCAL_LSB 7 48 49 #define I2C_APLL_IR_CAL_EXT_CAP 1 50 #define I2C_APLL_IR_CAL_EXT_CAP_MSB 4 51 #define I2C_APLL_IR_CAL_EXT_CAP_LSB 0 52 53 #define I2C_APLL_IR_CAL_ENX_CAP 1 54 #define I2C_APLL_IR_CAL_ENX_CAP_MSB 5 55 #define I2C_APLL_IR_CAL_ENX_CAP_LSB 5 56 57 #define I2C_APLL_OC_LBW 1 58 #define I2C_APLL_OC_LBW_MSB 6 59 #define I2C_APLL_OC_LBW_LSB 6 60 61 #define I2C_APLL_IR_CAL_CK_DIV 2 62 #define I2C_APLL_IR_CAL_CK_DIV_MSB 3 63 #define I2C_APLL_IR_CAL_CK_DIV_LSB 0 64 65 #define I2C_APLL_OC_DCHGP 2 66 #define I2C_APLL_OC_DCHGP_MSB 6 67 #define I2C_APLL_OC_DCHGP_LSB 4 68 69 #define I2C_APLL_OC_ENB_VCON 2 70 #define I2C_APLL_OC_ENB_VCON_MSB 7 71 #define I2C_APLL_OC_ENB_VCON_LSB 7 72 73 #define I2C_APLL_OR_CAL_CAP 3 74 #define I2C_APLL_OR_CAL_CAP_MSB 4 75 #define I2C_APLL_OR_CAL_CAP_LSB 0 76 77 #define I2C_APLL_OR_CAL_UDF 3 78 #define I2C_APLL_OR_CAL_UDF_MSB 5 79 #define I2C_APLL_OR_CAL_UDF_LSB 5 80 81 #define I2C_APLL_OR_CAL_OVF 3 82 #define I2C_APLL_OR_CAL_OVF_MSB 6 83 #define I2C_APLL_OR_CAL_OVF_LSB 6 84 85 #define I2C_APLL_OR_CAL_END 3 86 #define I2C_APLL_OR_CAL_END_MSB 7 87 #define I2C_APLL_OR_CAL_END_LSB 7 88 89 #define I2C_APLL_OR_OUTPUT_DIV 4 90 #define I2C_APLL_OR_OUTPUT_DIV_MSB 4 91 #define I2C_APLL_OR_OUTPUT_DIV_LSB 0 92 93 #define I2C_APLL_OC_TSCHGP 4 94 #define I2C_APLL_OC_TSCHGP_MSB 6 95 #define I2C_APLL_OC_TSCHGP_LSB 6 96 97 #define I2C_APLL_EN_FAST_CAL 4 98 #define I2C_APLL_EN_FAST_CAL_MSB 7 99 #define I2C_APLL_EN_FAST_CAL_LSB 7 100 101 #define I2C_APLL_OC_DHREF_SEL 5 102 #define I2C_APLL_OC_DHREF_SEL_MSB 1 103 #define I2C_APLL_OC_DHREF_SEL_LSB 0 104 105 #define I2C_APLL_OC_DLREF_SEL 5 106 #define I2C_APLL_OC_DLREF_SEL_MSB 3 107 #define I2C_APLL_OC_DLREF_SEL_LSB 2 108 109 #define I2C_APLL_SDM_DITHER 5 110 #define I2C_APLL_SDM_DITHER_MSB 4 111 #define I2C_APLL_SDM_DITHER_LSB 4 112 113 #define I2C_APLL_SDM_STOP 5 114 #define I2C_APLL_SDM_STOP_MSB 5 115 #define I2C_APLL_SDM_STOP_LSB 5 116 117 #define I2C_APLL_SDM_RSTB 5 118 #define I2C_APLL_SDM_RSTB_MSB 6 119 #define I2C_APLL_SDM_RSTB_LSB 6 120 121 #define I2C_APLL_OC_DVDD 6 122 #define I2C_APLL_OC_DVDD_MSB 4 123 #define I2C_APLL_OC_DVDD_LSB 0 124 125 #define I2C_APLL_DSDM2 7 126 #define I2C_APLL_DSDM2_MSB 5 127 #define I2C_APLL_DSDM2_LSB 0 128 129 #define I2C_APLL_DSDM1 8 130 #define I2C_APLL_DSDM1_MSB 7 131 #define I2C_APLL_DSDM1_LSB 0 132 133 #define I2C_APLL_DSDM0 9 134 #define I2C_APLL_DSDM0_MSB 7 135 #define I2C_APLL_DSDM0_LSB 0 136