[U-Boot] [PATCHv1 10/22] arm: socfpga: spl: add sdram init and calibration

Pavel Machek pavel at denx.de
Mon Feb 16 22:37:26 CET 2015


On Wed 2015-01-14 10:40:50, dinguyen at opensource.altera.com wrote:
> From: Dinh Nguyen <dinguyen at opensource.altera.com>
> 
> 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


More information about the U-Boot mailing list