gpu: limit the S805Y freq [1/1]
authorJiyu Yang <jiyu.yang@amlogic.com>
Thu, 1 Nov 2018 08:24:48 +0000 (16:24 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Thu, 1 Nov 2018 08:30:45 +0000 (16:30 +0800)
PD#SWPL-940

Problem:
S805Y only max support freq is 666M.
if dts was wrong, kernel panic.

Solution:
limit the freq to 666M

Verify:
s805y_p215

Change-Id: Ie893c92120d239402b9933b486c520d6c54ace4a
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
utgard/platform/meson_bu/mali_clock.c

index e99bee4c3792ad699ac082dbc7416d90c2e17e16..e477f3eaa49da4e99dbaa69fa6ce4dace96b5516 100644 (file)
@@ -284,14 +284,11 @@ int mali_dt_info(struct platform_device *pdev, struct mali_plat_info_t *mpdata)
                if (ret) {
                        dev_notice(&pdev->dev, "read clk_freq failed\n");
                }
-#if 0
-#ifdef MESON_CPU_VERSION_OPS
-               if (is_meson_gxbbm_cpu()) {
+
+               if (is_meson_gxl_package_805Y()) {
                        if (dvfs_tbl->clk_freq >= GXBBM_MAX_GPU_FREQ)
                                continue;
                }
-#endif
-#endif
                ret = of_property_read_string(gpu_clk_dn,"clk_parent",
                                                                                &dvfs_tbl->clk_parent);
                if (ret) {