From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Mon, 16 Feb 2015 22:37:26 +0100 Subject: [U-Boot] [PATCHv1 10/22] arm: socfpga: spl: add sdram init and calibration In-Reply-To: <1421253662-27222-11-git-send-email-dinguyen@opensource.altera.com> References: <1421253662-27222-1-git-send-email-dinguyen@opensource.altera.com> <1421253662-27222-11-git-send-email-dinguyen@opensource.altera.com> Message-ID: <20150216213726.GC3510@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed 2015-01-14 10:40:50, dinguyen at opensource.altera.com wrote: > From: Dinh Nguyen > > Add a call to checkboard along with sdram intilialization and calibration. > > /* enable console uart printing */ > preloader_console_init(); > + > + checkboard(); > + > + if (sdram_mmr_init_full(0xffffffff) != 0) > + hang(); > + puts("SDRAM: Calibrating PHY\n"); > + /* SDRAM calibration */ > + if (sdram_calibration_full() == 0) > + hang(); > } You might want to standartize on "== 0" ok, "< 0" errno returned.... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html