Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <drivers/intel/dptf/dptf.h> |
Subrata Banik | fbdcceb | 2022-12-19 18:09:56 +0530 | [diff] [blame^] | 4 | #include <soc/dptf.h> |
Elyes Haouas | cbbbb6c | 2022-10-22 22:15:27 +0200 | [diff] [blame] | 5 | #include <stdbool.h> |
Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 6 | |
| 7 | static const struct dptf_platform_info tgl_dptf_platform_info = { |
| 8 | .use_eisa_hids = false, |
| 9 | /* _HID for the toplevel DPTF device, typically \_SB.DPTF */ |
Subrata Banik | fbdcceb | 2022-12-19 18:09:56 +0530 | [diff] [blame^] | 10 | .dptf_device_hid = DPTF_DPTF_DEVICE, |
Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 11 | /* _HID for Intel DPTF Generic Device (these require PTYP as well) */ |
Subrata Banik | fbdcceb | 2022-12-19 18:09:56 +0530 | [diff] [blame^] | 12 | .generic_hid = DPTF_GEN_DEVICE, |
Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 13 | /* _HID for Intel DPTF Fan Device */ |
Subrata Banik | fbdcceb | 2022-12-19 18:09:56 +0530 | [diff] [blame^] | 14 | .fan_hid = DPTF_FAN_DEVICE, |
Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 15 | }; |
| 16 | |
Subrata Banik | 9ea73d1 | 2022-12-19 16:22:37 +0530 | [diff] [blame] | 17 | const struct dptf_platform_info *soc_get_dptf_platform_info(void) |
Tim Wawrzynczak | 7f7c388 | 2021-04-09 12:15:21 -0600 | [diff] [blame] | 18 | { |
| 19 | return &tgl_dptf_platform_info; |
| 20 | } |