
28 Jul
2017
28 Jul
'17
6:20 a.m.
Hi Wenyou,
On 20 July 2017 at 02:12, Wenyou Yang wenyou.yang@microchip.com wrote:
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 happen on SAMA5D2 as we exit from ROM code @396MHz.
Add a function pmc_mck_init_down() to allow this sequence.
Signed-off-by: Wenyou Yang wenyou.yang@microchip.com
arch/arm/mach-at91/armv7/clock.c | 36 +++++++++++++++++++++++++++ arch/arm/mach-at91/include/mach/at91_common.h | 1 + 2 files changed, 37 insertions(+)
Can this move into a clock driver instead?
Regards, Simon