soundwire: intel: add support for MeteorLake additional clocks
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 26 Mar 2024 09:20:27 +0000 (09:20 +0000)
committerVinod Koul <vkoul@kernel.org>
Fri, 5 Apr 2024 11:51:03 +0000 (17:21 +0530)
commit09ee49e3de6bcecc57028682c673d180ec2d436b
tree12b9b26d5241ea5fb941cab0b626b7b64f404cb3
parentd0a69cd0369a390cc1c100e52e78a273695a170c
soundwire: intel: add support for MeteorLake additional clocks

In the MeteorLake hardware, the SoundWire link clock can be selected
from the Xtal, audio cardinal clock (24.576 MHz) or the 96 MHz audio
PLL.

This patches add the clock selection in a backwards-compatible manner,
using the ACPI firmware as the source of information and checking its
compatibility with hardware capabilities.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240326092030.1062802-5-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c
include/linux/soundwire/sdw_intel.h