[fix] fix build error

This commit is contained in:
jzlv 2022-12-08 16:15:29 +08:00
parent 9ad915ef1f
commit 34a5fe8e0b
2 changed files with 3 additions and 2 deletions

View File

@ -123,6 +123,7 @@
#define GPIO_FUNC_JTAG_LP (25 << GPIO_FUNC_SHIFT) #define GPIO_FUNC_JTAG_LP (25 << GPIO_FUNC_SHIFT)
#define GPIO_FUNC_JTAG_M0 (26 << GPIO_FUNC_SHIFT) #define GPIO_FUNC_JTAG_M0 (26 << GPIO_FUNC_SHIFT)
#define GPIO_FUNC_JTAG_D0 (27 << GPIO_FUNC_SHIFT) #define GPIO_FUNC_JTAG_D0 (27 << GPIO_FUNC_SHIFT)
#define GPIO_FUNC_CLKOUT (31 << GPIO_FUNC_SHIFT)
#elif defined(BL628) #elif defined(BL628)
#define GPIO_FUNC_SDH (0 << GPIO_FUNC_SHIFT) #define GPIO_FUNC_SDH (0 << GPIO_FUNC_SHIFT)
#define GPIO_FUNC_SPI0 (1 << GPIO_FUNC_SHIFT) #define GPIO_FUNC_SPI0 (1 << GPIO_FUNC_SHIFT)

View File

@ -41,8 +41,8 @@ void System_Post_Init(void)
/* fix amr setting */ /* fix amr setting */
uintptr_t tmpVal = 0; uintptr_t tmpVal = 0;
Efuse_Chip_Info_Type chip_info; bflb_efuse_device_info_type chip_info;
EF_Ctrl_Get_Chip_Info(&chip_info); bflb_ef_ctrl_get_device_info(&chip_info);
/* if not B0 enable AMR */ /* if not B0 enable AMR */
if (chip_info.chipInfo != BL808_B0) { if (chip_info.chipInfo != BL808_B0) {
tmpVal = __get_MHINT(); tmpVal = __get_MHINT();