Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/power/regulator_5v.h
1476 views
1
/*
2
* Copyright (c) 2019 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef _REGULATOR_5V_H_
18
#define _REGULATOR_5V_H_
19
20
#include <utils/types.h>
21
22
enum
23
{
24
REGULATOR_5V_FAN = BIT(0),
25
REGULATOR_5V_JC_R = BIT(1),
26
REGULATOR_5V_JC_L = BIT(2),
27
REGULATOR_5V_ALL = 0xFF
28
};
29
30
void regulator_5v_enable(u8 dev);
31
void regulator_5v_disable(u8 dev);
32
bool regulator_5v_get_dev_enabled(u8 dev);
33
void regulator_5v_usb_src_enable(bool enable);
34
35
#endif
36