soundwire: bus: initialize bus clock base and scale registers
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 8 Jun 2020 20:54:36 +0000 (04:54 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Jun 2020 15:56:17 +0000 (21:26 +0530)
commit29d158f906907ce8e52ea75ec87b4e35461f2018
tree2774f065e78479b51e4c0b316fc3f342fa2e77b7
parentb5924268d6700821fbd8afe815073b05cebaa308
soundwire: bus: initialize bus clock base and scale registers

The SoundWire 1.2 specification adds new registers to allow for
seamless clock changes while audio transfers are on-going. Program
them following the specification.

Note that dynamic clock changes are not supported for now, this only
adds the register initialization.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200608205436.2402-5-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
include/linux/soundwire/sdw_registers.h