From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eoWUO-0006Zj-9h for barebox@lists.infradead.org; Wed, 21 Feb 2018 15:39:27 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoWUA-0000Sf-I0 for barebox@lists.infradead.org; Wed, 21 Feb 2018 16:39:10 +0100 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.90_1) (envelope-from ) id 1eoWUA-0006QN-AI for barebox@lists.infradead.org; Wed, 21 Feb 2018 16:39:10 +0100 From: Juergen Borleis Date: Wed, 21 Feb 2018 16:39:10 +0100 Message-Id: <20180221153910.24653-1-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ARM/i.MX53: fix SDRAM setup routines To: barebox@lists.infradead.org Fix setup of the SDRAM's MR0 register: 'val' gets overwritten by the chip select decision and nothing is written to the MR0 register. This fix is required since some i.MX53 based platforms still use this software setup routine to configure their SDRAMs. Signed-off-by: Juergen Borleis --- arch/arm/mach-imx/esdctl-v4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/esdctl-v4.c b/arch/arm/mach-imx/esdctl-v4.c index 0652b492e..6de4a8d6e 100644 --- a/arch/arm/mach-imx/esdctl-v4.c +++ b/arch/arm/mach-imx/esdctl-v4.c @@ -191,9 +191,9 @@ void imx_esdctlv4_start_ddr3_sdram(int cs) ESDCTL_V4_DDR3_REG_MR0 | val_cs1; if (cs) - val = ESDCTL_V4_ESDSCR_DLL_RST1; + val |= ESDCTL_V4_ESDSCR_DLL_RST1; else - val = ESDCTL_V4_ESDSCR_DLL_RST0; + val |= ESDCTL_V4_ESDSCR_DLL_RST0; writel(val, base + ESDCTL_V4_ESDSCR); -- 2.16.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox