Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _L3_H_
0003 #define _L3_H_ 1
0004 
0005 struct l3_pins {
0006     void (*setdat)(struct l3_pins *, int);
0007     void (*setclk)(struct l3_pins *, int);
0008     void (*setmode)(struct l3_pins *, int);
0009 
0010     int gpio_data;
0011     int gpio_clk;
0012     int gpio_mode;
0013     int use_gpios;
0014 
0015     int data_hold;
0016     int data_setup;
0017     int clock_high;
0018     int mode_hold;
0019     int mode;
0020     int mode_setup;
0021 };
0022 
0023 struct device;
0024 
0025 int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len);
0026 int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap);
0027 
0028 #endif