]> git.baikalelectronics.ru Git - uboot.git/commit
clk: at91: utmi: Set the reference clock frequency
authorWenyou Yang <wenyou.yang@microchip.com>
Tue, 5 Sep 2017 10:30:07 +0000 (18:30 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2017 20:02:29 +0000 (16:02 -0400)
commiteb7b4edf1eeb5294353853e3b3478105cee7b4ec
treeaaf4d9198f4f0eb024518b420d8229486b175976
parent06bd6d1707658ec0e0d0d077211309e0266c5527
clk: at91: utmi: Set the reference clock frequency

By default, it is assumed that the UTMI clock is generated from
a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ
field of the SFR_UTMICKTRIM has to be updated to generate the UTMI
clock in the proper way.

The UTMI clock has a fixed rate of 480 MHz. In fact, there is no
multiplier we can configure. The multiplier is managed internally,
depending on the reference clock frequency, to achieve the target
of 480 MHz.

The patch is cloned from the patch of mailing-list:
[PATCH v2] clk: at91: utmi: set the mainck rate

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
[trini: Depend on SPL_DM]
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-at91/include/mach/sama5_sfr.h
drivers/clk/at91/Kconfig
drivers/clk/at91/clk-utmi.c
drivers/clk/at91/pmc.h