arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 29 Oct 2014 15:56:22 +0000 (17:56 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 5 Nov 2014 16:18:01 +0000 (17:18 +0100)
commit0b23780ff02bdbec46fac1fe4151e2ebf1eae881
treed67b37295134138d24b789d268f6953214e43540
parentb65cbab194307d29cdff2e246e2f97738d9b6a15
arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo

The 1GB DRAM configuration on mx6 solo uses 2 chip selects, but
the code tests 1GB DRAM configuration as if it is all present on one
chip select, and thus cannot see the full range of available memory.

Refactor the check to detect 1GB DRAM correctly.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
board/compulab/cm_fx6/spl.c