bootqca: Device-tree config name made board specific

device-tree name suffix with soc version
is made specific to ipq806x

Change-Id: I32913a13929127ff41cec83d1319f0c98fdb3127
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-09-22 04:02:05 +05:30
parent 003edf6a05
commit 5f8a5f8916

View file

@ -199,6 +199,7 @@ int config_select(unsigned int addr, char *rcmd, int rcmd_size)
sizeof(dtb_config_name), "%s", config);
ipq_smem_get_socinfo_version((uint32_t *)&soc_version);
#ifdef CONFIG_ARCH_IPQ806x
if(SOCINFO_VERSION_MAJOR(soc_version) >= 2) {
snprintf(dtb_config_name + strlen("config@"),
sizeof(dtb_config_name) - strlen("config@"),
@ -206,6 +207,7 @@ int config_select(unsigned int addr, char *rcmd, int rcmd_size)
SOCINFO_VERSION_MAJOR(soc_version),
config + strlen("config@"));
}
#endif
}
if (fit_conf_get_node((void *)addr, dtb_config_name) >= 0) {