dptf: Move platform-specific information to struct dptf_platform_info
DPTF HIDs are different per-platform going forward, so refactor these into SoC-specific structures which the DPTF driver can query at runtime for platform-specific information. Change-Id: I6307f9d28f4274b851323ad69180ff4ae35053da Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52220 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
This commit is contained in:
committed by
Patrick Georgi
parent
24ea3f3364
commit
7f7c3882a6
21
src/drivers/intel/dptf/dptf.h
Normal file
21
src/drivers/intel/dptf/dptf.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef _DRIVERS_INTEL_DPTF_H_
|
||||
#define _DRIVERS_INTEL_DPTF_H_
|
||||
|
||||
#include <types.h>
|
||||
|
||||
struct dptf_platform_info {
|
||||
/*
|
||||
* True indicates the platform-specific HIDs are to be emitted in EISA
|
||||
* format instead of a string.
|
||||
*/
|
||||
bool use_eisa_hids;
|
||||
const char *dptf_device_hid;
|
||||
const char *generic_hid;
|
||||
const char *fan_hid;
|
||||
};
|
||||
|
||||
const struct dptf_platform_info *get_dptf_platform_info(void);
|
||||
|
||||
#endif /* _DRIVERS_INTEL_DPTF_H_ */
|
Reference in New Issue
Block a user