xref: /rk3399_rockchip-uboot/include/axp209.h (revision 6c727e09a022fcc0701eef58c4a5aedae5d9a6ac)
114bc66bdSHenrik Nordstrom /*
214bc66bdSHenrik Nordstrom  * (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
314bc66bdSHenrik Nordstrom  *
414bc66bdSHenrik Nordstrom  * SPDX-License-Identifier:	GPL-2.0+
514bc66bdSHenrik Nordstrom  */
614bc66bdSHenrik Nordstrom 
7*6c727e09SHans de Goede #define AXP_GPIO
8*6c727e09SHans de Goede 
914bc66bdSHenrik Nordstrom extern int axp209_set_dcdc2(int mvolt);
1014bc66bdSHenrik Nordstrom extern int axp209_set_dcdc3(int mvolt);
1114bc66bdSHenrik Nordstrom extern int axp209_set_ldo2(int mvolt);
1214bc66bdSHenrik Nordstrom extern int axp209_set_ldo3(int mvolt);
1314bc66bdSHenrik Nordstrom extern int axp209_set_ldo4(int mvolt);
1414bc66bdSHenrik Nordstrom extern int axp209_init(void);
1514bc66bdSHenrik Nordstrom extern int axp209_poweron_by_dc(void);
1614bc66bdSHenrik Nordstrom extern int axp209_power_button(void);
17*6c727e09SHans de Goede 
18*6c727e09SHans de Goede extern int axp_gpio_direction_input(unsigned int pin);
19*6c727e09SHans de Goede extern int axp_gpio_direction_output(unsigned int pin, unsigned int val);
20*6c727e09SHans de Goede extern int axp_gpio_get_value(unsigned int pin);
21*6c727e09SHans de Goede extern int axp_gpio_set_value(unsigned int pin, unsigned int val);
22