提交 ac8320c4 编写于 作者: P Peter Ujfalusi 提交者: Lee Jones

mfd: twl6040: Correct HPPLL configuration for 19.2 and 38.4 MHz mclk

When the MCLK is 19.2 or 38.4 MHz the HPPLL need to be enabled and can be
put in bypass mode.
This will fix HPPLL use on boards with 19.2MHz mclk.
Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 a58cc84c
...@@ -441,12 +441,9 @@ int twl6040_set_pll(struct twl6040 *twl6040, int pll_id, ...@@ -441,12 +441,9 @@ int twl6040_set_pll(struct twl6040 *twl6040, int pll_id,
TWL6040_HPLLENA; TWL6040_HPLLENA;
break; break;
case 19200000: case 19200000:
/* /* PLL enabled, bypass mode */
* PLL disabled hppllctl |= TWL6040_MCLK_19200KHZ |
* (enable PLL if MCLK jitter quality TWL6040_HPLLBP | TWL6040_HPLLENA;
* doesn't meet specification)
*/
hppllctl |= TWL6040_MCLK_19200KHZ;
break; break;
case 26000000: case 26000000:
/* PLL enabled, active mode */ /* PLL enabled, active mode */
...@@ -454,9 +451,9 @@ int twl6040_set_pll(struct twl6040 *twl6040, int pll_id, ...@@ -454,9 +451,9 @@ int twl6040_set_pll(struct twl6040 *twl6040, int pll_id,
TWL6040_HPLLENA; TWL6040_HPLLENA;
break; break;
case 38400000: case 38400000:
/* PLL enabled, active mode */ /* PLL enabled, bypass mode */
hppllctl |= TWL6040_MCLK_38400KHZ | hppllctl |= TWL6040_MCLK_38400KHZ |
TWL6040_HPLLENA; TWL6040_HPLLBP | TWL6040_HPLLENA;
break; break;
default: default:
dev_err(twl6040->dev, dev_err(twl6040->dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册