Merge "ipq40xx: Add DK01-C3 config support for Standard profile"

This commit is contained in:
Linux Build Service Account 2018-02-19 06:04:02 -08:00 committed by Gerrit - the friendly Code Review server
commit b7435142c8
2 changed files with 10 additions and 5 deletions

View file

@ -16,5 +16,5 @@
/ {
machid = <0x8010200>;
ddr_size = <128>;
config_name = "config@ap.dk01.1-c3";
config_name = "config@ap.dk01.1-c3,config@ap.dk01.1-c1";
};

View file

@ -334,10 +334,15 @@ int config_select(unsigned int addr, char *rcmd, int rcmd_size)
}
}
if (fit_conf_get_node((void *)addr, dtb_config_name) >= 0) {
snprintf(rcmd, rcmd_size, "bootm 0x%x#%s\n",
addr, dtb_config_name);
return 0;
char *tok = strtok(dtb_config_name, ",");
while(tok != NULL){
if (fit_conf_get_node((void *)addr, tok) >= 0) {
snprintf(rcmd, rcmd_size, "bootm 0x%x#%s\n",
addr, tok);
return 0;
}
tok = strtok(NULL, ",");
}
printf("Config not availabale\n");