Henrik Nordstrom | aa382ad | 2014-06-13 22:55:50 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Hans de Goede | 1fc9c4a | 2014-12-24 19:34:38 +0100 | [diff] [blame] | 7 | #define AXP_GPIO |
| 8 | |
Henrik Nordstrom | aa382ad | 2014-06-13 22:55:50 +0200 | [diff] [blame] | 9 | extern int axp209_set_dcdc2(int mvolt); |
| 10 | extern int axp209_set_dcdc3(int mvolt); |
| 11 | extern int axp209_set_ldo2(int mvolt); |
| 12 | extern int axp209_set_ldo3(int mvolt); |
| 13 | extern int axp209_set_ldo4(int mvolt); |
| 14 | extern int axp209_init(void); |
| 15 | extern int axp209_poweron_by_dc(void); |
| 16 | extern int axp209_power_button(void); |
Hans de Goede | 1fc9c4a | 2014-12-24 19:34:38 +0100 | [diff] [blame] | 17 | |
| 18 | extern int axp_gpio_direction_input(unsigned int pin); |
| 19 | extern int axp_gpio_direction_output(unsigned int pin, unsigned int val); |
| 20 | extern int axp_gpio_get_value(unsigned int pin); |
| 21 | extern int axp_gpio_set_value(unsigned int pin, unsigned int val); |