mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
As per info received from HW team, we should not hardcode 1600 in DRAM clock to MC clock conversion function. DRAM clk to EMC clk ratio is always 4:1 while EMC clk to MC clk ratio can be found in CAR register CLK_RST_CONTROLLER_CLK_SOURCE_EMC_0.MC_EMC_SAME_FREQ bit. If it's 0 then MC frequency is half of EMC frequency, otherwise MC freq is same as EMC freq. Hence update DRAM clock to MC clock function as per above logic. Bug 4090660 Change-Id: I5a7586aeee29fe1c98437cf0dd5b820d8f540072 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/2915138 Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>