Skip to content
Snippets Groups Projects
Commit 2b21cf55 authored by Wenyou Yang's avatar Wenyou Yang Committed by Tom Rini
Browse files

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: default avatarWenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 3ceb5118
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment