linux/drivers/gpio/gpio-logicvc.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2019 Bootlin
 * Author: Paul Kocialkowski <[email protected]>
 */

#include <linux/err.h>
#include <linux/gpio/driver.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>

#define LOGICVC_CTRL_REG
#define LOGICVC_CTRL_GPIO_SHIFT
#define LOGICVC_CTRL_GPIO_BITS

#define LOGICVC_POWER_CTRL_REG
#define LOGICVC_POWER_CTRL_GPIO_SHIFT
#define LOGICVC_POWER_CTRL_GPIO_BITS

struct logicvc_gpio {};

static void logicvc_gpio_offset(struct logicvc_gpio *logicvc, unsigned offset,
				unsigned int *reg, unsigned int *bit)
{}

static int logicvc_gpio_get(struct gpio_chip *chip, unsigned offset)
{}

static void logicvc_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
{}

static int logicvc_gpio_direction_output(struct gpio_chip *chip,
					 unsigned offset, int value)
{}

static struct regmap_config logicvc_gpio_regmap_config =;

static int logicvc_gpio_probe(struct platform_device *pdev)
{}

static const struct of_device_id logicivc_gpio_of_table[] =;

MODULE_DEVICE_TABLE(of, logicivc_gpio_of_table);

static struct platform_driver logicvc_gpio_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();