msm: mdss: ensure mdp clk rate is not set beyond max rate

Clock calculations include some inefficiency factor which may lead to
calculations exceeding the maximum clock rate supported. Limit the
calculations to the maximum supported MDP clock in each SoC.

Change-Id: I3b020518a28acfffeb48e5d100f5a4f48c8eb03c
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
5 files changed