clk-pll.c (0ef9db6cf24dbb58118818e64198d9a030e4697e) clk-pll.c (6b301a059eb2ebed1b12a900e3b21a38e48dd410)
1/*
2 * Copyright (c) 2012, 2013, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

--- 400 unchanged lines hidden (view full) ---

409 return p_tohw->hw_val;
410 p_tohw++;
411 }
412 return -EINVAL;
413 }
414 return -EINVAL;
415}
416
1/*
2 * Copyright (c) 2012, 2013, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

--- 400 unchanged lines hidden (view full) ---

409 return p_tohw->hw_val;
410 p_tohw++;
411 }
412 return -EINVAL;
413 }
414 return -EINVAL;
415}
416
417int tegra_pll_p_div_to_hw(struct tegra_clk_pll *pll, u8 p_div)
418{
419 return _p_div_to_hw(&pll->hw, p_div);
420}
421
417static int _hw_to_p_div(struct clk_hw *hw, u8 p_div_hw)
418{
419 struct tegra_clk_pll *pll = to_clk_pll(hw);
420 const struct pdiv_map *p_tohw = pll->params->pdiv_tohw;
421
422 if (p_tohw) {
423 while (p_tohw->pdiv) {
424 if (p_div_hw == p_tohw->hw_val)

--- 1936 unchanged lines hidden ---
422static int _hw_to_p_div(struct clk_hw *hw, u8 p_div_hw)
423{
424 struct tegra_clk_pll *pll = to_clk_pll(hw);
425 const struct pdiv_map *p_tohw = pll->params->pdiv_tohw;
426
427 if (p_tohw) {
428 while (p_tohw->pdiv) {
429 if (p_div_hw == p_tohw->hw_val)

--- 1936 unchanged lines hidden ---