Skip to content
Commit 2ab7bbf7 authored by Moti Buskila's avatar Moti Buskila Committed by Stefan Roese
Browse files

ddr: marvell: a38x: fix memory cs size function



commit c8b301463d508c807a33f7b7eaea98bbda4aa35e upstream.

The funtion returnd cs size in byte instead of MB, that cause
calculation error since the caller was expected to get u32 and when he
got above 4G it refers it as 0.
The fix was to get the cs memory size from function as in MB and then
multiply it by 1MB.

Signed-off-by: default avatarMoti Buskila <motib@marvell.com>
Reviewed-by: default avatarKostya Porotchkin <kostap@marvell.com>
Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Tested-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
parent b85c6fb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment