From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Tue, 12 Aug 2014 14:29:19 +0300 Subject: [U-Boot] [PATCH V2 10/18] arm: mx6: ddr: configure MMDC for slow_pd In-Reply-To: <1407690780-19645-2-git-send-email-nikita@compulab.co.il> References: <1407690780-19645-1-git-send-email-nikita@compulab.co.il> <1407690780-19645-2-git-send-email-nikita@compulab.co.il> Message-ID: <53E9FA8F.60006@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/10/14 20:12, Nikita Kiryanov wrote: > According to MX6 TRM, both MMDC and DRAM should be configured to > the same powerdown precharge. Currently, mx6_dram_cfg() > configures MMDC for fast pd (MDPDC[7] = 0), and the DRAM for > 'slow exit (DLL off)' (MR0[12] = 0). > > Configure MMDC for slow pd. > > Cc: Stefano Babic > Cc: Tim Harvey > Signed-off-by: Nikita Kiryanov Acked-by: Igor Grinberg > --- > Changes in V2: > - Updated commit message to explain what bits in what registers > correspond to what settings. > > arch/arm/cpu/armv7/mx6/ddr.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c > index 70ce38f..c0fb749 100644 > --- a/arch/arm/cpu/armv7/mx6/ddr.c > +++ b/arch/arm/cpu/armv7/mx6/ddr.c > @@ -463,6 +463,7 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo, > mmdc0->mdpdc = (tcke & 0x7) << 16 | > 5 << 12 | /* PWDT_1: 256 cycles */ > 5 << 8 | /* PWDT_0: 256 cycles */ > + 1 << 7 | /* SLOW_PD */ > 1 << 6 | /* BOTH_CS_PD */ > (tcksrx & 0x7) << 3 | > (tcksre & 0x7); > -- Regards, Igor.