forked from SanniZ/fpc1020-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fpc1020_regulator.h
34 lines (24 loc) · 1009 Bytes
/
fpc1020_regulator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* FPC1020 Touch sensor driver
*
* Copyright (c) 2013,2014 Fingerprint Cards AB <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License Version 2
* as published by the Free Software Foundation.
*/
#ifndef LINUX_SPI_FPC1020_REGULATOR_H
#define LINUX_SPI_FPC1020_REGULATOR_H
#define SUPPLY_1V8 1800000UL
#define SUPPLY_SPI_MIN SUPPLY_1V8
#define SUPPLY_SPI_MAX SUPPLY_1V8
#define SUPPLY_IO_MIN SUPPLY_1V8
#define SUPPLY_IO_MAX SUPPLY_1V8
#define SUPPLY_ANA_MIN SUPPLY_1V8
#define SUPPLY_ANA_MAX SUPPLY_1V8
#define SUPPLY_SPI_REQ_CURRENT 10U
#define SUPPLY_IO_REQ_CURRENT 6000U
#define SUPPLY_ANA_REQ_CURRENT 6000U
extern int fpc1020_regulator_configure(fpc1020_data_t *fpc1020);
extern int fpc1020_regulator_release(fpc1020_data_t *fpc1020);
extern int fpc1020_regulator_set(fpc1020_data_t *fpc1020, bool enable);
#endif /* LINUX_SPI_FPC1020_REGULATOR_H */