162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci * 362306a36Sopenharmony_ci * Mediatek MT8186 audio driver interconnection definition 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2022 MediaTek Inc. 662306a36Sopenharmony_ci * Author: Jiaxin Yu <jiaxin.yu@mediatek.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _MT8186_INTERCONNECTION_H_ 1062306a36Sopenharmony_ci#define _MT8186_INTERCONNECTION_H_ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* in port define */ 1362306a36Sopenharmony_ci#define I_I2S0_CH1 0 1462306a36Sopenharmony_ci#define I_I2S0_CH2 1 1562306a36Sopenharmony_ci#define I_ADDA_UL_CH1 3 1662306a36Sopenharmony_ci#define I_ADDA_UL_CH2 4 1762306a36Sopenharmony_ci#define I_DL1_CH1 5 1862306a36Sopenharmony_ci#define I_DL1_CH2 6 1962306a36Sopenharmony_ci#define I_DL2_CH1 7 2062306a36Sopenharmony_ci#define I_DL2_CH2 8 2162306a36Sopenharmony_ci#define I_PCM_1_CAP_CH1 9 2262306a36Sopenharmony_ci#define I_GAIN1_OUT_CH1 10 2362306a36Sopenharmony_ci#define I_GAIN1_OUT_CH2 11 2462306a36Sopenharmony_ci#define I_GAIN2_OUT_CH1 12 2562306a36Sopenharmony_ci#define I_GAIN2_OUT_CH2 13 2662306a36Sopenharmony_ci#define I_PCM_2_CAP_CH1 14 2762306a36Sopenharmony_ci#define I_ADDA_UL_CH3 17 2862306a36Sopenharmony_ci#define I_ADDA_UL_CH4 18 2962306a36Sopenharmony_ci#define I_DL12_CH1 19 3062306a36Sopenharmony_ci#define I_DL12_CH2 20 3162306a36Sopenharmony_ci#define I_DL12_CH3 5 3262306a36Sopenharmony_ci#define I_DL12_CH4 6 3362306a36Sopenharmony_ci#define I_PCM_2_CAP_CH2 21 3462306a36Sopenharmony_ci#define I_PCM_1_CAP_CH2 22 3562306a36Sopenharmony_ci#define I_DL3_CH1 23 3662306a36Sopenharmony_ci#define I_DL3_CH2 24 3762306a36Sopenharmony_ci#define I_I2S2_CH1 25 3862306a36Sopenharmony_ci#define I_I2S2_CH2 26 3962306a36Sopenharmony_ci#define I_I2S2_CH3 27 4062306a36Sopenharmony_ci#define I_I2S2_CH4 28 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci/* in port define >= 32 */ 4362306a36Sopenharmony_ci#define I_32_OFFSET 32 4462306a36Sopenharmony_ci#define I_CONNSYS_I2S_CH1 (34 - I_32_OFFSET) 4562306a36Sopenharmony_ci#define I_CONNSYS_I2S_CH2 (35 - I_32_OFFSET) 4662306a36Sopenharmony_ci#define I_SRC_1_OUT_CH1 (36 - I_32_OFFSET) 4762306a36Sopenharmony_ci#define I_SRC_1_OUT_CH2 (37 - I_32_OFFSET) 4862306a36Sopenharmony_ci#define I_SRC_2_OUT_CH1 (38 - I_32_OFFSET) 4962306a36Sopenharmony_ci#define I_SRC_2_OUT_CH2 (39 - I_32_OFFSET) 5062306a36Sopenharmony_ci#define I_DL4_CH1 (40 - I_32_OFFSET) 5162306a36Sopenharmony_ci#define I_DL4_CH2 (41 - I_32_OFFSET) 5262306a36Sopenharmony_ci#define I_DL5_CH1 (42 - I_32_OFFSET) 5362306a36Sopenharmony_ci#define I_DL5_CH2 (43 - I_32_OFFSET) 5462306a36Sopenharmony_ci#define I_DL6_CH1 (44 - I_32_OFFSET) 5562306a36Sopenharmony_ci#define I_DL6_CH2 (45 - I_32_OFFSET) 5662306a36Sopenharmony_ci#define I_DL7_CH1 (46 - I_32_OFFSET) 5762306a36Sopenharmony_ci#define I_DL7_CH2 (47 - I_32_OFFSET) 5862306a36Sopenharmony_ci#define I_DL8_CH1 (48 - I_32_OFFSET) 5962306a36Sopenharmony_ci#define I_DL8_CH2 (49 - I_32_OFFSET) 6062306a36Sopenharmony_ci#define I_TDM_IN_CH1 (56 - I_32_OFFSET) 6162306a36Sopenharmony_ci#define I_TDM_IN_CH2 (57 - I_32_OFFSET) 6262306a36Sopenharmony_ci#define I_TDM_IN_CH3 (58 - I_32_OFFSET) 6362306a36Sopenharmony_ci#define I_TDM_IN_CH4 (59 - I_32_OFFSET) 6462306a36Sopenharmony_ci#define I_TDM_IN_CH5 (60 - I_32_OFFSET) 6562306a36Sopenharmony_ci#define I_TDM_IN_CH6 (61 - I_32_OFFSET) 6662306a36Sopenharmony_ci#define I_TDM_IN_CH7 (62 - I_32_OFFSET) 6762306a36Sopenharmony_ci#define I_TDM_IN_CH8 (63 - I_32_OFFSET) 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci#endif 70