From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 2/4] arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo
Date: Wed, 29 Oct 2014 18:02:03 +0200 [thread overview]
Message-ID: <54510F7B.9050604@compulab.co.il> (raw)
In-Reply-To: <1414598184-1963-3-git-send-email-nikita@compulab.co.il>
Forgot the changelog:
On 29/10/14 17:56, Nikita Kiryanov wrote:
> 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>
> ---
Changes in V2:
- No changes.
> board/compulab/cm_fx6/spl.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c
> index 3948ba2..6fe937b 100644
> --- a/board/compulab/cm_fx6/spl.c
> +++ b/board/compulab/cm_fx6/spl.c
> @@ -235,10 +235,11 @@ static int cm_fx6_spl_dram_init(void)
>
> spl_mx6s_dram_init(DDR_32BIT_1GB, false);
> bank1_size = get_ram_size((long int *)PHYS_SDRAM_1, 0x80000000);
> - if (bank1_size == 0x40000000)
> - return 0;
> -
> + bank2_size = get_ram_size((long int *)PHYS_SDRAM_2, 0x80000000);
> if (bank1_size == 0x20000000) {
> + if (bank2_size == 0x20000000)
> + return 0;
> +
> spl_mx6s_dram_init(DDR_32BIT_512MB, true);
> return 0;
> }
>
--
Regards,
Nikita Kiryanov
next prev parent reply other threads:[~2014-10-29 16:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 15:56 [U-Boot] [PATCH V2 0/4] cm-fx6 updates Nikita Kiryanov
2014-10-29 15:56 ` [U-Boot] [PATCH V2 1/4] arm: mx6: cm_fx6: change issd gpio order Nikita Kiryanov
2014-10-29 16:01 ` Nikita Kiryanov
2014-11-02 14:33 ` Igor Grinberg
2014-10-29 15:56 ` [U-Boot] [PATCH V2 2/4] arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo Nikita Kiryanov
2014-10-29 16:02 ` Nikita Kiryanov [this message]
2014-11-02 14:34 ` Igor Grinberg
2014-10-29 15:56 ` [U-Boot] [PATCH V2 3/4] common: introduce board_preboot_os hook Nikita Kiryanov
2014-10-29 15:59 ` Otavio Salvador
2014-11-02 14:36 ` Igor Grinberg
2014-11-05 12:32 ` Stefano Babic
2014-11-06 11:31 ` Nikita Kiryanov
2014-10-29 15:56 ` [U-Boot] [PATCH V2 4/4] arm: mx6: cm_fx6: power down sata on OS boot Nikita Kiryanov
2014-10-29 15:59 ` Otavio Salvador
2014-11-02 14:36 ` Igor Grinberg
2014-11-05 16:19 ` [U-Boot] [PATCH V2 0/4] cm-fx6 updates Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54510F7B.9050604@compulab.co.il \
--to=nikita@compulab.co.il \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox