Lockpick_RCM-Fork/bdk/power/regulator_5v.h

35 lines
1000 B
C
Raw Permalink Normal View History

2019-03-05 00:05:42 +01:00
/*
2020-06-26 22:17:06 +02:00
* Copyright (c) 2019 CTCaer
2019-03-05 00:05:42 +01:00
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2020-06-26 22:17:06 +02:00
#ifndef _REGULATOR_5V_H_
#define _REGULATOR_5V_H_
2019-03-05 00:05:42 +01:00
2020-06-26 22:17:06 +02:00
#include <utils/types.h>
2019-03-05 00:05:42 +01:00
2020-06-26 22:17:06 +02:00
enum
{
REGULATOR_5V_FAN = BIT(0),
REGULATOR_5V_JC_R = BIT(1),
REGULATOR_5V_JC_L = BIT(2),
2020-06-26 22:17:06 +02:00
REGULATOR_5V_ALL = 0xFF
};
2019-03-05 00:05:42 +01:00
2021-05-12 23:38:34 +02:00
void regulator_5v_enable(u8 dev);
void regulator_5v_disable(u8 dev);
bool regulator_5v_get_dev_enabled(u8 dev);
2021-08-28 22:10:33 +02:00
void regulator_5v_usb_src_enable(bool enable);
2019-03-05 00:05:42 +01:00
2020-06-26 22:17:06 +02:00
#endif