blob: b6f58072237a7eb56d001aba354e1a7eb28a5f05 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christian Pellegrin1cad1de2008-11-15 08:58:16 +01002#ifndef _L3_H_
3#define _L3_H_ 1
4
5struct l3_pins {
Sylwester Nawrocki03067412016-08-04 15:38:41 +02006 void (*setdat)(struct l3_pins *, int);
7 void (*setclk)(struct l3_pins *, int);
8 void (*setmode)(struct l3_pins *, int);
9
10 int gpio_data;
11 int gpio_clk;
12 int gpio_mode;
13 int use_gpios;
14
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010015 int data_hold;
16 int data_setup;
17 int clock_high;
18 int mode_hold;
19 int mode;
20 int mode_setup;
21};
22
Sylwester Nawrocki03067412016-08-04 15:38:41 +020023struct device;
24
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010025int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len);
Sylwester Nawrocki03067412016-08-04 15:38:41 +020026int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap);
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010027
28#endif