mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
platform/tegra: Add common central actmon implementation
Add central actmon common functionality for actomon driver implementation instead of dummy implementation. Bug 3583573 Change-Id: Iff1512e62fc01431899515c78717d5afdae8d910 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705646 GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
2bf79d8c1a
commit
e37c28218e
@@ -2,4 +2,6 @@
|
||||
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
||||
|
||||
obj-m += bad.o
|
||||
obj-m += cactmon.o
|
||||
tegra-cactmon-objs := cactmon.o
|
||||
tegra-cactmon-objs += actmon_common.o
|
||||
obj-m += tegra-cactmon.o
|
||||
|
||||
1117
drivers/platform/tegra/actmon_common.c
Normal file
1117
drivers/platform/tegra/actmon_common.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -181,18 +181,6 @@ static inline void actmon_dev_writel(void __iomem *base, u32
|
||||
__raw_writel(val, base + offset);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_TEGRA_CENTRAL_ACTMON)
|
||||
int tegra_actmon_register(struct actmon_drv_data *actmon);
|
||||
int tegra_actmon_remove(struct platform_device *pdev);
|
||||
#else
|
||||
static inline int tegra_actmon_register(struct actmon_drv_data *actmon)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int tegra_actmon_remove(struct platform_device *pdev)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
#endif /* ACTMON_COMMON_H */
|
||||
|
||||
Reference in New Issue
Block a user