u-boot-brain/arch/arm/mach-at91/include/mach
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
..
at91_common.h ARM: at91: spl: Add mck function to lower rate while switching 2017-09-14 16:02:44 -04:00
at91_dbu.h arm: at91: Change the Chip ID registers' addresses 2015-11-03 14:21:30 +01:00
at91_eefc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_emac.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_gpbr.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_matrix.h arm: at91: add CONFIG_AT91SAM9M10G45 2016-06-26 20:17:22 +02:00
at91_mc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pdc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pio.h pinctrl: at91: add pinctrl driver 2017-04-13 14:44:50 -06:00
at91_pit.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pmc.h ARM: at91: spl: Adjust switching to oscillator for SAMA5D2 2017-09-14 16:02:44 -04:00
at91_rstc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_rtc.h arm: at91: Add a header file for the real-time clock 2016-06-12 23:49:38 +02:00
at91_rtt.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_sck.h at91: Add support for the AT91 slow clock controller 2016-06-12 23:49:38 +02:00
at91_spi.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_st.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_tc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_wdt.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91rm9200.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_sdramc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_smc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9g45_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9g45.h at91: Add support for the AT91 slow clock controller 2016-06-12 23:49:38 +02:00
at91sam9rl_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9rl.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9x5_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9x5.h gpio: at91_gpio: remove CPU_HAS_PIO3 macro 2017-04-13 14:44:50 -06:00
at91sam9260_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9260.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9261_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9261.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9263_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9263.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
atmel_mpddrc.h board: sama5d4ek: fix DD2 configuration 2017-05-09 12:14:15 -06:00
atmel_pio4.h gpio: atmel_pio4: Move PIO4 definitions to head file 2016-08-15 22:58:03 +02:00
atmel_sdhci.h mmc: atmel: Add atmel sdhci support 2015-11-03 14:21:31 +01:00
atmel_serial.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
atmel_usba_udc.h arm: atmel: Add SAMA5D2 Xplained board 2015-11-30 22:27:53 +01:00
clk.h ARM: at91: clock: complete the GCK's clock sources 2016-05-24 08:08:36 +02:00
gpio.h ARM: at91: gpio: fix at91_set_gpio_value() define 2017-04-13 14:44:49 -06:00
hardware.h arm: atmel: Add SAMA5D2 Xplained board 2015-11-30 22:27:53 +01:00
sama5_boot.h ARM: at91: sama5: Extend boot device autodetection 2016-06-12 23:49:38 +02:00
sama5_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
sama5_sfr.h clk: at91: utmi: Set the reference clock frequency 2017-09-14 16:02:29 -04:00
sama5d2.h ARM: at91: sama5: Extend boot device autodetection 2016-06-12 23:49:38 +02:00
sama5d3_smc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
sama5d3.h gpio: at91_gpio: remove CPU_HAS_PIO3 macro 2017-04-13 14:44:50 -06:00
sama5d4.h gpio: at91_gpio: remove CPU_HAS_PIO3 macro 2017-04-13 14:44:50 -06:00