blob: 1471da22adad7a8539bba87c4befc55562f4b0ad [file] [log] [blame]
Christian Pellegrin1cad1de2008-11-15 08:58:16 +01001#ifndef _L3_H_
2#define _L3_H_ 1
3
4struct l3_pins {
Sylwester Nawrocki03067412016-08-04 15:38:41 +02005 void (*setdat)(struct l3_pins *, int);
6 void (*setclk)(struct l3_pins *, int);
7 void (*setmode)(struct l3_pins *, int);
8
9 int gpio_data;
10 int gpio_clk;
11 int gpio_mode;
12 int use_gpios;
13
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010014 int data_hold;
15 int data_setup;
16 int clock_high;
17 int mode_hold;
18 int mode;
19 int mode_setup;
20};
21
Sylwester Nawrocki03067412016-08-04 15:38:41 +020022struct device;
23
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010024int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len);
Sylwester Nawrocki03067412016-08-04 15:38:41 +020025int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap);
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010026
27#endif