Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'clk-fixes' into clk-next

* clk-fixes:
clk: stm32f4: fix: exclude values 0 and 1 for PLLQ

authored by

Stephen Boyd and committed by
Michael Turquette
f37753e2 4641d6a5

+10 -3
+10 -3
drivers/clk/clk-stm32f4.c
··· 429 429 { 0, 2 }, { 1, 4 }, { 2, 6 }, { 3, 8 }, { 0 } 430 430 }; 431 431 432 + static const struct clk_div_table pll_divq_table[] = { 433 + { 2, 2 }, { 3, 3 }, { 4, 4 }, { 5, 5 }, { 6, 6 }, { 7, 7 }, 434 + { 8, 8 }, { 9, 9 }, { 10, 10 }, { 11, 11 }, { 12, 12 }, { 13, 13 }, 435 + { 14, 14 }, { 15, 15 }, 436 + { 0 } 437 + }; 438 + 432 439 static const struct clk_div_table pll_divr_table[] = { 433 440 { 2, 2 }, { 3, 3 }, { 4, 4 }, { 5, 5 }, { 6, 6 }, { 7, 7 }, { 0 } 434 441 }; ··· 503 496 504 497 #define MAX_PLL_DIV 3 505 498 static const struct stm32f4_div_data div_data[MAX_PLL_DIV] = { 506 - { 16, 2, 0, pll_divp_table }, 507 - { 24, 4, CLK_DIVIDER_ONE_BASED, NULL }, 508 - { 28, 3, 0, pll_divr_table }, 499 + { 16, 2, 0, pll_divp_table }, 500 + { 24, 4, 0, pll_divq_table }, 501 + { 28, 3, 0, pll_divr_table }, 509 502 }; 510 503 511 504 struct stm32f4_pll_data {