[U-Boot] [PATCH 2/6] ARM: at91: spl: Add mck function to lower rate while switching

Simon Glass sjg at chromium.org
Fri Jul 28 04:20:12 UTC 2017


Hi Wenyou,

On 20 July 2017 at 02:12, Wenyou Yang <wenyou.yang at 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 at 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


More information about the U-Boot mailing list