提交 6644fddf 编写于 作者: C Chao Xie 提交者: Stephen Boyd

clk: mmp: Fix the wrong factor table for uart PLL

The suggested value in the mmp2 manual is wrong.
There are only 13 bits for numerator, but some suggested
value has 14 bits.
Fix the factor tabled and remove the unused items.
Signed-off-by: NChao Xie <chao.xie@marvell.com>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 a35247c6
...@@ -63,10 +63,8 @@ static struct mmp_clk_factor_masks uart_factor_masks = { ...@@ -63,10 +63,8 @@ static struct mmp_clk_factor_masks uart_factor_masks = {
}; };
static struct mmp_clk_factor_tbl uart_factor_tbl[] = { static struct mmp_clk_factor_tbl uart_factor_tbl[] = {
{.num = 14634, .den = 2165}, /*14.745MHZ */ {.num = 8125, .den = 1536}, /*14.745MHZ */
{.num = 3521, .den = 689}, /*19.23MHZ */ {.num = 3521, .den = 689}, /*19.23MHZ */
{.num = 9679, .den = 5728}, /*58.9824MHZ */
{.num = 15850, .den = 9451}, /*59.429MHZ */
}; };
static const char *uart_parent[] = {"uart_pll", "vctcxo"}; static const char *uart_parent[] = {"uart_pll", "vctcxo"};
......
...@@ -98,10 +98,8 @@ static struct mmp_clk_factor_masks uart_factor_masks = { ...@@ -98,10 +98,8 @@ static struct mmp_clk_factor_masks uart_factor_masks = {
}; };
static struct mmp_clk_factor_tbl uart_factor_tbl[] = { static struct mmp_clk_factor_tbl uart_factor_tbl[] = {
{.num = 14634, .den = 2165}, /*14.745MHZ */ {.num = 8125, .den = 1536}, /*14.745MHZ */
{.num = 3521, .den = 689}, /*19.23MHZ */ {.num = 3521, .den = 689}, /*19.23MHZ */
{.num = 9679, .den = 5728}, /*58.9824MHZ */
{.num = 15850, .den = 9451}, /*59.429MHZ */
}; };
static void mmp2_pll_init(struct mmp2_clk_unit *pxa_unit) static void mmp2_pll_init(struct mmp2_clk_unit *pxa_unit)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册