platform/x86: amd-pmc: Add AMD platform support for S2Idle
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 5 Nov 2020 14:05:31 +0000 (19:35 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 9 Nov 2020 13:39:36 +0000 (14:39 +0100)
commit156ec4731cb22b06c08e27debc1ef9f16f4bbb5e
tree2f026bc04bba3c18d71775d92ca1125be00371a2
parent3cd420b2ebd8400f09484e3d07ea347a43bb3f7b
platform/x86: amd-pmc: Add AMD platform support for S2Idle

AMD Power Management Controller driver a.k.a. amd-pmc driver is the
controller which is meant for the final S2Idle transaction that goes to
the PMFW running on the AMD SMU (System Management Unit) responsible for
tuning of the VDD.

Once all the monitored list or the idle constraints are met, this driver
would go and set the OS_HINT (meaning all the devices have reached to
their lowest state possible) via the SMU mailboxes.

This driver would also provide some debug capabilities via debugfs.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20201105140531.2955555-1-Shyam-sundar.S-k@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/amd-pmc.c [new file with mode: 0644]