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

Pavel Machek
2015-02-16T21:37:26Z

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