summaryrefslogtreecommitdiffstats
path: root/drivers/soc/samsung/pm_domains.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2018-02-20 08:05:39 +0100
committerSylwester Nawrocki <s.nawrocki@samsung.com>2018-02-23 15:15:20 +0100
commit1d5013f1b64dbd692975be5db0e42bac291c6de9 (patch)
tree2350d997075252d6895efe1541ad27274cd7b776 /drivers/soc/samsung/pm_domains.c
parentclk: samsung: s3c2410: Fix PLL rates (diff)
downloadlinux-1d5013f1b64dbd692975be5db0e42bac291c6de9.tar.xz
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/soc/samsung/pm_domains.c')
0 files changed, 0 insertions, 0 deletions