/***************************************************************************** 函 数 名 : BSP_InitPlatformVerInfo 功能描述 : 初始化芯片的版本号 输入参数 : 无 输出参数 : none 返 回 值 : void *****************************************************************************/ void BSP_InitPlatformVerInfo(void) { u32 addr; u32 product_type=0xff; COMP_TYPE_I comp_type; /*获取硬件版本号*/ product_type = bsp_version_get_board_chip_type(); if(HW_VER_INVALID==product_type){ ver_print_error("get board chip type fail!\n"); } if(HW_VER_PRODUCT_P531_FPGA == product_type){ comp_type=VER_SOC; } else{ comp_type=VER_ASIC; } addr=get_hi_version_id_version_id(); bsp_version_write_chip_version(addr,comp_type); if(HW_VER_PRODUCT_P531_FPGA == product_type||HW_VER_PRODUCT_UDP == product_type||HW_VER_K3V3_UDP == product_type){ bsp_version_write_chip_version(HI_GBBP_REG_BASE_ADDR_VIRT+HAL_GBBP_VERSION_ADDR,VER_GBBP); bsp_version_write_chip_version(HI_WBBP_REG_BASE_ADDR_VIRT+(WBBP_VERSION_ADDR-SOC_BBP_WCDMA_BASE_ADDR),VER_WBBP); } return; }
u32 bsp_version_get_chip_type(void) { return get_hi_version_id_version_id(); }