mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 02:07:34 +03:00
tegra: hwpm: move linux specific code to os folder
To make HWPM driver OS agnostic, remove linux specific includes from common and chip specific files. - Move IP register list related logic to os linux folder. - tegra_hwpm_get_floorsweep_info() and tegra_hwpm_get_resource_info() refer to linux specific UAPI structures. Relocate these functions to os folder. - Use tegra_hwpm_ip_ops structure in HWPM driver internal logic. Move or rewrite functions using tegra_soc_hwpm_ip_ops. Jira THWPM-59 Change-Id: I1dd1e088d59fdc44923d2b6502bb0cf350ce57a6 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2729471 Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8f3cb60584
commit
378bd9bb1c
@@ -11,23 +11,10 @@
|
||||
* more details.
|
||||
*/
|
||||
|
||||
#include <linux/mm.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/reset.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/dma-buf.h>
|
||||
#include <soc/tegra/fuse.h>
|
||||
#include <uapi/linux/tegra-soc-hwpm-uapi.h>
|
||||
|
||||
#include <tegra_hwpm_kmem.h>
|
||||
#include <tegra_hwpm_log.h>
|
||||
#include <tegra_hwpm_io.h>
|
||||
#include <tegra_hwpm_ip.h>
|
||||
#include <tegra_hwpm.h>
|
||||
#include <tegra_hwpm_common.h>
|
||||
|
||||
@@ -123,19 +110,10 @@ int tegra_hwpm_init_sw_components(struct tegra_soc_hwpm *hwpm)
|
||||
|
||||
void tegra_hwpm_release_sw_components(struct tegra_soc_hwpm *hwpm)
|
||||
{
|
||||
struct hwpm_ip_register_list *node = ip_register_list_head;
|
||||
struct hwpm_ip_register_list *tmp_node = NULL;
|
||||
|
||||
tegra_hwpm_fn(hwpm, " ");
|
||||
|
||||
hwpm->active_chip->release_sw_setup(hwpm);
|
||||
|
||||
while (node != NULL) {
|
||||
tmp_node = node;
|
||||
node = tmp_node->next;
|
||||
tegra_hwpm_kfree(hwpm, tmp_node);
|
||||
}
|
||||
|
||||
tegra_hwpm_kfree(hwpm, hwpm->active_chip->chip_ips);
|
||||
tegra_hwpm_kfree(hwpm, hwpm);
|
||||
tegra_soc_hwpm_pdev = NULL;
|
||||
|
||||
Reference in New Issue
Block a user