Instead of directly using the clk_src_id based on enum for clock source, every device needs to have its own set of clk source ids defined. This prevents from accidentally selecting a wrong clk source if the ids are changed as for host1x. Also, clk_src_id is separated from clk_src_freq_id. clk_src_id is the clk src id represented in CLK_SOURCE_<dev> registers, whereas clk_src_freq_id is used for handling the common clock sources based on id to get the proper frequency in software. BUG=chrome-os-partner:31821 BRANCH=None TEST=Compiles successfully and boots to kernel prompt Change-Id: I5c88bed62841ebd81665cf8ffd82b0d88255f927 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/216761 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> |
||
|---|---|---|
| .. | ||
| imgtec | ||
| intel | ||
| nvidia | ||
| qualcomm | ||
| rockchip | ||
| samsung | ||
| Kconfig | ||
| Makefile.inc | ||