]> git.ipfire.org Git - people/ms/u-boot.git/commit
ARM: at91: spl: Adjust switching to oscillator for SAMA5D2
authorWenyou Yang <wenyou.yang@microchip.com>
Wed, 13 Sep 2017 06:58:48 +0000 (14:58 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2017 20:02:44 +0000 (16:02 -0400)
commit3ceb5118c6d7b0e042b399ef03b375fcef93b34d
treef255d76a2b4f49868db3467ef48b351db6074650
parent82e0646af782b854965b2cb6d49d462dcf9c7694
ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

As said in 29.5.7 section of SAMA5D2 datasheet, before switching to
the crystal oscillator, a check must be carried out to ensure that
the oscillator is present and that its freqency is valid.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-at91/include/mach/at91_pmc.h
arch/arm/mach-at91/spl_atmel.c