Re: [U-Boot] [PATCH] board: sama5d2_xplained: Make SPL work on spiflash

2017-07-27 Thread Simon Glass
On 20 July 2017 at 02:28, Wenyou Yang wrote: > Because before switching to a lower clock source, we must switch > the clock source first instead of last. So before configuring the > PMC_MCKR register, invoke at91_mck_init_down() first. > > As said in datasheet, the the size of SPL must not exceed

[U-Boot] [PATCH] board: sama5d2_xplained: Make SPL work on spiflash

2017-07-20 Thread Wenyou Yang
Because before switching to a lower clock source, we must switch the clock source first instead of last. So before configuring the PMC_MCKR register, invoke at91_mck_init_down() first. As said in datasheet, the the size of SPL must not exceed the maximum size allowed(64Kbytes). Signed-off-by: Wen