linux/include/linux/mfd/pcf50633/gpio.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * gpio.h -- GPIO driver for NXP PCF50633
 *
 * (C) 2006-2008 by Openmoko, Inc.
 * All rights reserved.
 */

#ifndef __LINUX_MFD_PCF50633_GPIO_H
#define __LINUX_MFD_PCF50633_GPIO_H

#include <linux/mfd/pcf50633/core.h>

#define PCF50633_GPIO1
#define PCF50633_GPIO2
#define PCF50633_GPIO3
#define PCF50633_GPO

#define PCF50633_REG_GPIO1CFG
#define PCF50633_REG_GPIO2CFG
#define PCF50633_REG_GPIO3CFG
#define PCF50633_REG_GPOCFG

#define PCF50633_GPOCFG_GPOSEL_MASK

enum pcf50633_reg_gpocfg {};

int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val);
u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio);

int pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert);
int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio);

int pcf50633_gpio_power_supply_set(struct pcf50633 *,
					int gpio, int regulator, int on);
#endif /* __LINUX_MFD_PCF50633_GPIO_H */