mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-27 16:51:34 +02:00
driver: net: fsl-mc: Use base 16 in simple_strtoul
Value provided in MC_MEM_SIZE_ENV_VAR is in hex. Use 16 as base in simple_strtoul. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
d9195c62fa
commit
f53e12d80a
@ -118,7 +118,7 @@ Environment Variables
|
|||||||
mcboottimeout: MC boot timeout in milliseconds. If this variable is not defined
|
mcboottimeout: MC boot timeout in milliseconds. If this variable is not defined
|
||||||
the value CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS will be assumed.
|
the value CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS will be assumed.
|
||||||
|
|
||||||
mcmemsize: MC DRAM block size. If this variable is not defined, the value
|
mcmemsize: MC DRAM block size in hex. If this variable is not defined, the value
|
||||||
CONFIG_SYS_LS_MC_DRAM_BLOCK_MIN_SIZE will be assumed.
|
CONFIG_SYS_LS_MC_DRAM_BLOCK_MIN_SIZE will be assumed.
|
||||||
|
|
||||||
mcinitcmd: This environment variable is defined to initiate MC and DPL deployment
|
mcinitcmd: This environment variable is defined to initiate MC and DPL deployment
|
||||||
|
@ -826,7 +826,7 @@ unsigned long mc_get_dram_block_size(void)
|
|||||||
|
|
||||||
if (dram_block_size_env_var) {
|
if (dram_block_size_env_var) {
|
||||||
dram_block_size = simple_strtoul(dram_block_size_env_var, NULL,
|
dram_block_size = simple_strtoul(dram_block_size_env_var, NULL,
|
||||||
10);
|
16);
|
||||||
|
|
||||||
if (dram_block_size < CONFIG_SYS_LS_MC_DRAM_BLOCK_MIN_SIZE) {
|
if (dram_block_size < CONFIG_SYS_LS_MC_DRAM_BLOCK_MIN_SIZE) {
|
||||||
printf("fsl-mc: WARNING: Invalid value for \'"
|
printf("fsl-mc: WARNING: Invalid value for \'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user