diff options
| author | Shyam Sundar S K <[email protected]> | 2023-08-11 11:21:13 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-08-23 15:31:26 +0000 |
| commit | 92c2fb8fa56c46d534feea2073e55ecc61fa5089 (patch) | |
| tree | 54fa995b1d27c3848b507778eac83471a1bbd970 /drivers/platform/x86/amd/pmc/pmc.h | |
| parent | Merge remote-tracking branch 'pdx86/fixes' into pdx86/for-next (diff) | |
| download | kernel-92c2fb8fa56c46d534feea2073e55ecc61fa5089.tar.gz kernel-92c2fb8fa56c46d534feea2073e55ecc61fa5089.zip | |
platform/x86/amd/pmc: Move PMC driver to separate directory
With latest commits having PMC code spread across multiple files, it would
be easier to maintain them in a separate directory under amd/pmc.
Co-developed-by: Sanket Goswami <[email protected]>
Signed-off-by: Sanket Goswami <[email protected]>
Signed-off-by: Shyam Sundar S K <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.h')
| -rw-r--r-- | drivers/platform/x86/amd/pmc/pmc.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.h b/drivers/platform/x86/amd/pmc/pmc.h new file mode 100644 index 000000000000..c27bd6a5642f --- /dev/null +++ b/drivers/platform/x86/amd/pmc/pmc.h @@ -0,0 +1,44 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * AMD SoC Power Management Controller Driver + * + * Copyright (c) 2023, Advanced Micro Devices, Inc. + * All Rights Reserved. + * + * Author: Mario Limonciello <[email protected]> + */ + +#ifndef PMC_H +#define PMC_H + +#include <linux/types.h> +#include <linux/mutex.h> + +struct amd_pmc_dev { + void __iomem *regbase; + void __iomem *smu_virt_addr; + void __iomem *stb_virt_addr; + void __iomem *fch_virt_addr; + bool msg_port; + u32 base_addr; + u32 cpu_id; + u32 active_ips; + u32 dram_size; + u32 num_ips; + u32 s2d_msg_id; +/* SMU version information */ + u8 smu_program; + u8 major; + u8 minor; + u8 rev; + struct device *dev; + struct pci_dev *rdev; + struct mutex lock; /* generic mutex lock */ + struct dentry *dbgfs_dir; + struct quirk_entry *quirks; +}; + +void amd_pmc_process_restore_quirks(struct amd_pmc_dev *dev); +void amd_pmc_quirks_init(struct amd_pmc_dev *dev); + +#endif /* PMC_H */ |
