diff options
| author | Troy Mitchell <troy.mitchell@linux.spacemit.com> | 2026-05-22 21:12:15 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-01 16:00:44 +0100 |
| commit | 1c6ca2ca5c1bdc97912cf3f9b4a1e186919a6a98 (patch) | |
| tree | 576f35f49a29c590bf39515e64f7903fdba2e20f /include/linux/timerqueue.h | |
| parent | 6bc6b28c031484092ce1f829f59e4768e12b268e (diff) | |
ASoC: spacemit: add K3 SoC support with additional clocks
Add support for the SpacemiT K3 SoC I2S controller, which shares the
same IP as K1 but requires additional clocks: sysclk_div, c_sysclk,
and c_bclk. These clocks only exist on K3 and are not present on K1.
The sysclk_div clock is present on most K3 I2S controllers except I2S1.
The c_sysclk and c_bclk clocks are shared across multiple I2S
controllers on K3.
Use devm_clk_get_optional_enabled() to acquire these clocks so that
the driver works on both K1 (where they are absent) and K3 without
needing SoC-specific match data. For K3, the sysclk_div rate is set
before sysclk in set_sysclk, and the common clock rates are configured
in hw_params based on the sample rate.
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/20260522-k3-i2s-v3-2-08e3eb811d93@linux.spacemit.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
