#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
#include <linux/firmware/imx/svc/rm.h>
#include <dt-bindings/firmware/imx/rsrc.h>
struct scu_gpio_priv { … };
static unsigned int scu_rsrc_arr[] = …;
static int imx_scu_gpio_get(struct gpio_chip *chip, unsigned int offset)
{ … }
static void imx_scu_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
{ … }
static int imx_scu_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
{ … }
static int imx_scu_gpio_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id imx_scu_gpio_dt_ids[] = …;
static struct platform_driver imx_scu_gpio_driver = …;
static int __init _imx_scu_gpio_init(void)
{ … }
subsys_initcall_sync(_imx_scu_gpio_init);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;