1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2022 Microchip Technology Inc. */
4 #ifndef _GPIO_PCI1XXXX_H
5 #define _GPIO_PCI1XXXX_H
7 #include <linux/spinlock.h>
8 #include <linux/mutex.h>
9 #include <linux/kthread.h>
10 #include <linux/types.h>
11 #include <linux/auxiliary_bus.h>
13 /* Perform operations like variable length write, read and write with read back for OTP / EEPROM
14 * Perform bit mode write in OTP
17 struct gp_aux_data_type
{
19 resource_size_t region_start
;
20 resource_size_t region_length
;
23 struct auxiliary_device_wrapper
{
24 struct auxiliary_device aux_dev
;
25 struct gp_aux_data_type gp_aux_data
;