clk: tegra: T114: add FCPU clock shaper programming, needed by the DFLL
authorPaul Walmsley <pwalmsley@nvidia.com>
Fri, 7 Jun 2013 12:18:58 +0000 (06:18 -0600)
committerMike Turquette <mturquette@linaro.org>
Tue, 18 Jun 2013 18:28:36 +0000 (11:28 -0700)
commit25c9ded6ed31184379c9b153ff37621fc323b084
tree8336643c5e6ac1d9ad01ed1ecf93b5ad37a5b22b
parent045779942c04646a222289989e6a5b617dfdedf7
clk: tegra: T114: add FCPU clock shaper programming, needed by the DFLL

Add clock functions to initialize, enable, and disable the FCPU clock
shapers, based on the FCPU voltage rail state.  These will be used by
the DFLL clocksource driver code.

This version of the patch contains a fix for a problem noticed by Andrew
Chew <achew@nvidia.com>, where some of the FINETRIM_R bitfields were
incorrectly defined.

Based on code originally written by Aleksandr Frid <afrid@nvidia.com>.

Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Andrew Chew <achew@nvidia.com>
Reviewed-by: Andrew Chew <achew@nvidia.com>
Cc: Matthew Longnecker <mlongnecker@nvidia.com>
Cc: Aleksandr Frid <afrid@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/tegra/clk-tegra114.c
drivers/clk/tegra/clk.h