soc: soundwire: support 600KHz bus clock scaling

Support 600KHz soundwire bus clock scaling for low power
voice activation usecases.

Change-Id: I46f2697b9e17785396542c9f5ec55ad5b9f6d2f5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
这个提交包含在:
yidongh
2020-09-22 16:33:00 +08:00
父节点 8037d89628
当前提交 7061cb6d12
修改 2 个文件,包含 10 行新增1 行删除

10
asoc/lahaina-port-config.h 普通文件 -> 可执行文件
查看文件

@@ -60,14 +60,22 @@ static struct port_params tx_frame_params_shima[SWR_MSTR_PORT_LEN] = {
/* 4.8 MHz clock */
static struct port_params tx_frame_params_4p8MHz[SWR_MSTR_PORT_LEN] = {
{3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX1 */
{7, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX1 */
{3, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 1, 0x00, 0x00}, /* TX2 */
{3, 2, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX3 */
};
/* 0.6 MHz clock */
static struct port_params tx_frame_params_0p6MHz[SWR_MSTR_PORT_LEN] = {
{1, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX1 */
{1, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX2 */
{1, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0x00, 0x00}, /* TX3 */
};
static struct swr_mstr_port_map sm_port_map[] = {
{TX_MACRO, SWR_UC0, tx_frame_params_default},
{TX_MACRO, SWR_UC1, tx_frame_params_4p8MHz},
{TX_MACRO, SWR_UC2, tx_frame_params_0p6MHz},
{RX_MACRO, SWR_UC0, rx_frame_params_default},
{RX_MACRO, SWR_UC1, rx_frame_params_dsd},
{WSA_MACRO, SWR_UC0, wsa_frame_params_default},

1
include/soc/swr-common.h 普通文件 -> 可执行文件
查看文件

@@ -13,6 +13,7 @@
enum {
SWR_UC0 = 0,
SWR_UC1,
SWR_UC2,
SWR_UC_MAX,
};