diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2018-02-20 08:05:39 +0100 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-02-23 15:15:20 +0100 |
commit | 1d5013f1b64dbd692975be5db0e42bac291c6de9 (patch) | |
tree | 2350d997075252d6895efe1541ad27274cd7b776 /drivers/clk/clk-bulk.c | |
parent | 179db533c08431f509a3823077549773d519358b (diff) | |
download | blackbird-op-linux-1d5013f1b64dbd692975be5db0e42bac291c6de9.tar.gz blackbird-op-linux-1d5013f1b64dbd692975be5db0e42bac291c6de9.zip |
clk: samsung: Add compile time PLL rate validators
Rates declared in PLL rate tables should match exactly rates calculated
from PLL coefficients. To avoid possible mistakes we can use compile
time validation.
The patch introduces such validators and expands all initializers
with additional input frequency parameter, required to validate rates.
Since S3C24xx PLLs requires different validators two new macros have
been introduced to deal with it. Also, since PLLs 4502 and 4508 have
different formulas PLL_45XX_RATE has been replaced with PLL_4508_RATE.
As the patch adds only compile time validators it should not have impact
on compiled code.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk/clk-bulk.c')
0 files changed, 0 insertions, 0 deletions