]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: at91: utmi: set the mainck rate
authorLudovic Desroches <ludovic.desroches@microchip.com>
Wed, 6 Sep 2017 09:51:59 +0000 (11:51 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 06:39:49 +0000 (23:39 -0700)
commit92041a9ff003858f117009501c14f2d075dd68ce
treebc5c37cdab66bbc02b5aed55b4fb8a297ab82415
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
clk: at91: utmi: set the mainck rate

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.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/clk-utmi.c
include/soc/at91/atmel-sfr.h