linux/drivers/gpio/gpio-amd-fch.c

// SPDX-License-Identifier: GPL-2.0+

/*
 * GPIO driver for the AMD G series FCH (eg. GX-412TC)
 *
 * Copyright (C) 2018 metux IT consult
 * Author: Enrico Weigelt, metux IT consult <[email protected]>
 *
 */

#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/gpio/driver.h>
#include <linux/platform_data/gpio/gpio-amd-fch.h>
#include <linux/spinlock.h>

#define AMD_FCH_MMIO_BASE
#define AMD_FCH_GPIO_BANK0_BASE
#define AMD_FCH_GPIO_SIZE

#define AMD_FCH_GPIO_FLAG_DIRECTION
#define AMD_FCH_GPIO_FLAG_WRITE
#define AMD_FCH_GPIO_FLAG_READ

static const struct resource amd_fch_gpio_iores =;

struct amd_fch_gpio_priv {};

static void __iomem *amd_fch_gpio_addr(struct amd_fch_gpio_priv *priv,
				       unsigned int gpio)
{}

static int amd_fch_gpio_direction_input(struct gpio_chip *gc,
					unsigned int offset)
{}

static int amd_fch_gpio_direction_output(struct gpio_chip *gc,
					 unsigned int gpio, int value)
{}

static int amd_fch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio)
{}

static void amd_fch_gpio_set(struct gpio_chip *gc,
			     unsigned int gpio, int value)
{}

static int amd_fch_gpio_get(struct gpio_chip *gc,
			    unsigned int offset)
{}

static int amd_fch_gpio_request(struct gpio_chip *chip,
				unsigned int gpio_pin)
{}

static int amd_fch_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver amd_fch_gpio_driver =;

module_platform_driver();

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