mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Various OOT drivers require Tegra chipid to identify the SoC they are running on. Add helper function __tegra_get_chip_id() which use soc_device_match() to identify the SoC chipid on which the kernel is currently running. Loadable drivers/modules can use this to read the chipid. Bug 4416828 Change-Id: I6bdb95ed579b3ade9314468abb0ccc749af7bb89 Signed-off-by: Kartik <kkartik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3078383 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Viswanath L <viswanathl@nvidia.com> Tested-by: Viswanath L <viswanathl@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
1.8 KiB
1.8 KiB