The smu_info structrue for smu v13 is changed that
core_refclk in v31 strucuture is not correct for
smu v13_0_0
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
 
 union smu_info {
        struct atom_smu_info_v3_1 v31;
+       struct atom_smu_info_v4_0 v40;
 };
 
 union gfx_info {
                                           data_offset);
 
                /* system clock */
-               spll->reference_freq = le32_to_cpu(smu_info->v31.core_refclk_10khz);
+               if (frev == 3)
+                       spll->reference_freq = le32_to_cpu(smu_info->v31.core_refclk_10khz);
+               else if (frev == 4)
+                       spll->reference_freq = le32_to_cpu(smu_info->v40.core_refclk_10khz);
 
                spll->reference_div = 0;
                spll->min_post_div = 1;