summaryrefslogtreecommitdiff
path: root/Licenses
diff options
context:
space:
mode:
authorJon Nettleton <jon@solid-run.com>2018-06-07 16:17:37 +0300
committerStefano Babic <sbabic@denx.de>2018-06-18 16:50:55 +0200
commit51f957adf77575075b69a95a37f118653532892c (patch)
treebb89e127ee83d3d776642ca72485dc30f2571644 /Licenses
parent73708200f05501c5d9b7cb6d0a29b0839120b3c0 (diff)
downloadu-boot-51f957adf77575075b69a95a37f118653532892c.tar.gz
mx6cuboxi: fix 4GB ddr memory detection
The soms with 4GB ddr have a rowaddr of 16 not 15, this allows the detection mechanism to properly identify them as 4GB. However these soms can be populated with whatever amount of memory the customer requests therefor we need a ram stride test. We can not use the get_ram_size() function because not all 4GB's of DDR is addressable on a 32-bit architecture. Therefore instead we use a memory stride of 128MB's and look for the address that the memory wraps. This function is used for all som types to catch most memory configurations. This is a revised version of Rabeeh Khoury's original code. Signed-off-by: Jon Nettleton <jon@solid-run.com> Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'Licenses')
0 files changed, 0 insertions, 0 deletions