mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 19:12:14 +00:00
Use platform_get_resource() to fetch the memory resource instead of acpi_walk_resources() and devm_ioremap_resource() for mapping the resources. PS: We cannot use resource_size() here because it adds an extra byte to round off the size. In the case of PMF ResourceTemplate(), this rounding is already handled within the _CRS. Using resource_size() would increase the resource size by 1, causing a mismatch with the length field and leading to issues. Therefore, simply use end-start of the ACPI resource to obtain the actual length. Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com> Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://lore.kernel.org/r/20241104054829.620858-4-Shyam-sundar.S-k@amd.com [ij: added a cast to resource_size_t printing] Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
33 lines
1014 B
Plaintext
33 lines
1014 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# AMD PMF Driver
|
|
#
|
|
|
|
config AMD_PMF
|
|
tristate "AMD Platform Management Framework"
|
|
depends on ACPI && PCI
|
|
depends on POWER_SUPPLY
|
|
depends on AMD_NB
|
|
select ACPI_PLATFORM_PROFILE
|
|
depends on TEE && AMDTEE
|
|
depends on AMD_SFH_HID
|
|
depends on HAS_IOMEM
|
|
help
|
|
This driver provides support for the AMD Platform Management Framework.
|
|
The goal is to enhance end user experience by making AMD PCs smarter,
|
|
quiter, power efficient by adapting to user behavior and environment.
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
be called amd_pmf.
|
|
|
|
config AMD_PMF_DEBUG
|
|
bool "PMF debug information"
|
|
depends on AMD_PMF
|
|
help
|
|
Enabling this option would give more debug information on the OEM fed
|
|
power setting values for each of the PMF feature. PMF driver gets this
|
|
information after evaluating a ACPI method and the information is stored
|
|
in the PMF config store.
|
|
|
|
Say Y here to enable more debug logs and Say N here if you are not sure.
|