/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2019 MediaTek Inc. */ #ifndef _REGULATOR_CODEGEN_H_ #define _REGULATOR_CODEGEN_H_ #ifdef CONFIG_OF #include #include #include #include #include #endif #include #include #include #include #include #ifdef CONFIG_MTK_PMIC_CHIP_MT6335 #include "mt6335/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6353 #include "mt6353/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6355 #include "mt6355/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6356 #include "mt6356/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6357 #include "mt6357/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6358 #include "mt6358/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6359 #include "mt6359/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6359P #include "mt6359p/mtk_regulator_codegen.h" #endif #ifdef CONFIG_MTK_PMIC_CHIP_MT6390 #include "mt6390/mtk_regulator_codegen.h" #endif /***************************************************************************** * PMIC extern function ******************************************************************************/ extern int mtk_regulator_enable(struct regulator_dev *rdev); extern int mtk_regulator_disable(struct regulator_dev *rdev); extern int mtk_regulator_is_enabled(struct regulator_dev *rdev); extern int mtk_regulator_set_voltage_sel( struct regulator_dev *rdev, unsigned int selector); extern int mtk_regulator_get_voltage_sel(struct regulator_dev *rdev); extern int mtk_regulator_list_voltage( struct regulator_dev *rdev, unsigned int selector); #endif /* _REGULATOR_CODEGEN_H_ */