msm: clock: Add support to return the max supported rate

Rcg clock round rate only returns the supported rate that is
at least the specified rate. However, there are use cases where
drivers want to know the max supported rate given a clock. Add
this support by returning the max supported rate if a specified
rate is larger than that.

Change-Id: I6b1909da63aac311eef5bb4d792f9ecfcb9165a4
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
2 files changed