]> git.baikalelectronics.ru Git - uboot.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)
commitf0534ab1608b4ecf6c73d4d408df0de55ac04f4a
treef255d76a2b4f49868db3467ef48b351db6074650
parent74e85d263b1dad81d476b1657b900be5693cbb03
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