]> git.baikalelectronics.ru Git - uboot.git/commit
board: sama5d2_xplained: Make SPL work on spiflash
authorWenyou Yang <wenyou.yang@microchip.com>
Wed, 13 Sep 2017 06:58:50 +0000 (14:58 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2017 20:02:44 +0000 (16:02 -0400)
commit60ffcadc2b47d423b380578f866154d005c10f1c
treeed8e76c277b06a93ea1eb708b6cd7288dc1c6e1b
parent8c2dca30ab1f0e0c80d7a0477c69b43a0b40ab44
board: sama5d2_xplained: Make SPL work on spiflash

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: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/atmel/sama5d2_xplained/sama5d2_xplained.c
include/configs/sama5d2_xplained.h