From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spl_mem_init.c : Added support for mDDR in SPL for i.MX28
Date: Tue, 03 Mar 2015 17:47:38 +0100 [thread overview]
Message-ID: <54F5E5AA.5060407@denx.de> (raw)
In-Reply-To: <1424702099-7799-1-git-send-email-m.cavallini@koansoftware.com>
Hi Marco,
On 23/02/2015 15:34, Marco Cavallini wrote:
>
> Signed-off-by: Marco Cavallini <m.cavallini@koansoftware.com>
> ---
> arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
> index a744e5d..9e11288 100644
> --- a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
> +++ b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
> @@ -315,9 +315,27 @@ static void mx28_mem_init(void)
>
> debug("SPL: Initialising mx28 SDRAM Controller\n");
>
> +#ifndef CONFIG_SYS_MXS_mDDR
> /* Set DDR2 mode */
> writel(PINCTRL_EMI_DS_CTRL_DDR_MODE_DDR2,
> &pinctrl_regs->hw_pinctrl_emi_ds_ctrl_set);
> +#else
> + /* Set mDDR mode */
> + writel( PINCTRL_EMI_DS_CTRL_ADDRESS_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_CONTROL_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_DUALPAD_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_SLICE3_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_SLICE2_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_SLICE1_MA_MASK |
> + PINCTRL_EMI_DS_CTRL_SLICE0_MA_MASK,
> + &pinctrl_regs->hw_pinctrl_emi_ds_ctrl);
> +
> + /* Configure Pins 0-15 as EMI pins */
> + writel(0, &pinctrl_regs->hw_pinctrl_muxsel10);
> + writel(0, &pinctrl_regs->hw_pinctrl_muxsel11);
> + writel(0, &pinctrl_regs->hw_pinctrl_muxsel12);
> + writel(0, &pinctrl_regs->hw_pinctrl_muxsel13);
> +#endif
The thing is that there is no use case in mainline, because no board is
using it. To avoid that the issue is completely hidden, I suggest to add
at least documentation for CONFIG_SYS_MXS_mDDR in README. If someone
else will use mDDR, it will be easy to find how.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2015-03-03 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 14:34 [U-Boot] [PATCH] spl_mem_init.c : Added support for mDDR in SPL for i.MX28 Marco Cavallini
2015-02-26 15:43 ` Fabio Estevam
2015-03-03 16:47 ` Stefano Babic [this message]
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=54F5E5AA.5060407@denx.de \
--to=sbabic@denx.de \
--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