tegra: hwpm: read MC config fuse

On production board, MC config details are available through fuses. Add
function to read MC config fuse. Use the floorsweep fuse info to find
available elements.

Bug 3936487

Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Change-Id: I9e1549e3dfb9c06d8013ca2e1d43eb21bf0289f4
(cherry picked from commit f38e98a94ab8d478af3ebe1c922da606df9b67dc)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2888554
Reviewed-by: Adeel Raza <araza@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2023-02-22 13:59:48 -08:00
committed by mobile promotions
parent 4ecc672c3e
commit 9a9f2f3635
3 changed files with 115 additions and 1 deletions

View File

@@ -335,6 +335,12 @@ struct hwpm_ip_inst {
*/
struct tegra_hwpm_ip_ops ip_ops;
/*
* Some IPs set fuses to indicate floorsweeping info on platforms.
* This mask will contain fuse fs info if any.
*/
u32 fuse_fs_mask;
/*
* An IP contains perfmux-perfmon groups that correspond to each other.
* If a perfmux is present, it indicates that the corresponding