Displaying 6 results from an estimated 6 matches for "max_vco_f".
2014 Jul 10
0
[PATCH 3/3] drm/gk20a: reclocking support
...riv->parent_rate * priv->n;
+ divider = priv->m * pl_to_div[priv->pl];
+ do_div(rate, divider);
+
+ return rate / 2;
+}
+
+static int
+gk20a_pllg_calc_mnp(struct gk20a_clock_priv *priv, unsigned long rate)
+{
+ unsigned int target_clk_f, ref_clk_f, target_freq;
+ unsigned int min_vco_f, max_vco_f;
+ u32 low_pl, high_pl, best_pl;
+ unsigned int target_vco_f, vco_f;
+ u32 best_m, best_n;
+ unsigned int u_f;
+ u32 m, n, n2;
+ u32 delta, lwv, best_delta = ~0;
+ int pl;
+
+ target_clk_f = rate * 2 / MHZ;
+ ref_clk_f = priv->parent_rate / MHZ;
+
+ max_vco_f = priv->params->max_vco;
+ min...
2014 Jul 10
3
[PATCH 3/3] drm/gk20a: reclocking support
...->m * pl_to_div[priv->pl];
> + do_div(rate, divider);
> +
> + return rate / 2;
> +}
> +
> +static int
> +gk20a_pllg_calc_mnp(struct gk20a_clock_priv *priv, unsigned long rate)
> +{
> + unsigned int target_clk_f, ref_clk_f, target_freq;
> + unsigned int min_vco_f, max_vco_f;
> + u32 low_pl, high_pl, best_pl;
> + unsigned int target_vco_f, vco_f;
> + u32 best_m, best_n;
> + unsigned int u_f;
> + u32 m, n, n2;
> + u32 delta, lwv, best_delta = ~0;
> + int pl;
> +
> + target_clk_f = rate * 2 / MHZ;
> + ref_clk_f = priv->parent_rate / MHZ;...
2014 Jul 10
10
[PATCH 0/3] drm/gk20a: support for reclocking
This series adds support for reclocking on GK20A. The first two patches touch
the clock subsystem to allow GK20A to operate, by making the presence of the
thermal and voltage devices optional, and allowing pstates to be provided
directly instead of being probed using the BIOS (which Tegra does not have).
The last patch adds the GK20A clock device. Arguably the clock can be seen as a
stripped-down
2014 Jul 26
5
[PATCH v2 0/3] drm/gk20a: support for reclocking
Second version of the gk20a clock patches. I have tried to keep the therm and
volt devices mandatory in the clock driver, but unfortunately they are too tied
to bios to allow this, at least for the moment. Consequently this version is
mostly a port of the first version to Ben's tree.
Ben, please let me know what I have done wrong in terms of integration to your
tree, as the main purpose of
2016 Mar 11
16
[PATCH 00/16] clk/gm20b: add basic driver
This series does some refactoring in the GK20A's volt and clk drivers
(fixing a few things while we are at it) to let GM20B benefit from the
GK20A's logic with which it is compatible.
GM20B is capable of more sophisticated (and power-efficient) reclocking
which will follow later. Even after this more fancy reclocking is merged,
the present logic will remain used in the lowest speedo of
2016 Jun 01
15
[PATCH 00/15] clk/tegra: improve code and add DFS support
This series adds support for GM20B PLL's Maxwell features, namely glitchless
switch and (more importantly) DFS support. DFS lets the PLL lower its output
speed according to input current variations, making the clock more stable and
allowing it to run safely at lower voltage.
All GM20B additions are done in the last patch, which consequently ends up
being considerably big ; fortunately, it