u-boot-brain/arch/arm/mach-at91/armv7
Wenyou Yang 2b21cf55cc ARM: at91: spl: Add mck function to lower rate while switching
Refer to the commit 70f8c8316ad(PMC: add new mck function to lower
rate while switching) from AT91Bootstrap.

While switching to a lower clock source, we must switch the clock
source first instead of last. Otherwise, we could end up with
too high frequency on internal bus and peripherals.
This happens on SAMA5D2 as exitting from the ROM code.

Add a function pmc_mck_init_down() to allow this sequence.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-09-14 16:02:44 -04:00
..
clock.c ARM: at91: spl: Add mck function to lower rate while switching 2017-09-14 16:02:44 -04:00
cpu.c ARM: cpu: at91: clean up peripheral clock code 2016-02-18 21:34:40 +01:00
Makefile driver: timer: Add the Atmel PIT timer driver 2017-08-26 14:56:08 -04:00
reset.c ARM: at91: collect SoC sources into mach-at91 2015-02-21 08:23:51 -05:00
sama5d2_devices.c ARM: at91: armv7: clean up UTMI PLL handle code 2016-02-18 21:34:40 +01:00
sama5d3_devices.c gpio: at91_gpio: remove CPU_HAS_PIO3 macro 2017-04-13 14:44:50 -06:00
sama5d4_devices.c ARM: at91: armv7: clean up UTMI PLL handle code 2016-02-18 21:34:40 +01:00
timer.c ARM: cpu: at91: clean up peripheral clock code 2016-02-18 21:34:40 +01:00
u-boot-spl.lds ARM: at91: lds: use "_image_binary_end" for DT location 2017-04-13 14:44:52 -06:00