diff options
author | V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com> | 2022-11-23 17:49:09 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-28 13:04:21 +0000 |
commit | f9ced7dbbb551885c63632f1594997bdaf2177ee (patch) | |
tree | f4c3c33e58de3df77293518f7a60d4b788f0bd5d /sound/soc/sof/amd/acp.h | |
parent | aae7e412b0ec0378e392b18c50b612dae09cdb74 (diff) |
ASoC: SOF: amd: Fix for selecting clock source as external clock.
By default clock source is selected as internal clock of 96Mhz
which is not configurable. Now we select the clock source to
external clock (ACLK) which can be configurable to different clock
ranges depending on usecase.
Signed-off-by: V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>
Link: https://lore.kernel.org/r/20221123121911.3446224-3-vsujithkumar.reddy@amd.corp-partner.google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/amd/acp.h')
-rw-r--r-- | sound/soc/sof/amd/acp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/sof/amd/acp.h b/sound/soc/sof/amd/acp.h index 1529c6d9bf9b..76ad963faec1 100644 --- a/sound/soc/sof/amd/acp.h +++ b/sound/soc/sof/amd/acp.h @@ -69,6 +69,14 @@ #define BOX_SIZE_512 0x200 #define BOX_SIZE_1024 0x400 +enum clock_source { + ACP_CLOCK_96M = 0, + ACP_CLOCK_48M, + ACP_CLOCK_24M, + ACP_CLOCK_ACLK, + ACP_CLOCK_MCLK, +}; + struct acp_atu_grp_pte { u32 low; u32 high; |