OSDN Git Service

clk: bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Mon, 15 May 2017 17:35:04 +0000 (10:35 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Jun 2017 22:41:49 +0000 (15:41 -0700)
commite45098d703fbb9a7b02eae581aadb684b31e0eec
treeb132afa1028409d0435f8f350c563f0b534abb9e
parent887541159c5e4a89779c021553f89df9596ddd94
clk: bcm2835: Correct the prediv logic

If a clock has the prediv flag set, both the integer and fractional
parts must be scaled when calculating the resulting frequency.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/bcm/clk-bcm2835.c