mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
clk: mmp: frac: Allow setting bits other than the numerator/denominator
For the I2S fractional clocks, there are more bits that need to be set for the clock to run. Their actual meaning is unknown. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Link: https://lkml.kernel.org/r/20200519224151.2074597-3-lkundrak@v3.sk Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
06030c4e33
commit
5278acc441
@ -148,7 +148,10 @@ static int clk_factor_init(struct clk_hw *hw)
|
||||
val &= ~(masks->den_mask << masks->den_shift);
|
||||
val |= (factor->ftbl[0].den & masks->den_mask) <<
|
||||
masks->den_shift;
|
||||
}
|
||||
|
||||
if (!(val & masks->enable_mask) || i >= factor->ftbl_cnt) {
|
||||
val |= masks->enable_mask;
|
||||
writel(val, factor->base);
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,7 @@ struct mmp_clk_factor_masks {
|
||||
unsigned int den_mask;
|
||||
unsigned int num_shift;
|
||||
unsigned int den_shift;
|
||||
unsigned int enable_mask;
|
||||
};
|
||||
|
||||
struct mmp_clk_factor_tbl {
|
||||
|
Loading…
Reference in New Issue
Block a user