From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/9] mx23_olinuxino: Fix DDR pin iomux settings
Date: Wed, 1 May 2013 18:44:44 -0300 [thread overview]
Message-ID: <1367444689-31301-5-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1367444689-31301-1-git-send-email-festevam@gmail.com>
From: Fabio Estevam <fabio.estevam@freescale.com>
Registers HW_PINCTRL_DRIVE9, HW_PINCTRL_DRIVE10, HW_PINCTRL_DRIVE11,
HW_PINCTRL_DRIVE12, HW_PINCTRL_DRIVE13 and HW_PINCTRL_DRIVE14 control the drive
strength and the voltage selection for the DDR pins.
The reset values of the voltage selection pins are '1', which is marked as
'reserved' in the mx23 reference manual.
Clear these bits for proper operation of DDR.
Also change MUX_CONFIG_EMI, which results in better stability and match the
bootlets code from Freescale.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
board/olimex/mx23_olinuxino/spl_boot.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/board/olimex/mx23_olinuxino/spl_boot.c b/board/olimex/mx23_olinuxino/spl_boot.c
index a96c293..5a43677 100644
--- a/board/olimex/mx23_olinuxino/spl_boot.c
+++ b/board/olimex/mx23_olinuxino/spl_boot.c
@@ -30,7 +30,7 @@
#include <asm/arch/sys_proto.h>
#define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_16MA | MXS_PAD_PULLUP)
-#define MUX_CONFIG_SSP (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
+#define MUX_CONFIG_SSP MXS_PAD_12MA
const iomux_cfg_t iomux_setup[] = {
/* DUART */
@@ -103,5 +103,16 @@ const iomux_cfg_t iomux_setup[] = {
void board_init_ll(void)
{
+ struct mxs_pinctrl_regs *pinctrl =
+ (struct mxs_pinctrl_regs *)MXS_PINCTRL_BASE;
+
+ /* Clear the voltage bits for EMI pins as the reset value is invalid */
+ writel(0, &pinctrl->drive9);
+ writel(0, &pinctrl->drive10);
+ writel(0, &pinctrl->drive11);
+ writel(0, &pinctrl->drive12);
+ writel(0, &pinctrl->drive13);
+ writel(0, &pinctrl->drive14);
+ writel(0, &pinctrl->drive9);
mxs_common_spl_init(iomux_setup, ARRAY_SIZE(iomux_setup));
}
--
1.7.9.5
next prev parent reply other threads:[~2013-05-01 21:44 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 21:44 [U-Boot] [PATCH 0/9] mx23: Make DDR initialization stable Fabio Estevam
2013-05-01 21:44 ` [U-Boot] [PATCH 1/9] mxs: Make the names of the elements of mxs_pinctrl_regs shorter Fabio Estevam
2013-05-01 23:26 ` Marek Vasut
2013-05-01 23:52 ` Fabio Estevam
2013-05-02 0:12 ` Marek Vasut
2013-05-01 21:44 ` [U-Boot] [PATCH 2/9] mx23: regs-pinctrl.h: Add pinctrl support for mx23 Fabio Estevam
2013-05-01 23:27 ` Marek Vasut
2013-05-01 23:52 ` Fabio Estevam
2013-05-02 0:13 ` Marek Vasut
2013-05-02 0:28 ` Fabio Estevam
2013-05-02 1:44 ` Marek Vasut
2013-05-01 21:44 ` [U-Boot] [PATCH 3/9] mx23evk: Fix DDR pin iomux settings Fabio Estevam
2013-05-01 23:28 ` Marek Vasut
2013-05-01 23:56 ` Fabio Estevam
2013-05-02 0:13 ` Marek Vasut
2013-05-01 21:44 ` Fabio Estevam [this message]
2013-05-01 23:28 ` [U-Boot] [PATCH 4/9] mx23_olinuxino: " Marek Vasut
2013-05-01 23:53 ` Fabio Estevam
2013-05-02 0:14 ` Marek Vasut
2013-05-02 2:34 ` Fabio Estevam
2013-05-01 21:44 ` [U-Boot] [PATCH 5/9] mx23evk: Disable the internal pad keepers Fabio Estevam
2013-05-01 21:44 ` [U-Boot] [PATCH 6/9] mx23_olinuxino: " Fabio Estevam
2013-05-01 21:44 ` [U-Boot] [PATCH 7/9] mxs: spl_mem_init: Remove unneeded DRAM configurations Fabio Estevam
2013-05-01 23:29 ` Marek Vasut
2013-05-01 23:54 ` Fabio Estevam
2013-05-02 0:15 ` Marek Vasut
2013-05-02 0:24 ` Fabio Estevam
2013-05-01 21:44 ` [U-Boot] [PATCH 8/9] mxs: spl_mem_init: Skip the initialization of some DRAM_CTL registers Fabio Estevam
2013-05-01 23:30 ` Marek Vasut
2013-05-05 14:40 ` Stefano Babic
2013-05-01 21:44 ` [U-Boot] [PATCH 9/9] mxs: spl_mem_init: Change EMI port priority Fabio Estevam
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=1367444689-31301-5-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--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