platform/x86/amd/pmc: Add PMFW command id to support S2D force flush
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Sun, 10 Sep 2023 14:20:33 +0000 (19:50 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 6 Oct 2023 09:57:22 +0000 (12:57 +0300)
commitcdb1013808bed0c0c392b44ed4eed6c7743028c3
tree39a8fdc5acd58d3e95008193e5157f798cfe950e
parent8df012a7f513141412b3c35af204ccdb810fcc81
platform/x86/amd/pmc: Add PMFW command id to support S2D force flush

Recent PMFW have the capability that can force flush the FIFO
contents to DRAM on sending a command id via the mailbox. Add this support
to the driver.

Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20230910142034.2967110-1-Shyam-sundar.S-k@amd.com
[ij: Corrected whitespace in dev_dbg_once()]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmc/pmc.c