/*1* Copyright (c) 2019 CTCaer2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#ifndef _REGULATOR_5V_H_17#define _REGULATOR_5V_H_1819#include <utils/types.h>2021enum22{23REGULATOR_5V_FAN = BIT(0),24REGULATOR_5V_JC_R = BIT(1),25REGULATOR_5V_JC_L = BIT(2),26REGULATOR_5V_ALL = 0xFF27};2829void regulator_5v_enable(u8 dev);30void regulator_5v_disable(u8 dev);31bool regulator_5v_get_dev_enabled(u8 dev);32void regulator_5v_usb_src_enable(bool enable);3334#endif3536