Skip to content
Snippets Groups Projects
Commit 07ee927d authored by Nikita Kiryanov's avatar Nikita Kiryanov Committed by Stefano Babic
Browse files

arm: mx6: ddr: fix cs0_end calculation


Current way of calculation CS0_END field for MMDCx_MDASP register
is problematic because in most cases the user is forced to define
cs_density in an unnatural way: as value - 2, instead of value.

This breaks the abstraction provided by struct mx6_ddr_sysinfo
because the user is forced to be aware of the way the calculation
is performed.

Refactor the calculation.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
parent 08155289
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment