aboutsummaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorMartin Sperl2016-02-29 11:39:21 +0000
committerEric Anholt2016-03-17 10:42:17 -0700
commit959ca92a3235fc4b17c1e18483fc390b3d612254 (patch)
treed508bfd33842db3b5cf5fa60a6aa34d2ded2868b /drivers/vfio
parent997f16bd5d2e9b3456027f96fcadfe1e2bf12f4e (diff)
clk: bcm2835: correctly enable fractional clock support
The current driver calculates the clock divider with fractional support enabled. But it does not enable fractional support in the control register itself resulting in an integer only divider, but in clk_set_rate responds back the fractionally divided clock frequency. This patch enables fractional support in the control register whenever there is a fractional bit set in the requested clock divider. Mash clock limits are are also handled for the PWM clock applying the correct divider limits (2 and max_int) applicable to basic fractional divider support (mash order of 1). It also adds locking to protect the read/modify/write cycle of the register modification. Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks") Signed-off-by: Martin Sperl <kernel@martin.sperl.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions