在此函数中添加对cus_param的赋值,通过函数,或者直接写入所需的值:
void platform_set_boot_args()
{
#if CFG_BOOT_ARGUMENT
bootarg.magic = BOOT_ARGUMENT_MAGIC;
bootarg.mode = g_boot_mode;
bootarg.e_flag = sp_check_platform();
bootarg.log_port = CFG_UART_LOG;
bootarg.log_baudrate = CFG_LOG_BAUDRATE;
bootarg.log_enable = (u8)log_status();
bootarg.dram_rank_num = get_dram_rank_nr();
get_dram_rank_size(bootarg.dram_rank_size);
bootarg.boot_reason = g_boot_reason;
bootarg.meta_com_type = (u32)g_meta_com_type;
bootarg.meta_com_id = g_meta_com_id;
bootarg.boot_time = get_timer(g_boot_time);
bootarg.part_num = g_dram_buf->part_num;
bootarg.part_info = g_dram_buf->part_info;
bootarg.ddr_reserve_enable = g_ddr_reserve_enable;
bootarg.ddr_reserve_success= g_ddr_reserve_success;
//mediatek add,mt_get_cus_param这个函数是客制化得到cus_param的函数,请自行实现
bootarg.cus_param = mt_get_cus_param();