• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
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 #include "hal_config.h"
16 #include "efuse_hw.h"
17 #include "efuse_hal.h"
18 #include "efuse_ll.h"
19 
20 #if CFG_HAL_DEBUG_EFUSE
21 
efuse_struct_dump(void)22 void efuse_struct_dump(void)
23 {
24 	efuse_hw_t *hw = (efuse_hw_t *)EFUSE_LL_REG_BASE(0);
25 	SOC_LOGI("base=%x\r\n", (uint32_t)hw);
26 
27 	SOC_LOGI("  ctrl=0x%x value=0x%x\r\n", &hw->ctrl, hw->ctrl.v);
28 	SOC_LOGI("    en:       0x%x\r\n", hw->ctrl.en);
29 	SOC_LOGI("    dir:      0x%x\r\n", hw->ctrl.dir);
30 	SOC_LOGI("    addr:     0x%x\r\n", hw->ctrl.addr);
31 	SOC_LOGI("    wr_data:  0x%x\r\n", hw->ctrl.wr_data);
32 	SOC_LOGI("    vdd25_en: 0x%x\r\n", hw->ctrl.vdd25_en);
33 	SOC_LOGI("\r\n");
34 
35 	SOC_LOGI("  optr=0x%x value=0x%x\r\n", &hw->optr, hw->optr.v);
36 	SOC_LOGI("    rd_data:       0x%x\r\n", hw->optr.rd_data);
37 	SOC_LOGI("    rd_data_valid: 0x%x\r\n", hw->optr.rd_data_valid);
38 }
39 
40 #endif
41 
42 
43