Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <drivers/intel/dptf/dptf.h> |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 4 | #include <soc/dptf.h> |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 5 | |
| 6 | static const struct dptf_platform_info adl_dptf_platform_info = { |
Subrata Banik | 2585a99 | 2022-12-19 21:31:49 +0530 | [diff] [blame] | 7 | .use_eisa_hids = CONFIG(DPTF_USE_EISA_HID), |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 8 | /* _HID for the toplevel DPTF device, typically \_SB.DPTF */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 9 | .dptf_device_hid = DPTF_DPTF_DEVICE, |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 10 | /* _HID for Intel DPTF Generic Device (these require PTYP as well) */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 11 | .generic_hid = DPTF_GEN_DEVICE, |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 12 | /* _HID for Intel DPTF Fan Device */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 13 | .fan_hid = DPTF_FAN_DEVICE, |
Sumeet Pawnikar | 92db5d7 | 2021-08-31 21:19:56 +0530 | [diff] [blame] | 14 | /* _HID for the toplevel TPCH device, typically \_SB.TPCH */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 15 | .tpch_device_hid = DPTF_TPCH_DEVICE, |
Varshit B Pandya | d025ab3 | 2022-03-29 18:16:20 +0530 | [diff] [blame] | 16 | /* _HID for the toplevel TPWR device, typically \_SB.DPTF.TPWR */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 17 | .tpwr_device_hid = DPTF_TPWR_DEVICE, |
Varshit B Pandya | be1a050 | 2022-04-02 15:26:23 +0530 | [diff] [blame] | 18 | /* _HID for the toplevel BAT1 device, typically \_SB.DPTF.BAT1 */ |
Subrata Banik | 80ed501 | 2022-12-19 17:35:47 +0530 | [diff] [blame] | 19 | .tbat_device_hid = DPTF_BAT1_DEVICE, |
Sumeet Pawnikar | e0bff81 | 2021-09-23 21:49:29 +0530 | [diff] [blame] | 20 | |
| 21 | .tpch_method_names = { |
| 22 | .set_fivr_low_clock_method = "RFC0", |
| 23 | .set_fivr_high_clock_method = "RFC1", |
| 24 | .get_fivr_low_clock_method = "GFC0", |
| 25 | .get_fivr_high_clock_method = "GFC1", |
| 26 | .get_fivr_ssc_method = "GEMI", |
| 27 | .get_fivr_switching_fault_status = "GFFS", |
| 28 | .get_fivr_switching_freq_mhz = "GFCS", |
| 29 | }, |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 30 | }; |
| 31 | |
Subrata Banik | 9ea73d1 | 2022-12-19 16:22:37 +0530 | [diff] [blame] | 32 | const struct dptf_platform_info *soc_get_dptf_platform_info(void) |
Sumeet R Pawnikar | a2a90a3 | 2021-04-12 21:30:19 +0530 | [diff] [blame] | 33 | { |
| 34 | return &adl_dptf_platform_info; |
| 35 | } |