mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Currently, we assume the VBIOS base ROM size is 64KB. We use this hardcoding to determine when the bios offset lies beyond the Base ROM. This assumption fails on Turing when we try to parse the clock programming tables which are present in expansion ROM but have an offset < 64KB. Remove the hardcoding by storing the base rom size. Also, replace some magic numbers with macros for readability. Bug 200455202 Change-Id: Ic4b8c113cfb5ee3e860f7692f5851cdd0ab45d50 Signed-off-by: tkudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1955973 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>