aboutsummaryrefslogtreecommitdiff
path: root/drivers/ddr/fsl/fsl_mmdc.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-09-09 17:32:44 +0200
committerTom Rini <trini@konsulko.com>2022-09-23 15:13:18 -0400
commit272199765412182f82ff789eaeffb2d93d70a01e (patch)
treed8400022c4ccc1dfbd31b31d4ca7b0ea4c360dd1 /drivers/ddr/fsl/fsl_mmdc.c
parent922460be0b72b40cae52f5e870d38c90b609b64b (diff)
ddr: fsl: Allow to detect 4 GB DDR modules in 32-bit mode
U-Boot core code already handles the case when RAM size is bigger than CONFIG_MAX_MEM_MAPPED. So there is no need to do duplicate check in fsl ddr driver for CONFIG_MAX_MEM_MAPPED. Instead simplify code to just check if RAM size can be representable in phys_size_t type. And avoid printing warning if phys_size_t is just 1 byte smaller than RAM size, which is the typical situation with 4 GB DDR module. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'drivers/ddr/fsl/fsl_mmdc.c')
0 files changed, 0 insertions, 0 deletions