mirror of
https://github.com/physwizz/a155-U-u1.git
synced 2024-11-19 13:27:49 +00:00
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* mt6873-afe-gpio.h -- Mediatek 6873 afe gpio ctrl definition
|
|
*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
* Author: Shane Chien <shane.chien@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MT6873_AFE_GPIO_H_
|
|
#define _MT6873_AFE_GPIO_H_
|
|
|
|
enum mt6873_afe_gpio {
|
|
MT6873_AFE_GPIO_DAT_MISO0_OFF,
|
|
MT6873_AFE_GPIO_DAT_MISO0_ON,
|
|
MT6873_AFE_GPIO_DAT_MISO1_OFF,
|
|
MT6873_AFE_GPIO_DAT_MISO1_ON,
|
|
MT6873_AFE_GPIO_DAT_MISO2_OFF,
|
|
MT6873_AFE_GPIO_DAT_MISO2_ON,
|
|
MT6873_AFE_GPIO_DAT_MOSI_OFF,
|
|
MT6873_AFE_GPIO_DAT_MOSI_ON,
|
|
MT6873_AFE_GPIO_DAT_MOSI_CH34_OFF,
|
|
MT6873_AFE_GPIO_DAT_MOSI_CH34_ON,
|
|
MT6873_AFE_GPIO_I2S0_OFF,
|
|
MT6873_AFE_GPIO_I2S0_ON,
|
|
MT6873_AFE_GPIO_I2S1_OFF,
|
|
MT6873_AFE_GPIO_I2S1_ON,
|
|
MT6873_AFE_GPIO_I2S2_OFF,
|
|
MT6873_AFE_GPIO_I2S2_ON,
|
|
MT6873_AFE_GPIO_I2S3_OFF,
|
|
MT6873_AFE_GPIO_I2S3_ON,
|
|
MT6873_AFE_GPIO_I2S5_OFF,
|
|
MT6873_AFE_GPIO_I2S5_ON,
|
|
MT6873_AFE_GPIO_I2S6_OFF,
|
|
MT6873_AFE_GPIO_I2S6_ON,
|
|
MT6873_AFE_GPIO_I2S7_OFF,
|
|
MT6873_AFE_GPIO_I2S7_ON,
|
|
MT6873_AFE_GPIO_I2S8_OFF,
|
|
MT6873_AFE_GPIO_I2S8_ON,
|
|
MT6873_AFE_GPIO_I2S9_OFF,
|
|
MT6873_AFE_GPIO_I2S9_ON,
|
|
MT6873_AFE_GPIO_VOW_DAT_OFF,
|
|
MT6873_AFE_GPIO_VOW_DAT_ON,
|
|
MT6873_AFE_GPIO_VOW_CLK_OFF,
|
|
MT6873_AFE_GPIO_VOW_CLK_ON,
|
|
MT6873_AFE_GPIO_GPIO_NUM
|
|
};
|
|
|
|
struct mtk_base_afe;
|
|
|
|
int mt6873_afe_gpio_init(struct mtk_base_afe *afe);
|
|
int mt6873_afe_gpio_request(struct mtk_base_afe *afe, bool enable,
|
|
int dai, int uplink);
|
|
bool mt6873_afe_gpio_is_prepared(enum mt6873_afe_gpio type);
|
|
|
|
#endif
|