mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 09:21:26 +01:00
Merge "ipq40xx: Add DK01-C3 config support for Standard profile"
This commit is contained in:
commit
b7435142c8
2 changed files with 10 additions and 5 deletions
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue