diff options
author | Tom Rini <trini@konsulko.com> | 2022-04-27 09:19:41 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-27 09:19:41 -0400 |
commit | 8b2b125e95c44bb007b4573945f4aedb8a56222c (patch) | |
tree | 0eed8a3f6e53131583134e00258984f144845f31 /drivers/ddr | |
parent | 24df831cd4ab70fe526e561b07ca37c8b8aa544c (diff) | |
parent | 182d45ddff8944e291c805d94a01d7dd29d0d3b6 (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx
fsl-qoriq: Fixes and updates on fsl-layerscape
mpc85xx: fixes and code cleanup
Diffstat (limited to 'drivers/ddr')
-rw-r--r-- | drivers/ddr/fsl/options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c index c000a45f8ea..9555b9a29d4 100644 --- a/drivers/ddr/fsl/options.c +++ b/drivers/ddr/fsl/options.c @@ -761,7 +761,9 @@ unsigned int populate_memctl_options(const common_timing_params_t *common_dimm, * Extract hwconfig from environment since we have not properly setup * the environment but need it for ddr config params */ +#if CONFIG_IS_ENABLED(ENV_SUPPORT) if (env_get_f("hwconfig", buf, sizeof(buf)) < 0) +#endif buf[0] = '\0'; #if defined(CONFIG_SYS_FSL_DDR3) || \ @@ -1408,7 +1410,9 @@ int fsl_use_spd(void) * Extract hwconfig from environment since we have not properly setup * the environment but need it for ddr config params */ +#if CONFIG_IS_ENABLED(ENV_SUPPORT) if (env_get_f("hwconfig", buf, sizeof(buf)) < 0) +#endif buf[0] = '\0'; /* if hwconfig is not enabled, or "sdram" is not defined, use spd */ |