tegra: hwpm: redo hwpm driver as OOT

Make HWPM driver as loadable kernel module.
Separate common, linux and t234 specific files into separate objects.
This will allow hwpm common files to be included in other projects.

Jira THWPM-41
Bug 3583624

Change-Id: Ia7472122c71520076a1516c8e386cfe79862dd61
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2683488
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2022-08-15 22:27:12 -07:00
committed by mobile promotions
parent 14d527e97a
commit 71664d7c99
6 changed files with 171 additions and 139 deletions

View File

@@ -36,7 +36,7 @@ static const struct of_device_id tegra_soc_hwpm_of_match[] = {
.compatible = "nvidia,t234-soc-hwpm",
},
#ifdef CONFIG_TEGRA_NEXT1_HWPM
#include <os/linux/tegra_hwpm_next_linux.h>
#include <os/linux/next1_driver.h>
#endif
{ },
};